Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: stat()ing: foo. Error opening directory foo: No such file or directory #406

Open
AdelleBernal opened this issue Mar 7, 2023 · 3 comments

Comments

@AdelleBernal
Copy link

I need a function to search in filenames and retrieve those filenames containing the string I search for.

For some reason, this piece of code is not working for this purpose:

(defun helm-do-ag-projects ()
  "Grep string in Project directory" (interactive)
  (let ((rootdir (concat "~/my_projects/")))
    (let ((helm-ag-command-option (concat helm-ag-command-option "--all-text -g")))
      (helm-do-ag rootdir))))

Getting the error:

ERR: Error: stat()ing: foo. 
ERR: Error opening directory foo: No such file or directory
@toothbrush
Copy link

I use helm-projectile for that – not sure if that'd do what you need?

@AdelleBernal
Copy link
Author

Thanks. Could I set up the project directory to any directory in my function?

@toothbrush
Copy link

toothbrush commented Mar 9, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants