I recently gave up trying to use Scala in Eclipse (basic stuff like completion doesn\'t work). So now I\'m trying IntelliJ. I\'m not getting very far.
I\'ve been able to
I just did a fresh install and had exactly this same problem myself. It turned out that, because I had created the file in the root package, IDEA had added a package statement at the top with naming a package. I assume that this then got compiled as "package object Main" - valid syntax in 2.8? Anyway, I deleted the line that said package and it all worked fine.