Scala Confusion - No Scala Class in New Menu

I just reinstalled IntellJ CE 12.1 and made sure it was a fresh install by removing any previous settings, etc.

I then installed the Scala plugin and created a scala project, etc.

Now when I try to create a new Scala class, all I see in the new menu that is Scala related is Scala Worksheet and Scala Script. I've check the file templates and there are templates for Scala Class, Trait, and Object as well as Script and Worksheet.

How come they don't appear on the New menu?

Also, I've tried to find Scala documentation and it never seems to be right because the screenshots don't match what I'm seeing.

4 comments

This has happended from time to time. To create a scala class open the menu on an already existing node in the package (eg, an existing class) and you will see the Create Scala entry.

0

This is a brand new project, so there is no existing class.

0

Well, that makes it a bit tricky. You could of course first create a java class and then a scala class and then delete the java class...

0

Hi, I checked source code, and there are two possibilities of this bug (actually I wasn't able to reproduce it)
1. Scala Facet is not available for your module. (just add Scala Facet to module)
2. Some platform bug. (I can't reproduce it, so I need to add some diagnostic code, then we will probably find the solution). In this case I need an issue, where we will be able to discuss how to fix it (you can create it here: http://youtrack.jetbrains.com/issues/SCL).

Best regards,
Alekdandr Podkhaliuzin.

0

Please sign in to leave a comment.