-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buildTarget/changed notification not sent when Scala version changes #2638
Comments
We seem to merely forward this from Bloop. scala-cli/modules/build/src/main/scala/scala/build/bsp/BuildClientForwardStubs.scala Lines 13 to 14 in 3dcfb33
We likely should be sending it with our
A good point to start looking where would be
The scala-cli/modules/build/src/main/scala/scala/build/bsp/BspImpl.scala Lines 463 to 465 in 3dcfb33
|
Bloop is unable to see that the project changed because the hash changed, so we need to handle it in Scala CLI |
Weirdly enough this started to work, only problem is in single file metals scalameta/metals#6755 I am not sure exactly why that is happening or why it fixed. |
Seems the problem has been fixed, closing this. |
Version(s)
1.1.0
Describe the bug
Metals depends on notifications from Scala CLI to know when it should request fresh information. When we save and compile file we do get the change notification if we changed for example compiler options but not when the Scala Version changed
To Reproduce
Open a project with:
Run metals doctor and see the correct version being used.
Now changed to:
run doctor again. You will see that the version is still 3.3.1
When checking BSP trace we see that no new notification is sent after the change to new Scala version.
Expected behaviour
Notification is sent to Metals and the version changes.
The text was updated successfully, but these errors were encountered: