-
Notifications
You must be signed in to change notification settings - Fork 82
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
.edts config ignored if there is .git upper in path #72
Comments
Thanks for the report. I'm aware of the issue, and it's very annoying indeed. It's due to the fact that eproject contains a definition for a basic git-project which will be preferred over edts if it is further up in the file tree. I have been thinking about how to solve this for a while but I haven't yet found a satisfying solution that can either be incorporated into edts without forking eproject or that will be accepted into upstream eproject :( Any ideas would be very welcome. |
Actually I think I might have an acceptable solution for this. Will look into it when I get back from vacation. |
Awesome! Great work, Thomas! |
I believe this should now be fixed. The fix is slightly hackish but seems to work :) Please re-open this issue if your problems persist. |
Did you forget to push? :) I don't see the fix in current master |
Yup it's right there. The relevant code is in edts-setup and edts-project-selector. There's even an integration test called edts-project-selector-test. Are you experiencing problems with it? |
Reverting 5dcb9ab fixes things for me and project is properly picked up as edts, otherwise it's incorrectly identified as generic-git. Funny that eproject-project-type has overridden values, and (eproject--all-types) returns:(edts-temp edts-otp edts generic). Seems like eproject hooks are run before erlang-mode hooks. Emacs version: GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.8.2) of 2013-08-14 on buildvm-15.phx2.fedoraproject.org |
Will try to look into this tonight. |
@bboozzoo |
I think that fed315f is bad. All projects will be classified as edts-temp as it appears as a last entry and all project definitions have same list of relevant files. There's something weird going on. If project directory has dots (ex. some.test.project) then .edts is not loaded, project is incorrectly classified as generic-git and erlang node cannot be started. Removing the dots, the problem disappears. |
If that commit is in your history you're on the wrong branch :) |
Thomas Järvstrand writes:
Thanks! Maciek Borzęcki |
Edts doesn't start project for following dir structure
project
├── erlang/
│ ├── apps/
│ ├── deps/
│ ├── docs/
│ ├── priv/
│ ├── rel/
│ ├── configure.sh*
│ ├── .edts
│ ├── .gitignore
│ ├── Makefile
│ ├── readme
│ └── rebar.config
├── .git/
│ ├── branches/
│ ├── hooks/
│ ├── info/
│ ├── logs/
│ ├── objects/
│ ├── refs/
│ ├── config
│ ├── description
│ ├── HEAD
│ ├── index
│ └── packed-refs
├── node/
│ └── .gitignore
├── static/
│ ├── css/
│ ├── images/
│ └── js/
├── www/
│ └── .gitignore
└── Makefile
The text was updated successfully, but these errors were encountered: