Replies: 2 comments 3 replies
-
Metals doesn't format files unless explicitly asked by the editor to do so. The request to do it actually works on a single file, we never format anything on our own. |
Beta Was this translation helpful? Give feedback.
-
Thanks, good to know and that figures. Been away from this for too long to have a good idea how to debug this right now. Any help here is highly appreciated! Fact remains: as soon as I open this folder in zed, some scala files get formatted and I get git diffs. I'm using sbt instead of bloop on because I never got bloop to work well for my projects. Now I'm on zed and my current settings look like:
I just found that the root build.sbt does have:
so I shouldn't be surprised, but there seem to be some mishap about the .scalafmt settings then, because if I run sbt compile from my terminal on the monorepo, nothing happens — and it shouldn't. Lots of people work on this code with this same scalafmt file. But it happens straight away as soon as I open zed on the folder, even without any open buffers. I see now in the metals lsp logs that:
We're using Scala 2.13.14 Then
I thought I did that with "initialization_options": { Then:
I think I had the same problem in vscode. |
Beta Was this translation helpful? Give feedback.
-
I'm using metals from zed and I'm currently working in a monorepo on entirely unrelated code. metals seem to trigger formatting in the background of files I've never even opened a buffer for. How do I disable this?
Sonnet suggested it was the presentation compiler and that "enableScalafmtOnBuild" should fix it but seems to be hallucination :)
Beta Was this translation helpful? Give feedback.
All reactions