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

projectile-discover-projects-in-directory is not interactive as documented #1714

Closed
memeplex opened this issue Oct 11, 2021 · 1 comment · Fixed by #1723
Closed

projectile-discover-projects-in-directory is not interactive as documented #1714

memeplex opened this issue Oct 11, 2021 · 1 comment · Fixed by #1723

Comments

@memeplex
Copy link

Expected behavior

The documented behavior:

To add a project to Projectile’s list of known projects, open a file in the project. If you have a projects directory, you can tell Projectile about all of the projects in it with the command M-x projectile-discover-projects-in-directory.

Actual behavior

The function is not M-x-accessible and it's not defined as (interactive). Besides it takes a mandatory argument:

(defun projectile-discover-projects-in-directory (directory &optional depth)
  "Discover any projects in DIRECTORY and add them to the projectile cache.

If DEPTH is non-nil recursively descend exactly DEPTH levels below DIRECTORY and
discover projects there."
  (if (file-directory-p directory)
      (if (and (numberp depth) (> depth 0))

This was tested in revision 7f64570 and in tag v2.5.0.

Steps to reproduce the problem

  • M-x projectile-discover-projects-in-directory

Environment & Version information

Projectile version information

Projectile version: 2.5.0

Emacs version

GNU Emacs 29.0.50

Operating system

macOS Big Sur

@bbatsov
Copy link
Owner

bbatsov commented Oct 29, 2021

My bad, I'm sure I intended for this to be an interactive command. Perhaps we changed this at some point accidentally. That is easy to fix.

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

Successfully merging a pull request may close this issue.

2 participants