nvim-metals icon indicating copy to clipboard operation
nvim-metals copied to clipboard

"New sbt workspace detected" prompt is only shown for a brief moment before disappearing

Open tmiseikis opened this issue 8 months ago • 6 comments

Describe the bug

Hi,

I am not sure if this is an issue in Metals or nvim-metals or somewhere else, but when I open a new Scala project the "New sbt workspace detected" message/prompt appears for a brief moment and then mostly disappears leaving only the "Type number ..." section. See this video:

https://github.com/user-attachments/assets/a09fb7ac-2748-4ff0-9e6e-871451f689b7

Expected behavior

I expect the prompt to not disappear.

Operating system

macOS

Version of Metals

v1.5.2

Commit of nvim-metals

4610aceb97fbcf2b050220ee5f83527e5c1699c5

tmiseikis avatar Apr 04 '25 08:04 tmiseikis

The same thing happens to the Java home has been updated, do you want to restart the sbt BSP server? prompt too.

EarlPitts avatar Apr 04 '25 15:04 EarlPitts

Same experience using metals v1.6.0 with SBT: what I've found interesting is - Build import popup on configuration changes has been dismissed temporarily while running doctor. Resetting choice doesn't seem to have any effect

ast600 avatar Jun 12 '25 19:06 ast600

So I think this must be something with the way nvim is handling the showMessageRequest. Every once in a while I also see this, but I can never reliably reproduce it. Does this happen all the time for anyone else in a way that they can reproduce?

ckipp01 avatar Jun 18 '25 17:06 ckipp01

@ckipp01 - I can reproduce this every time. Let me know if I can enable some logging or try something out.

tmiseikis avatar Jun 19 '25 07:06 tmiseikis

I also have this issue consistently

ayoub-benali avatar Jun 20 '25 12:06 ayoub-benali