Scala plugin for IntelliJ IDEA 10 that does not detect simple errors?

I know that I am missing something, but I can’t understand that. When I create a scala project following the instructions of scala-plugin, no syntax error is detected. For instance:

object MyApp {
  val aNumber: Int = "hello"
}

does not detect errors. If I right-clicked and asked to compile it, then I get the expected type mismatch error from the scala compiler. This is just a dumb example, no syntax errors are flagged. For normal Java projects, it works great, so it should be scala specific.

I have a clean install of IDEA 10 CE on OSX 10.6 and scala 2.8.1. I created jdk in the project settings, as well as scala home when creating the project. I have the latest version of the plugin (12/2010).

Any hint that I'm missing?

+3
source share
4 answers

You need to turn on error highlighting. Enable settings / code style / Scala / Other settings / enable experimental error highlighting

+2
source

It also works here (IntelliJ 10.0.1, Scala 2.8.1, OpenJDK, Ubuntu 10.10 64 bit).

If you want more type checking, you can also check the box "Enable highlighting of experimental errors (it may show a lot of incorrect red code)" in the settings, but this should not matter in your case, although it works fine in my case for a large code base .

+1
source

intelliJ IDEA 10.0.1 + scala 2.8.1 Ubuntu 10.10 64bit.

0

a > modules > [ ] > , scala - - [- ]?

See Studying Project Structure here

0
source

Source: https://habr.com/ru/post/1783148/


All Articles