-
Notifications
You must be signed in to change notification settings - Fork 205
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 with an 'uninitialised' git repository: "No mixfile found in project ... set elixirLS.projectDir
in your settings"
#364
Comments
If I recall correctly, If no project root is found, it will use the folder of the file you opened. So you need a Though I have to be honest, I wasn't able to find much about it by a quick search.
So it seems as if you are required to always init your VCS before opening a project file when using |
Thanks for response, |
... after some research on eglot project I found a possible workaround based on similar problem (joaotavora/eglot#98 end joaotavora/eglot#129 (comment))
This for now seam to work also without git dirs Thanks again for suggestions |
Since there doesn't appear to be anything to do here on the ElixirLS side I'm going to close this issue. |
👍 |
Just want to mention that I forgot to do Even after I did It's also not creating an Is there a way to make Emacs or LSP to "forget" that the project started off misconfigured? Apparently that information persists. |
@dimitarvp that sounds like an lsp-mode issue. It sounds like you might now have an entry for your home directory in your: https://emacs-lsp.github.io/lsp-mode/page/settings/mode/#lsp-session-file |
@axelson Removing my home directory entry from Apologies for posting in the wrong place. I suppose I was drawn to familiar faces. Still, not an excuse. I am grateful for the assist. |
You're welcome! I think I've ran into nearly the exact same situation before :) |
This file can also be in |
Environment
Debian GNU/Linux 10 (buster)
GNU Emacs 27.1
Troubleshooting
.elixir_ls
directory, then restart your editorIf you're experiencing high CPU usage, it is most likely Dialyzer building the PLTs; after it's done the CPU usage should go back to normal. You could also disable Dialyzer in the settings.
Reproduce step (no git)
mix new empty
cd empty
)emacs lib/empty.ex
produce the error:with a new dir
lib/.elixir_ls
with only a.gitignore
fileReproduce step (git init)
mix new empty
cd empty
)git init
.elixir_ls
found in the project root:The text was updated successfully, but these errors were encountered: