Intellij IDEA does not support Mill-based Scala 3 projects #1455
Replies: 2 comments 12 replies
-
To track down the issue, I created a minimal sbt project:
After importing this project, IDEA is aware of Scala 3 . Next I created a minimal Mill project:
After creating the IDEA project (using I glanced over and compared the IDEA project files but could not find anything pointing to Scala 3 except for the dependency on the Scala 3 library which is present in both IDEA projects (in addition to the Scala 2 library). |
Beta Was this translation helpful? Give feedback.
-
@lefou |
Beta Was this translation helpful? Give feedback.
-
I upgraded a project to Scala 3, fixed all issues, and now I have a green build.
As next step, I wanted to test the Scala 3 support of IntelliJ IDEA (latest version 2021.2.1). So I regenerated the project files, started the IDE, and changed some if-then-else statements to the new Scala 3 syntax. However, the IDE did not like the change: The changed parts were marked as syntactically wrong and the code did not compile in the IDE, although it compiled on command line. So it seems that the IDE is not aware that the project uses Scala 3.
Now I wonder what is wrong? Is there a secret switch in the IDE? Are the project files lacking something?
I am using Mill 0.9.9.
Beta Was this translation helpful? Give feedback.
All reactions