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

improvement: Automatically calculate last supported versions for semanticdb #5671

Merged
merged 1 commit into from Sep 25, 2023

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Sep 22, 2023

Previously, we would fail if our version of semanticdb was not supported for a specific scala version. Now, we calculate last supported version for each scala version when compiling.

Potentially this means we could get a new semanticdb version automatically, but that should not be an issue as semanticdb is well tested in scalameta itself

This is needed for the sbt-metals plugin

scalaVersion
)
s"org.scalameta:::semanticdb-scalac:$semanticdbVersion" :: compilerPlugins.toList
} else compilerPlugins.toList
Copy link
Member

Choose a reason for hiding this comment

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

Why we don't want to have semanticdb plugin for Scala 3 here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't have it as a plugin, it's in the compiler, so no need to download anything.

…nticdb

Previously, we would fail if our version of semanticdb was not supported for a sepcific scala version. Now, we calculate last supported version for each scala version when compiling.

Potentially this means we could get a new semanticdb version automatically, but that should not be an issue as semanticdb is well tested in scalameta itself
@tgodzik tgodzik force-pushed the automatically-resolve-semanticdb branch from b7d90af to 835ab98 Compare September 25, 2023 13:33
Copy link
Member

@jkciesluk jkciesluk left a comment

Choose a reason for hiding this comment

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

lgtm

@tgodzik tgodzik merged commit 6089338 into scalameta:main Sep 25, 2023
23 of 24 checks passed
@tgodzik tgodzik deleted the automatically-resolve-semanticdb branch September 25, 2023 14:53
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