Why does intellij IDEA highlight build.sbt? - intellij-idea

I've recently create a new project with sbt in IDEA and got this
What's wrong with it? I have scala plugin installed and enabled and IDEA version is 14.

Ok, I've found a solution to resolve this problem. Here is the link: https://stackoverflow.com/a/26767860/3974509
You need to invalidate cahce and dsable old SBT plugin.
Caches invalidation: File > Invalidate Caches/Restatr

Related

IntelliJ Idea red Spring and Lombok annotations

I have a problem with IntelliJ Idea 2020.1 Ultimate Edition. It shows Lombok and Spring annotations and imports in red. The project compiles, I can run tests. I did some googling. I tried to reimport maven projects and go to File->Invalidate Caches/Restart. Then I deleted Idea system directory - it does not help. Before it worked fine, I do not know why it started doing this. Can somebody help me out?
I am not sure it is a correct solution, but it worked for me. I just reinstalled IDEA. It was faster that talk to IDEA support trying to figure out what is the cause of the issue
I got the same problem and fixed it from this way. First download lombok dependency from spring.
Then go to IDE and paste it to pom file and run. It isn't fix your problem. Go to Choose this and clear cache. Then restart.
If isn't fix your problem then go to this site and download relevant version of lombok for your IDE. https://plugins.jetbrains.com/plugin/6317-lombok
enter image description here
Then it will download a file. Then go to where you install the IDE and go to this path and paste that lombok java file.
IDE path
After trying these methods error was fixed. Thank you.

Intellij idea compiles but displays lots of errors of missing dependencies on editor

I am using ultimate 2019.3
I am getting this weird thing that it shows lots of compilation errors on depnedenceis such as Spring, Vertx, Guava and stuff like this, but gradle clean build and cmd + F9 works fine.
I tried stuff I found here:
invalidate caches and restart
delete both .m2 and .gradle/cahces
delete .idea (didn't find any *.iml
delete the repository and clone it again from GIT, importing it again to IntelliJ.
project structure -> set to Java 1.8 and checked structure and libraries - nothing out of the ordinary.
installed plugin - choose runtime and set IntelliJ to run on Java 1.8
nothing worked!
Maybe its JDK issue? I see my java -version returns 1.8 but IntelliJ runs with JDK 11.
I am completely lost and have no idea what to do.
Please help.
Regards,
Ido
Fixed it like this:
I deleted .gradle/cahces
I removed IntelliJ 2019.3
I also deleted my local repository
Tried to remove all old installations/version/repos.
Downloaded and installed 2020.1
git cloned my reposotory again
imported my project
**And it works !! **
I hanve no idea why...
maybe the new version.
maybe its the uninstall and remove all caches and versions.
Thanks to all of you who helped me.
Regards,
Ido

How to reset my IntelliJ IDEA plugins to default?

I'm using IntelliJ and I installed almost every plugin available on the repositories, now my IntelliJ is slow.
Is there a way I can reset my IntelliJ plugins to the default ones?
You can delete the whole .idea folder - this will reset all of your settings: https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs
In 2019.1 you can edit the ~/.IntelliJIdea2019.1/config/disabled_plugins.txt file

Grails application is not found after updating to IntelliJ IDEA Ultimate 2016.2

I have updated my IntelliJ IDEA Ultimate to the 2016.2 version.
I had a Grails 3 project and now when I open the IDE I get the following error when trying to run my project:
Error running Grails: My_Project: Grails application is not found
I can still open the terminal and run the project manually, but it seems that IntelliJ IDEA no longer recognises my Grails application. When going to "Edit configurations...", in "Application" it says "[none]" and I can't select anything.
Grails Version: 3.1.9
Groovy Version: 2.4.7
JVM Version: 1.8.0_66
A Simple solution to this is to refresh the gradle projects.
You can do this by popping out the little gradle tab and hitting the "Refresh All Gradle Projects"
I run into the same problem always when i restart intellij. Running grails clean command from the terminal fixed it.
First, re-import the project into IntelliJ 2016.2. Choose the build.gradle file for the import. Use the gradle wrapper or a local gradle installation, where you have given IntelliJ the path to the locally installed Gradle. Let IntelliJ re-index everything. Wait until you see no further indexing on the bottom of the screen.
Second, run the application once, with no edit configuration. After this completes with error, you should be able to choose Run -> Edit Configuration / Application.
Third, you can go into the project pane to the grails-app/init/app-name/Application.groovy file and right-click on that and choose Run. After that, an edit configuration will be created.
Finally, you can try to invalidate cache and restart. (This has nothing to do with Edit Configuration, but sometimes the gradle and/or .idea caches get out of sync.)
I had the same problem after updating to IntelliJ Ultimate 2019.2.
It seems that the "little gradle tab" of the accepted answer no longer exists.
The reason in my case was that the Gradle Plugin had been disabled by the update process.
Resolution: Hit Help > Find Action > Type gradle. You should see a line "Gradle" and a ON-OFF switch at the end of that line.
Enable it and restart IntelliJ solved my problem.

Infinitest and IDEA 10

Has anyone managed to get the new Infinitest open source version running in IntelliJ IDEA 10?
Latest version of Infinitest works well on IDEA 10. Version 5.1.87 can be found here: http://infinitest.github.com/
The version proposed by the plugins wizard is outdated, do you have to manually decompress infinitest into IDEA's plugins folder. On OSX, the plugins folder can be found by right-clicking on Intellij icon, Show Package Content
Once its decompressed, start Intellij and make sure to add the Infinitest facet to your project/module.
The IDEA plugin repository is now up-to-date.
You can install it from the IDEA Plugins manager