What is Metals doing under the hood in Emacs? #5951
kschwarz1116
started this conversation in
General
Replies: 1 comment 3 replies
-
I am not 100% sure about Emacs, but as for:
This is a presentation compiler error, which Metals uses underneath to provide completions, hovers and much more. This is part of the normal compiler and it is currently used only on the currently focused file. Since, the code might often break, some errors might be false positives, though ideally the compiler should never throw. If the code completions and the rest of the features are not working and you only see the errors popping up, this means there's something wrong. This could be classpath issues or compiler options causing some unexpected beahviour. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm opening a discussion because I don't think I have a clear question here yet, but I'm trying to understand how Metals works in the context of Emacs.
The reason I'm asking is because my current workflow is:
~compile
in process 1I've discovered recently a situation where sbt is showing my source as compiling successfully, but when I go into
lsp-metals-doctor-run
I see:compiler error
links to a.md
file that I can't act on. So it seems like Metals is compiling my code separately from my sbt process somehow. I'm lost on how to investigate that though.The installation instructions add in quite a few things that look like they aren't Metals. I'd appreciate some thoughts as to why they aren't managed as
lsp-metals
dependencies, and also maybe some more description as to which parts of the experience provided are Metals, and which parts of the experience are provided by other packages.Beta Was this translation helpful? Give feedback.
All reactions