Closed cquiroz closed 5 years ago
Do you run formatting while Metals is still initialising? I'm not sure what I can do about that from here. I think this should be fixed either in atom-languageclient or in atom-ide-ui. It should just ignore formatting request until the server is initialised.
This happened later on. i pressed the shortcut for formatting and you can see the error in the log but there is no indication on the UI
Could you post the failure log? Why does it fail at all?
The scala file is to complex and scalfmt files. That's unrelated to the plugin of course
Scalafmt210:58 Failed to format file file:///Users/cquiroz/Projects/ocs3/modules/edu.gemini.seqexec.model/src/main/scala/edu/gemini/seqexec/model/events.scala. Cause: Search state exploded around line 26.
00:14:42.773 INFO s.m.m.s.InMemorySymbolIndex - resolveName at Uri(file:///Users/cquiroz/Projects/ocs3/modules/edu.gemini.seqexec.model/src/main/scala/edu/gemini/seqexec/model/events.scala):20:47
00:14:42.892 INFO s.m.m.p.DocumentHighlightProvider$ - Document highlight in Uri(file:///Users/cquiroz/Projects/ocs3/modules/edu.gemini.seqexec.model/src/main/scala/edu/gemini/seqexec/model/events.scala
I see. I think it's Metals fault then: it just swallows that error instead of returning a proper error LSP response. Could you open an issue in Metals?
When scalafmt fails there is no notification and the tooltip doesn't disappear