New Scala Object creates incorrect Object Template

I'm using IntelliJ IDEA 8.1 with Scala Plugin 0.2.23858 and when I use the right click context menu in the Project view (on a package node) and select New -> Scala Object, I receive code like the following:

* Created by IntelliJ IDEA.
* User: Owner
* Date: Apr 21, 2009
* Time: 10:34:10 PM
package org;
public scalaobject.scala TestScalaDebugger { }

This code doesn't compile and isn't very Scala-esque.

This has been a problem with the Scala Plugin for the last several months, at least for me.

Please let me know if this issue needs any clarification, thanks for your help.

Sam Reid

Comment actions Permalink

It seems, that it's not scala object template. I think it's java class template, or general template.
I had this problem once, I thought that it's installation problem. I don't remember how I fixed this (may be some files deletion magic), but I think that full reinstall should help (I mean that you need to delete system and config folders and if it will not help then reinstall IDEA (not update)).
I can't to say more now, and if I find any more handy suggestion to fix your problem, I'll write you again.

Best regards,
Alexander Podkhalyuzin.

Comment actions Permalink

I followed your instructions, and the problem disappeared after I uninstalled and reinstalled IntelliJ IDEA.  Thanks very much for your help, it's working much better now.

Sam Reid


Please sign in to leave a comment.