Rob N
Rob N

Reputation: 16399

Why is IntelliJ highlighting errors in one project, but not another?

I'm using IntelliJ 13 and the Scala plugin. In one project if I make an obvious type error I get a visual indication, like this:

enter image description here

But I just started a new project and a similar thing is not highlighted, even after I compile.

enter image description here

I'm giving a presentation on some Scala code and I'd like it if the type errors highlighted like in the first one, but I have no idea where the setting is.

Upvotes: 1

Views: 1218

Answers (1)

Dropout
Dropout

Reputation: 13866

One reason could be that the level of highlighting is set to a lower setting. Check your lower right corner for a button which adjusts this setting with a slider. It looks like (at least to me) a policeman face :)

Another thing is that you might not have declared what additional languages you're using besides the primary one. You can configure this in the project settings.

Also if you are using a tool to build a project (like Maven for example) try rebuilding or reimporting your project.

edit: One last thing. Make sure IDEA isn'currently reindexing or running some background tasks, this really messes up code correction.

Upvotes: 2

Related Questions