Amornchot Singh1,335 Points
Scala Class not found
I have installed intelliJ with Scala already. However, when I right-click on src file to create a scala class, it can't be selected. Please let me know how to deal with this problem.
Elaine Oglesbay19,264 Points
I think I found the answer on StackOverflow. "Right click on src > Mark directory as > Sources Root" https://stackoverflow.com/questions/38006735/unable-to-create-scala-class-on-intellij
Richard Kiddle9,372 Points
Right-click on src. Select new Scalar class. When it asks for a new filename change object to class on the drop-down menu.
Nabeel Sneij1,050 Points
Had same problem as everyone above. Elaine's research helped me out. Thanks Elaine!
Using Windows 10.
Stephen ColeCourses Plus Student 10,607 Points
As of today 11/11/19, IntelliJ is an exercise in frustration.
After opening the project, I had to right-click on the src folder and "Open Module Settings."
On the right-hand side of this window, I had to left-click on the blue "Source Folders" path that says "src/mail/scala."
Then, to create the Scala object, I had to right-click on that particular folder... src/main/scala to create the SuperHeroes object.
Time to fix this content.