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

GenIdea: Use synthetic scala-SDK entry for compiler setup #3154

Merged
merged 2 commits into from
May 16, 2024
Merged

Conversation

lefou
Copy link
Member

@lefou lefou commented May 16, 2024

Previously, we attached the compiler setup to the scala-library entry. This doen't work well for Scala 3 projects, since there multiple scala-library entries are present, one for Scala 2 and one for Scala 3. If the Scala 2 version comes first, IJ uses the wrong compiler setup.

This change splits the scala-library from the compiler setup. The compiler setup now becomes a dedicated synthetic scala-SDK library entry for each Scala module. The scala-library no longer has any special semantic and is just an ordinary jar. Only one scala-SDK entry is added to each Scala module resulting in a proper setup.

Fix #2867

Base automatically changed from idea-cleanup to main May 16, 2024 12:18
@lefou lefou force-pushed the idea-scala-order branch from 482b840 to 135485b Compare May 16, 2024 12:20
@lefou lefou added this to the 0.11.8 milestone May 16, 2024
@lefou lefou merged commit 18d1444 into main May 16, 2024
38 checks passed
@lefou lefou deleted the idea-scala-order branch May 16, 2024 13:33
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.

GenIdea: Scala 3 module don't work when scala-library is before scala3-library entry in iml config
1 participant