Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAmornchot Singh
1,335 PointsScala Class not found
Dear,
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.
liamthornback2
9,618 PointsI'm having the same problem.
4 Answers
Elaine Oglesbay
19,264 PointsI 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 Kiddle
9,372 PointsRight-click on src. Select new Scalar class. When it asks for a new filename change object to class on the drop-down menu.
Nabeel Sneij
1,050 PointsHad same problem as everyone above. Elaine's research helped me out. Thanks Elaine!
Using Windows 10.
Stephen Cole
Courses Plus Student 15,809 PointsAs 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.
Jason Anders
Treehouse Moderator 145,860 PointsJason Anders
Treehouse Moderator 145,860 PointsWould also like to know how to solve this? andi mitre
Once you update to IntelliJ 2017.1 ... it's even worse to try and start a Scala project to match the tutorial.