-
-
Notifications
You must be signed in to change notification settings - Fork 404
Fix intellij scalac settings #5220
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
base: main
Are you sure you want to change the base?
Fix intellij scalac settings #5220
Conversation
I probably should have started with a fix for the main branch and not with a backport for |
@hwielenberg you can run the gen-idea tests via |
b8842b2
to
ec564e0
Compare
</parameters> | ||
<plugins></plugins> | ||
</profile> | ||
<profile name="mill 3" modules="moduleg-2.12.5,moduleg-2.13.6"> |
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.
This has always used a -
@@ -16,6 +16,8 @@ | |||
<module fileurl="file://$PROJECT_DIR$/.idea/mill_modules/moduled.iml" filepath="$PROJECT_DIR$/.idea/mill_modules/moduled.iml"/> | |||
<module fileurl="file://$PROJECT_DIR$/.idea/mill_modules/modulee.iml" filepath="$PROJECT_DIR$/.idea/mill_modules/modulee.iml"/> | |||
<module fileurl="file://$PROJECT_DIR$/.idea/mill_modules/modulef.iml" filepath="$PROJECT_DIR$/.idea/mill_modules/modulef.iml"/> | |||
<module fileurl="file://$PROJECT_DIR$/.idea/mill_modules/moduleg-2.12.5.iml" filepath="$PROJECT_DIR$/.idea/mill_modules/moduleg-2.12.5.iml"/> |
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.
The fix changes this and the file name itself from moduleg.2.12.5.iml
to moduleg-2.12.5.iml
Is there a way to get the path to COURSIER_HOME in the test that works in all environments?
|
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.
Looks good to me. Please mark this as "ready for review" once you are done with refining.
This fixes an issue that the translation from mill module names to intelliJ module names sometimes uses
.
as a delimiter and sometimes-
. Which causes intelliJ not to be able to link certain settings to the module.The issue was that at one point all
Segment.Cross
were translated intoSegment.Label
. And those two use a different delimiter.This fix might be quite intrusive for existing projects as it renames the actual modules. The intended delimiter
-
was not used in most places. This could be avoided by using the delimiter.
for cross modules as well.I tested it with this setup. (Are there any automated tests for genIdea?)