-
-
Notifications
You must be signed in to change notification settings - Fork 427
Open
Description
It seems, having multiple scala-libraries on the classpath confuses IDEA.
> rm -r .idea
> mill mill.idea.GenIdea/
mill mill.idea.GenIdea/
1] version
1.1.0-RC3
1/1] ============================== mill.idea.GenIdea/ ==============================
Analyzing modules ...
Cleaning obsolete IDEA project files ...
Writing 1292 IDEA project files to /home/lefou/work/Comfis/comfis-mill-1/.idea ...
...
> cat .idea/mill_modules/mill-build.iml | grep -E "scala.*-(library|SDK)"
<orderEntry type="library" name="scala-SDK-3.8.0-RC2" level="project"/>
<orderEntry type="library" scope="PROVIDED" name="scala-library-2.13.12.jar" level="project"/>
<orderEntry type="library" name="scala-library-3.8.0-RC2.jar" level="project"/>
<orderEntry type="library" scope="PROVIDED" name="scala3-library_3-3.3.3.jar" level="project"/>
<orderEntry type="library" name="scala3-library_3-3.8.0-RC2.jar" level="project"/>In the image below, you can see that all type from Mill are red. Code navigation doesn't work.
Once I remove the unwanted versions manually, the red error marker vanish (mostly).
<orderEntry type="library" scope="RUNTIME" name="scala-collection-compat_2.13-2.13.0.jar" level="project"/>
<orderEntry type="library" name="scala-collection-compat_3-2.12.0.jar" level="project"/>
- <orderEntry type="library" scope="PROVIDED" name="scala-library-2.13.12.jar" level="project"/>
<orderEntry type="library" name="scala-library-3.8.0-RC2.jar" level="project"/>
<orderEntry type="library" name="scala-reflect-2.13.15.jar" level="project"/>
<orderEntry type="library" scope="RUNTIME" name="scala-xml_2.13-2.4.0.jar" level="project"/>
<orderEntry type="library" name="scala-xml_3-2.4.0.jar" level="project"/>
- <orderEntry type="library" scope="PROVIDED" name="scala3-library_3-3.3.3.jar" level="project"/>
<orderEntry type="library" name="scala3-library_3-3.8.0-RC2.jar" level="project"/>
<orderEntry type="library" name="slf4j-api-1.7.36.jar" level="project"/>Metadata
Metadata
Assignees
Labels
No labels