Skip to content

Fails to index a newly generated (g8) project #7074

Closed Answered by umatrangolo
umatrangolo asked this question in Q&A
Discussion options

You must be logged in to vote

Answering myself for when I will stumble again into this pit.

The 'eglot' LSP client needs to know which files are part of the current project. To do so it uses the Emacs native backend that is going to look either for (i) an EDE setup or (ii) a GIT repository. Missing both of them, 'eglot' is blind and will just start a new LSP session for each visited folder resulting in odd errors like disappearing dependencies from a previously loaded class path (as per my issue).

To avoid these issues, remember to always create a proper GIT setup for any new Scala project.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by umatrangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants