Search code examples
emacsprojectile

emacs projectile - "you are not in a project" displayed when in directory


I've just created a new folder of javascript files.

The structure is:

.gitignore
README.md
build
node_modules
package.json
src
webpack.config.js

But when I try and find a file with C-c p f, I get a message in the status bar that states

You're not in a project

I have other projects with the same structure that work fine so I don't know what is going on.


Solution

  • I think your project is indeed considered a project by projectile only if you have a .git folder in it (did you forget to git init?). I'm not seeing one in your case. You can alternatively add a .projectile file instead. Everything in that folder containing the .projectile file and all subfolders will be considered part of the same project.