metals icon indicating copy to clipboard operation
metals copied to clipboard

Reconnecting to build server doesn't reset "Connecting to sbt" status

Open ckipp01 opened this issue 1 year ago • 3 comments

Describe the bug

Recently I've been having some issues while using sbt as a build server that Metals is unable to start it (a different issue that this report isn't about), but when this happens I often start sbt manually, then use the "Connect build server" command to connect to it. When I do this, the initial connection attempt is still going and it is never told to stop resulting in the status just never disappearing. For example you can see this here:

Screenshot 2024-05-16 at 12 23 21

Expected behavior

I'd expect that when I use the connect to build server command that the current attempt is halted and then the progress notification reflects this.

Operating system

macOS

Editor/Extension

Nvim (nvim-metals)

Version of Metals

1.3.0+74-0500a8cd-SNAPSHOT

Extra context or search terms

No response

ckipp01 avatar May 16 '24 10:05 ckipp01

Maybe we should merge this issue with https://github.com/scalameta/metals/issues/2563?

kasiaMarek avatar May 17 '24 08:05 kasiaMarek

Maybe we should merge this issue with #2563?

Ahhh I forgot that I also created that one 😅. Whichever you prefer. I think yea if we solved that one it may fix this one, but the problem might also be slightly different. So if you do merge them I'd recommend copying all this info over there as well to make sure that if it's addressed both situations are fixed.

ckipp01 avatar May 17 '24 08:05 ckipp01

but the problem might also be slightly different

Let's just leave it open then, it's connected through comments, so it should be enough to remember to test both.

kasiaMarek avatar May 20 '24 08:05 kasiaMarek