Editing Scala scripts


I'm editing a Scala script, and syntax highlighting and auto-completion do work, except for these symbols that aren't recognized:

  • printf() function
  • "args"
  • Nil
  • ....
I think this is a bug, that didn't existed before.

I'm using latest Scala plugin and IDEA 13.1, and Scala 2.10.3,
I have tried both inside a Scala module and outside any module.
Comment actions Permalink

I think Scala scripts should be always outside module, because it can confuse Scala compiler.
But outside module Nil is red, it's true, because scala-library is not assigned. Probably we can do something, just create a ticket about it.

As for args I think it's a bug: http://youtrack.jetbrains.com/issue/SCL-6019

Best regards,
Alexander Podkhlayuzin.

Comment actions Permalink

Created http://youtrack.jetbrains.com/issue/SCL-6421, and added a comment in the other issue.

Comment actions Permalink

Congratulations, in the new release, the script support has been improved and now recognizes "args".


Please sign in to leave a comment.