On some errors metals spawning multiply Open Doctor questions dialogs and stealing focus from user. #6988
Labels
bloop
Bloop related tickets
bug
Something that is making a piece of functionality unusable
upstream-fix-needed
Waiting on a fix upstream
Describe the bug
I seen this behavior multiply times in different version but would like to provide some details on recent one.
Usually it happens with editing project build definition (in my case build.sc, but I seen same happen with build.sbt too).
On file save the 'Open Doctor' dialog appears and then editor focus moving to it. But issue that it's not only stealing focus but also that it's creating about 5 dialogs at same time and user required to click on each one to close it. Also, after those dialogs will appears on next file safe again (no matter how much time since previous save).
So basically with that almost not possible to edit any build files. I seen that also happening with usual code but that definitely more rare cases, seems build file editing triggering that almost always.
@dos65 tried to check issue little bit, he provided this patch dos65@db5e731
and with metals version compiled from that branch following messages found in lsp-client log:
Also following error presented in metals.log
Env
Editor
Emacs 29.4 (with doom-emacs)
Lsp client
eglot
OS
Linux (NixOS 24.05)
jdk
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode, sharing)
build tool
mill 0.12.1
(with scala project which included ScalaJS usage)
Expected behavior
editor never steal focus from user (except new project opening case)
Operating system
Linux
Editor/Extension
Emacs (other)
Version of Metals
v1.4.1, v1.4.2
Extra context or search terms
doctor
The text was updated successfully, but these errors were encountered: