Skip to content
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

chore: Bump scalameta to 4.9.8 #6570

Merged
merged 3 commits into from
Jul 24, 2024
Merged

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Jul 9, 2024

@tgodzik tgodzik force-pushed the bump-scalameta2 branch 5 times, most recently from b204604 to a7a34cf Compare July 9, 2024 17:25
@tgodzik tgodzik force-pushed the bump-scalameta2 branch 2 times, most recently from 25eae93 to 6c68cb7 Compare July 16, 2024 14:31
@tgodzik tgodzik force-pushed the bump-scalameta2 branch 2 times, most recently from 9866332 to 054d508 Compare July 16, 2024 18:59
("org.scalameta" % s"semanticdb-shared_${V.scala213}" % V.scalameta)
)

def scala3ScalametaDependency: ModuleID = withExcludes(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a change in dependencies, internal semanticdb stuff is no longer in scalameta, which makes sense.

@@ -52,8 +52,8 @@ object MillDigest extends Digestable {
case _: Token.KwImport =>
acc.hadImport = true
// end import either with newline or `,` or `}`
case _: Token.LF | _: Token.LFLF | _: Token.Comma |
_: Token.RightBrace if acc.processingFileImport =>
case _: Token.AtEOL | _: Token.Comma | _: Token.RightBrace
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tokens changed a bit, but they now have sensible traits such as this.

@@ -127,6 +125,12 @@ class JavaInteractiveSemanticdb(
out
}

private def readAllDocuments(path: AbsolutePath): Seq[s.TextDocument] = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That method was removed from scalameta, but it was simple enough

@@ -77,6 +77,14 @@ object MtagsResolver {
"3.3.2-RC2" -> "1.2.2",
"3.3.2-RC3" -> "1.2.2",
"3.1.3" -> "1.3.2",
"2.12.12" -> "1.3.3",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the biggest change, since scalameta is no longer published for more than 4 versions we would have to inline a lot of code or add compat directories for all versions, which is not something I really want to do. However, since we still support the older version, we just don't release it anymore, I think this is perfectly ok.

There was some test changes related to that

@@ -1,6 +1,6 @@
/*example(Package):9*/package example

/*example.nested.x(Package):5*/package nested.x {
/*example.nested.x(Package):4*/package nested.x {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the changes here, but they do not seem too problematic.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it doesn't seem too problematic but also possibly a bug..., example.nested.x ends on line 5 not 4.

@tgodzik tgodzik requested a review from kasiaMarek July 17, 2024 08:02
@@ -1,6 +1,6 @@
/*example(Package):9*/package example

/*example.nested.x(Package):5*/package nested.x {
/*example.nested.x(Package):4*/package nested.x {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it doesn't seem too problematic but also possibly a bug..., example.nested.x ends on line 5 not 4.

@tgodzik tgodzik merged commit 874dd9a into scalameta:main Jul 24, 2024
24 checks passed
@tgodzik tgodzik deleted the bump-scalameta2 branch July 24, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants