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

bugfix: Don't start mtags with full classpath #6439

Merged
merged 1 commit into from
May 27, 2024

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented May 24, 2024

I think this was done by mistake in #2417 but very rarely caused any issues.

Previous to that PR we would only get Scala jars from ScalaBuildTarget.getJars method and after we would use the full classpath.

This never happened in the latest Scala version as we would just start mtags via new ScalaPresentationCompiler and it would happen randomly for some other versions.

Now, since we always use mtags artifacts they always contain the needed Scala jars (unless there would be a custom platform) so there is no need to add anything more.

This might have caused #5272

I think this was done by mistake in scalameta#2417 but very rarely caused any issues.

Previous to that PR we would only get Scala jars from ScalaBuildTarget.getJars method and after we would use the full classpath.

This never happened in the latest Scala version as we would just start mtags via new ScalaPresentationCompiler and it would happen randomly for some other versions.

Now, since we always use mtags artifacts they always contain the needed Scala jars (unless there would be a custom platform) so there is no need to add anything more.

This might have caused scalameta#5272
Copy link
Member

@dos65 dos65 left a comment

Choose a reason for hiding this comment

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

Ouch! Nice catch

LGTM.

@tgodzik tgodzik merged commit dde8033 into scalameta:main May 27, 2024
23 of 24 checks passed
@tgodzik tgodzik deleted the remove-classpath branch May 27, 2024 07:56
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