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 on "Setting current directory" in project with git submodule #132

Open
agraul opened this issue Feb 27, 2019 · 1 comment
Open

Error on "Setting current directory" in project with git submodule #132

agraul opened this issue Feb 27, 2019 · 1 comment

Comments

@agraul
Copy link

agraul commented Feb 27, 2019

I can't run many (did not try all, just -model, -controller, -view) of the projectile-rails-find-* commands.

This is the error message I got when I tried it with -controller. Others are similar (app/controllers is replaced by app/models etc.):
Setting current directory: No such file or directory, /home/alex/programming/software-o-o/app/controllers/opensuse-theme-chameleon/

Project layout (excerpt):

├── app/
├── bin/
├── config/
├── opensuse-theme-chameleon/ (git submodule)
...
└── lib/

To me it looks like app/controllers/ and opensuse-theme-chameleon/ are joined even though they are unrelated git projects.

I removed opensuse-theme-chameleon/ and then it worked fine.

projectile-rails version: 0.17.0 (package version: 20190110.1008)
projectile version: 2.0.0 (package version: 20190126.1117)
emacs version: 26.1

@milouse
Copy link

milouse commented Apr 24, 2020

This is a projectile bug. See bbatsov/projectile#1369 and bbatsov/projectile#1370

Maybe we should workaround ourselves?

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

No branches or pull requests

2 participants