I'm using IntelliJ IDEA 13.1.3 and am trying to compile a Scala 2.10.4 project. It compiles for a while, then the compile process hangs.
I can compile and run my project from the sbt console.
I already invalidated caches, cleaned the project, reinstalled IntelliJ IDEA and all plugins.
Any ideas why Intellij behaves like this?
The problem was the Play Framework plugin. Uninstalling it did the trick.
Alternatively, you can try the Community Edition, as it does not have Play support at all.
Related
I can't see any compile errors in the project.
I've already tried to
to restart IDE.
to enable Scala type-aware highlighting(ctrl+shift+alt+e)
It didn't help.
Below is my IDE Version:
Intellij IDEA 2021.2.2(Ultimate Edition)
I've figured it out with the following steps.
Update Scala plugin if possible.
Disable other plugins(e.g. Andoroid).
Restart IDE.
Enable all the needed plugins again.
I have sbt 0.13.16 and Scala 2.10.6 running with Intellij 2018.2.1, working with those recommended sbt and Scala settings for Odersky's coursera course on Scala (I'm guessing their automated submission grader depended on old SBT?).
When creating new sbt + scala projects, I choose the above sbt and Scala versions, then after all the dependencies have downloaded, when I right-click New -> ... I see options for Java class but nothing for Scala. I have the Scala plugin already there according to the plugin settings.
So I try to Add Framework Support after right-clicking on the project, I select Scala, but then everything is disabled except Cancel.
I looked through previous forums, found one but that seemed relevant only for git projects.
Anyone else run into this issue? Do I need to update to more recent Scala and SBT? Any help would be very appreciated.
Please check https://plugins.jetbrains.com/plugin/1347-scala/versions for a compatibility table.
You can manage plugins in IntelliJ Preferences. Your versions seem to be too old to still be supported, already. It may help to upgrade IntelliJ and then go to preferences and get the latest Scala and SBT plugins.
Today I got an update on Scala from 1.3.x to 1.4 After that, Intellij stopped launching my play projects.
First when I would try to run activator from the command line, it gave me the following error
Error: Unable to access jarfile <path to project>\activator-launch-1.2.8.jar
So I replaced all the activator files from within the project. Then it started to run from the teriminal/console but when I hit Run/Debug on the my Play configuration in Intellij it simply makes the project and then nothing happens. It doesn't launch in the browser. There are no errors in the event log; just compilation successful message.
I'm using the exact same project from yesterday with no changes apart from installing the new scala plugin.
I tried reverting back to 1.3 on scala, but it keeps saying that version is not compatible with the new Intellij.
I am using a Win 8 machine 64 bit.
Temporary Solution:
As a quick fix for now, I installed an older version of the plugin from here - https://confluence.jetbrains.com/display/SCA/Scala+plugin+EAP
I installed Scala plugin 1.4 RC (1.3.110.35.EAP) and it worked.
Just make sure you do not select to auto-update your plugins or when you restart it will ask you to update the scala plugin, do not click that.
It's running for now but it would be good to have a fix for this soon.
IntelliJ Tickets
https://youtrack.jetbrains.com/issue/SCL-8484
https://youtrack.jetbrains.com/issue/SCL-8512
I just installed v1.4.15 and it launches the Play application as expected.
Thank you!
I'm pretty new to the Play framework. I've been trying to configure it so I can use it with IntelliJ Ultimate.
I use following:
IntelliJ Ultimate 14.03
Scala plugin for IntelliJ 1.2.1
Play Framework 2.3.7 (the one that works online 1,2MB)
Scala 2.11
JDK 1.7
Windows 7
My problem is all about the fact that i can't make the errors disappear. Below is a simple example. When I create something more complicated (mapping etc.) I get entire blocks of red (also it does not suggest any code for the more complicated code).
What I've tried to fix it:
- deleting .idea folder and generating it again
- cleaning sbt
- generating a Play app from inside activator and also from IntelliJ
- re-installing IntelliJ
This is how I create the app from inside IntelliJ
I'm new both to Scala and Play, but I've done some research and I didn't end up with working solution. The same project works on Eclipse, but I would like to stick with IntelliJ.
The Scala plugin 1.2.1 is fairly outdated (given the development stage/pace of the Scala support in IntelliJ IDEA).
As of today, Jan, 29th, you should really be using the latest version of the Scala plugin 1.3.
I'm using IntelliJ IDEA 13. I have a Play 2.0 project and a separate Scala project. When I install the Play 2.0 plugin (version 0.30.379) and open just the Scala project, the Scala compiler stops working. When I remove the Play 2.0 plugin, I can see that the Scala compiler is working when doing a rebuild (it shows up in the status area then).
If I remove the Play 2.0 plugin and use the Play 1.x plugin, Scala compiles fine. Reverting to previous versions of the Scala and Play 2.0 plugins doesn't seem to help (I reverted to versions prior to february 2014).
I tried a fresh install of IntelliJ but no luck.
Any ideas?
I've also posted this issue in the Jetbrains issue tracker here: http://youtrack.jetbrains.com/issue/IDEA-120990 I'll update this if I find out anything.
It looks like this is a bug in Intellij 13.0.2+ and may work fine in 13.0.1. I'll test that and update this answer.