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
Add support for Scala 2.13.3 #1857
Conversation
I see 3 issues currently:
|
4c9941c
to
217faef
Compare
Bloop issue: scalacenter/bloop#1330 |
bloop fix is done and will be delivered in |
49a3852
to
7d54f12
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! :)
7d54f12
to
eb6ab73
Compare
def scala2Versions = nonDeprecatedScala2Versions ++ deprecatedScala2Versions | ||
|
||
// Scala 3 | ||
def nonDeprecatedScala3Versions = Seq(scala3, "0.24.0") | ||
def deprecatedScala3Versions = Seq() | ||
def deprecatedScala3Versions = Seq("0.24.0-RC1") |
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.
Added this back, since I figured it we should not be just dropping it on users.
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.
Also added 0.23.0, which doesn't influence the tests
eb6ab73
to
155a69e
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! 🚀
@@ -7,11 +7,8 @@ import scala.collection.immutable.Nil | |||
import scala.util.control.NonFatal | |||
|
|||
import scala.meta.internal.pc.CompletionFuzzy | |||
import scala.meta.internal.pc.CompletionFuzzy |
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.
Random side note, the next release of OrganizeImports will also remove duplicated ones like this 🥳
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.
I think that was actually removed by that rule 😅
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.
Or maybe it was due to warnings I saw?
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.
O really? Haha, nevermind then. I thought you did it manually.
build.sbt
Outdated
def scala2Versions = nonDeprecatedScala2Versions ++ deprecatedScala2Versions | ||
|
||
// Scala 3 | ||
def nonDeprecatedScala3Versions = Seq(scala3, "0.24.0") | ||
def deprecatedScala3Versions = Seq() | ||
def deprecatedScala3Versions = Seq("0.23.0", "0.24.0-RC1") |
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.
Wait, actually, with adding 0.23.0 back in here, don't we also need the scala-0.23/
directory with ClassFinder in it in mtags? If not you get the following when trying to cross publish:
[info] Setting Scala version to 0.23.0 on 2 projects.
[info] Excluded 10 projects, run ++ 0.23.0 -v for more details.
[info] Reapplying settings...
[info] set current project to default-86938c (in build file:/Users/ckipp/Documents/scala-workspace/scalameta-org/metals/)
[info] Wrote /Users/ckipp/Documents/scala-workspace/scalameta-org/metals/mtags/target/scala-0.23.0/mtags_0.23.0-0.9.1-SNAPSHOT.pom
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Compiling 51 Scala sources to /Users/ckipp/Documents/scala-workspace/scalameta-org/metals/mtags/target/scala-0.23.0/classes ...
[error] -- [E008] Member Not Found Error: /Users/ckipp/Documents/scala-workspace/scalameta-org/metals/mtags/src/main/scala-3/scala/meta/internal/pc/CompilerInterfaces.scala:15:34
[error] 15 |import dotty.tools.dotc.reporting.Diagnostic.Error
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] |value Diagnostic is not a member of dotty.tools.dotc.reporting - did you mean reporting.diagnostic?
[error] -- [E006] Unbound Identifier Error: /Users/ckipp/Documents/scala-workspace/scalameta-org/metals/mtags/src/main/scala-3/scala/meta/internal/pc/ScalaPresentationCompiler.scala:523:8
[error] 523 | ClassFinder.findClassForOffset(params.offset, filename)(
[error] | ^^^^^^^^^^^
[error] | Not found: ClassFinder
[error] two errors found
[error] (mtags / Compile / compileIncremental) Compilation failed
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.
och yeah, forgot about :(
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.
I will remove 0.23 back and add only 0.24.0-RC1 to deprecated. With the next upgrade I will try to keep both versions.
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.
See comment about the scala-0.23
directory. Unless I'm mistaken we hit on this before in #1842
155a69e
to
86d2c3c
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.
Alright, for real this time, LGTM!
W00t! When are you going to make a release? |
One was made last night 😉. |
@alexandru 9h ago 😂 https://twitter.com/scalameta/status/1278450415424671745?s=21 @tgodzik is too fast to follow |
Awesome, thanks ❤️ |
No description provided.