Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ + Play Framework routes file red underline error

Image of the errors

I don't how to fix this red underlines I recently got in my routes files.

What I did: I split up my routes files into 3 files: - routes - rest.routes - web.routes And after I did, IntelliJ said something about "We have a new program that can handle .routes files" and I clicked yes to it. <-- Stupid me :(

Can also mention that I cant remember what addon that was installed, and I cant find any addons that differs from previous versions.

Before there was no "spellchecking" on the file, but now I get this box in top of the file saying "Project SDK is not defined 'Setup SDK' ". It also gives the red "undelining" similar to spellchecking under every single line of code in the file.

The code itself works great, its just very frustrating to have these red lines everywhere.

Anyone know how to get rid of it?

Highly appreciated!

like image 742
Kristian N Avatar asked May 04 '17 17:05

Kristian N


2 Answers

IntelliJ 2017.2 and Play Framework 1, I had this problem one day. Took me awhile to figure out but it was the Scala plugin that made this fail for me. After uninstalling the Scala plugin it works again.

like image 178
Robert Sjödahl Avatar answered Oct 23 '22 17:10

Robert Sjödahl


I also faced similar issue recently. The plugin that Intellij asks to install in this case is Erlang. You just have to uninstall it (or just suppress the warning).

To uninstall Erlang go to Preferences.. -> Plugins. Then search for Erlang and select. Then click uninstall (on the right pane).

enter image description here

like image 1
utsav_deep Avatar answered Oct 23 '22 18:10

utsav_deep