-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Port pc find references from metals #20544
Conversation
project/Build.scala
Outdated
@@ -1341,12 +1341,14 @@ object Build { | |||
BuildInfoPlugin.buildInfoDefaultSettings | |||
|
|||
def presentationCompilerSettings(implicit mode: Mode) = { | |||
val mtagsVersion = "1.3.1" | |||
val mtagsVersion = "1.3.1+63-1a8f4659-SNAPSHOT" |
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.
Should wait for a stable metals release.
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.
We can update to 1.3.2 now 🎉
a89f2cf
to
3d58c2a
Compare
Looks like there is an issue with java compat in the compiler - symbol that seems to be supposed to point to |
driver.run(uri, source) | ||
given ctx: Context = driver.currentCtx | ||
|
||
val unit = driver.currentCtx.run.units.head |
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.
quickfix:
val unit = driver.currentCtx.run.units.head | |
private val run = driver.currentCtx.run | |
val unit = run.units.head |
(I was incorrect before about the java compat thing). This is ending up a bit hard to minimize since it both depends on the bootstrapped scala compiler and has to be compiled by it (nonbootstrapped works fine). My attempts to have it crash with scala3-bootstrapped/scalac -with-compiler
are also proving unsuccessful. I might not be able to come up with the minimization after all, but the quick fix should help
3d58c2a
to
fdd6a4a
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.
LGTM!
Backports #20544 to the LTS branch. PR submitted by the release tooling. [skip ci]
scalameta/metals#5940
scalameta/metals#6429