Skip to content

SBT manual compilation #3696

Answered by tgodzik
tdroxler asked this question in Q&A
Mar 10, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I'm trying metals with sbt and I would like to know if it's possible to disable the auto compilation from metals?
There are 2 cases, when I simply write def, I directly receive a diagnostic: = expected ..., while I obviously know it's not correct yet. Can we disable this?

Syntax errors are shown right away and unfortunately there is no way to turn that off.

The other thing I want to disable is the compile-on-save, I prefer to manually enter compile in my sbt console when I know I want to compile and get the potential diagnostics.

That's also not possible, Metals relies on compilation to refresh indexes so we try to compile as soon of possible because of that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tdroxler
Comment options

Answer selected by tdroxler
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