According to Getting Started with IntelliJ IDEA Scala Plugin:
You can also turn your Scala object into a script. Just remove all declarations from the file, leave the executable statement only - println("Hello, World!"), and run the script as described above.
However I confirm that it results with the same error as you quoted. I think this is a bug (or inaccurate documentaion), file a bug, Jetbrains guys are developing this plugin very actively.
I have just installed idea + scala plugin and had the same error on running my 1st "hello, world".
I solved it with Run -> Edit Configurations... -> select the script run configuration -> untick "Make" under "Before launch"
- How to run scala code on Intellij Idea 11?
- How to run Scala code in Intellij Idea 10
- How to run tests on every code change in IntelliJ IDEA from Scala sbt project?
- How to configure code style for Scala in IntelliJ IDEA
- Scala code compiles through command-line sbt but fails when compiled through Intellij Idea - how set up Intellij to use external sbt?
- How to create xml scala code format schema for IntelliJ IDEA
- How to use Scala in IntelliJ IDEA (or: why is it so difficult to get a working IDE for Scala)?
- How to run a Scala script within IntelliJ IDEA?
- How to add Jar libraries to an IntelliJ Idea SBT Scala project?
- How do I change intellij idea to compile with scala 2.11?
- How to setup Intellij 14 Scala Worksheet to run Spark
- How do I run a scala ScalaTest in IntelliJ idea?
- reader writer state monad - how to run this scala code
- How to debug a scala based Spark program on Intellij IDEA
- How to get Scala imports working in IntelliJ IDEA with the Play framework?
- How to set up Java and Scala in one single Module in Intellij IDEA 11?
- How do I get Intellij IDEA 12.0 to work with Play Framework 2.1.0 app and Scala 2.10.0?
- How to run Spark Scala code on Amazon EMR
- How to know if a Scala file modified with IntelliJ Idea is saved and if it is checked into CVS?
- How to run a spark example program in Intellij IDEA
- How to set up an IntelliJ Idea Scala project to recognize local Ivy2 cache?
- How to compile and run scala code quickly in vim?
- How do I make intellij Idea to highlight Scala script correctly with #! (shebang)
- Partial EMMA code coverage in Scala Case Class for IntelliJ IDEA 10.5
- Intellij not able to run Scala Code
- How to custom code folding for Scala in intelliJ IDEA?
- Getting "Internal error: Scala instance doesn't exist or is invalid" when trying to run a worksheet in IntelliJ IDEA
- How to run python code with args with python -c command from scala
- How to create an SBT Run configuration in IntelliJ IDEA 11 Community Edition?
More Query from same tag
- Why do Scala immutable HashMap methods return a Map?
- Is it a good idea to add methods to Scala case classes
- how to deal with error SPARK-5063 in spark
- Implement abstract methods with a def macro
- Get an implicit instance by class name
- Scala create a sparse vector
- what is the use of  these brackets in case class before parameter list in scala
- Getting null pointer exception when running saveAsNewAPIHadoopDataset in scala spark2 to hbase
- Understanding Spark CosineSimillarity output
- How to use extractor in polymorphic unapply?
- object typesafe is not a member of package
- ordered split of spark dataframe in scala
- How to Load .sql file to Scala?
- Sort by value in map type column for each row in spark dataframe
- Is there a way to support schema evolution in avro4s
- How to make IntelliJ Scala plugin run the unit test, or how to teach IntelliJ that a file is a unit test code?
- How to split an Array[Double] at point n
- Scope & memory issues in Scala
- Why the generated id and name of an input are different, in a liftscreen
- sbt-native-packager fails with "Too many open files in system" when mapping a directory
- Why does scala compiler fail to find implicit parameter value/conversion when it is an overload and has generic type param?
- Scala: Help me understand List performance
- How to set redirect strategy in apache async http client
- How to make intellij import scala project with scala 2.11.7 (as per build.sbt)?
- Access Play Framework Router routing table at run time
- What are the different types of functions you can create based on the position of the function call?
- What is the meaning of "val Class.Something(2,_) = doSomething()"?
- Apache Spark - UDF doesn't seem to work with spark-submit
- Play framework how to iterate with ordered index
- Scala - Keep Map in foreach