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

How to configure settings from within Emacs? #552

Closed
Qqwy opened this issue May 28, 2021 · 3 comments
Closed

How to configure settings from within Emacs? #552

Qqwy opened this issue May 28, 2021 · 3 comments

Comments

@Qqwy
Copy link

Qqwy commented May 28, 2021

I have a 'monorepo', a git repository containing multiple subdirectories, each with a project in a different programming language. One of them is an Elixir project.

LSP is complaining that it cannot find the mix-file in such a situation:

LSP :: No mixfile found in project. To use a subdirectory, set elixirLS.projectDir in your settings

The README talks about a settings.json but this seems to be VSCode-specific. I am using (Spac)emacs. Where should I create a settings.json? Or should this setting be set somewhere else when using Emacs?

@axelson
Copy link
Member

axelson commented May 29, 2021

Are you using lsp-mode? If so then then I would remove teh top-level directory from lsp-mode's project list, and initialize lsp-mode with the specific subdirectory (by pressing I to choose it interactively). I wrote a little bit on partially similar issue here: #364 (comment)

@Qqwy
Copy link
Author

Qqwy commented May 29, 2021

Thank you! Removing the project and re-initializing it interactively worked perfectly 😊

@Qqwy Qqwy closed this as completed May 29, 2021
@axelson
Copy link
Member

axelson commented May 29, 2021

Great! Glad to hear you got it all sorted out.

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