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
Reconnect to BSP server upon buildTarget/didChange #3145
Reconnect to BSP server upon buildTarget/didChange #3145
Conversation
This comment has been minimized.
This comment has been minimized.
dfc31c9
to
a9b49e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @alexarchambault!
Just a couple clarifying questions right away.
metals/src/main/scala/scala/meta/internal/bsp/MetalsBspException.scala
Outdated
Show resolved
Hide resolved
759167e
to
164af92
Compare
This comment has been minimized.
This comment has been minimized.
Also taking a quick step back, sorry I should have asked this first. When a
Which sort of leads me to another question. I know behind the scenes scala-cli is offloading to Bloop if I understand it correctly, so maybe reload doesn't make sense then. Is scala-cli keeping the state in memory, or just utilizing the |
Both Ammonite and Scala CLI have But I think it's a different problem. The changes here are about making Metals aware of the new / updated build targets, not about asking the build tool to update how it sees them. |
Scala CLI always makes sure the |
9332eb1
to
eddfa89
Compare
So I scraped the Scala CLI stuff from the tests. (The test is now more "unitary", even though I prefer the former one, which was testing a more realistic scenario…) I believe the CI job failure is unrelated to the changes of this PR. |
Off the top of my head, I don't think Bloop is actually a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏼
eddfa89
to
8f0cd21
Compare
(Just rebased on the latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.