Scala plugin for IntelliJ IDEA 10 not detecting simple errors?

intellij not detecting errors
eclipse not showing syntax errors
intellij syntax highlighting not working
intellij install scala plugin
scala plugin for intellij download
plugin scala is incompatible with this installation
intellij not showing errors scala
intellij not checking code

I know I must be missing something, but can't figure out what. When I create a scala project, following the scala-plugin instructions, not a single syntax error is detected. For example:

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

does not detect any error. If I right-click and ask it to compile, then I get the expected type mismatch error from the scala compiler. This is just a silly example, no syntax errors are being flagged. For regular Java projects it works fine, so it must be scala specific.

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

Any hint on what I'm missing?

You have to enable error highlighting. Turn on Settings/Code Style/Scala/Other settings/Enable experimental error highlighting

No Syntax Error Highlighting, what am I doing , When I create a scala project, following the scala-plugin instructions, /4580887/ scala-plugin-for-intellij-idea-10-not-detecting-simple-errors)� I'm a new IDEA user. I recently downloaded v10.0.2 along with the Scala plugin. To learn my way around the environment I started a simple project. In my project I've written some tests for use with ScalaTest v1.3. For example: class TimeSuite extends FunSuite with Assertions with ShouldMatchers { IDEA puts a red underline beneath "TimeSuite."

Works here too (IntelliJ 10.0.1, Scala 2.8.1, OpenJDK, Ubuntu 10.10 64bit).

If you want more type checking you can also tick "Enable experimental error highlighting (possibly shows many wrong red code)" in the Settings, but this shouldn't make a difference in your case, although it works perfectly in my case for a large code base.

Discover Intellij IDEA for Scala - Help, After the installation, IntelliJ IDEA will keep track of the plugin updates track of error analysis based on the Scala type system using the Scala undo refactorings and revert changes from Local History, it makes no sense The simplest way to do it is to press Ctrl+F12 . Finding usages Run, Shift+F10. This post was titled "Scala Plug-In not catching variable scope errors in Scala files" but I now believe the root cause is an improper Scala plugin installation. Here is a simple class. class IdeaTest { val s = new String() } def foo(a:String) { print(a) } foo(s) Clearly s is out of scope when used later in foo.

intelliJ IDEA 10.0.1 + scala 2.8.1 on Ubuntu 10.10 64bit.

It shows a type mismatch error

Scala Plugin for IntelliJ IDEA - Scala, Scala Plugin turns IntelliJ IDEA to a convenient Scala development environment. If it's the first time you're seeing this page, you should strongly consider though it compiles and works, I get a syntax error with "new GisPoint(10,10)". 2) On manual project compilation, the errors are not linked in the editor. I have a clean install of IDEA 10 CE (tried with Ultimate as well) on a OSX 10.6 and Scala 2.8.1 final. I have set up the jdk in the project settings as well as the scala home when creating the project. The Scala facet is configured and I have both scala-library and scala-compiler in the dependencies (tried without the scala-complier as well).

In project structure > modules > [your project name] > dependencies tab, do you have scala-compiler-[some version] listed?

See the Exploring the Project Structure here

Scala plugin for IntelliJ IDEA 10 not detecting simple errors?, When I create a scala project, following the scala-plugin instructions, not a single syntax error is detected. For example: object MyApp { val aNumber: Int = "hello" } � Why is Intellij + Scala plugin so slow. Intellij is quite snappy while developing java projects. In scala projects autocomplete, syntax verification and most commands are delayed sometimes with more than 3-5 seconds. Restarts or usage of Ultimate version of Intellij doesn't help.

For 2019.1 CE on Mac OS:

Preferences | Build, Execution, Deployment | Compiler | Scala Compiler

Checked the option:

Features->Experimental Features

JetBrains/intellij-scala: Scala plugin for IntelliJ IDEA, However, if this didn't happen, and if you're seeing decompiled code when opening a platform API class you can click the option "attach sources" at the top of the� Adds support for the Scala language. The following features are available for free with IntelliJ IDEA Community Edition:.

JetBrains/intellij-scala, Basically the errors are reported as if the macro expansion hasn't taken place, We have an API that allow to write support custom macros as a separate intellij plugins. https://blog.jetbrains.com/scala/2015/10/14/intellij-api-to-build-scala- macros- because you change existing classes and not just add some extra code. I have the same problem but on Mac OS "Error:source file '/Applications/IntelliJ IDEA.app/Contents/bin' could not be found" 0 Lickteig Joshua

Getting Started with Scala in IntelliJ, Next, download and install IntelliJ Community Edition; Then, after starting up the instructions on how to install IntelliJ plugins (search for “Scala” in the plugins menu.) If you see Error: library is not specified, you can either click download button, Now you know how to create a simple Scala project which can be used for� This does not fix this for me, I and many others have the same issue. For me I'm on Ubuntu 18:04 All sources paths compilers are set, creating a new Scala Project with Intellij template (not lightable or sbt) following tutorials and there is no Option to run a Singleton (Object) class or any script.

21 Best IntelliJ Plugins for 2019 (100% Free), Have no doubt, JetBrain's decision to open source and allow external The Maven Helper plugin provides an easy way to find and exclude conflicting in… the Codota plugin helps you code faster and with fewer pesky errors. FindBugs is a defect detection tool for Java that uses static analysis to look� If existing plugins do not provide some functionality that you need, you can create your own plugin for IntelliJ IDEA. For more information, see Develop your own plugins . By default, IntelliJ IDEA includes a number of bundled plugins.

Comments
  • Did you add the Scala facet to your project? And what is the name of the file in which your MyApp object resides?
  • I've noticed the same thing on my Linux environment. I'm new to IDEA, so I chalked it up to my lack of familiarity.
  • David, my project has the Scala facet. The "MyApp" object is by itself in a "MyApp.scala" file.
  • Also with IntelliJ IDEA 10, I don't notice any error highlighting. I suspect this is not fully implemented yet.
  • I am thinking of migrating to IntelliJ from Netbeans and found the IntelliJ plugin to be quite a disappointment. I don't understand what the hue and cry about Scala on IntelliJ is about unless I missed something. It does not detect simple errors, and even if it does (after the solutions given below), it does not offer a resolution (?) (quite disappointing). I could have used notepad++ and sbt to get the functionality of this plugin. What exactly does the plugin do?
  • I don't have the "Other settings" option.
  • Yes, a scala compiler is listed in the dependencies tab. This is really frustrating.