Missing project level settings - intellij-idea

I am running 2018.3 CE of IntelliJ on MacOS Mojave. For some reason I when I pick Preferences -> Build, Execution, Deployment -> Gradle I don't see any of the "Project-level settings". Any help will be very much appreciated.

Do you have a project open that was imported from build.gradle? Some options become available only with the open project and not from the Welcome Screen. Some options are also hidden if the project was not imported from Gradle.

Related

IntelliJ after update i can't load dart/flutter plugin

I updated IntelliJ community version via IntelliJ toolbox and now i can't run my code. Flutter doctor says that everything is ok.
In IntelliJ -> Settings -> Plugins, installed -> i don't see flutter or dart plugins and in plugins market is endless loading.
I tried uninstall but the problem persists
It's a known bug in the Toolbox application .
The workaround is to edit -Didea.plugins.path= in Help | Edit Custom VM Options to move plug-ins folder outside of the user's home directory.

Can't find SBT-shell in IntelliJ IDEA

Facing some issue with the build, I deleted the project and .idea directories of my SBT project (containing submodules) followed by Invalidate Caches / Restart... (invalidated the cache too)
Ever since relaunch of IntelliJ, I can't locate the sbt shell
Interestingly, I'm still getting the sbt shell when I open my other projects (in which I didn't delete the project and .idea directories) in IntelliJ
I can confirm that I have the latest release of IntelliJ IDEA for MacOS with the Scala plugin installed
what fixed my problem was:
install scala plugin
restart
file -> close project
instead of open, click new project, select scala with sbt option,
then next
select the same project as location.
hope it will save you time and energy
In Intellij 2018, under Preferences - Build, Execution, Deployment - Build Tools - sbt, check "Use sbt shell for build and import (requires sbt 0.13.5+)". Then restart Intellij. The sbt shell tool window tab will appear in the bottom pane (if not, select it from View - Tool Windows - sbt shell).
In my case, scala plugin needed to be updated and accordingly this caused sbt to disappear from build tools. Go to Settings --> Plugins --> Updates and make sure that scala plugin is updated. If it wasn't and you updated it, you should restart the IDE afterwards.
After that removing the .idea folder and reimporting the project was necessary for the project to build.
You can select
Window → Restore Default layout
Or press Shift + F12
This will restore your default window layout and the tab will be visible again (You can check this works by hiding the sbt tab by right clicking and selecting 'Remove From Sidebar').
Some windows such as Maven or Ant need to be brought back by
View → ToolWindows → [Window Name]
In my case I enabled the sbt shell going to "File - Settings - Build, Execution, Deployment - Build Tools - sbt " and after enabling here, you need to restart your intellij and then you can find sbt-shell here "view- Tool window - sbt shell"

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.

How do I open the Gradle tasks window in Intellij?

This is probably a very silly question, but I cannot find the gradle tasks window, like with compile, clean, build, instrument etc.
Can anyone help me? Thanks
View -> Tool Windows -> Gradle
In my case the Gradle window was not in the Tool Windosws menu because the project was not linked with Gradle yet. IntelliJ eventually detected that the Gradle files in the project and suggested to link it.
After that (as mentioned by #RaGe) the Gradle window could be surfaced using:
View -> Tool Windows -> Gradle

IntelliJ IDEA Kotlin plugin - "there aren't configurators available"

I'm having problems using the Kotlin plugin in IntelliJ IDEA. First, upon opening a kotlin project, it pops up that I need to configure Kotlin in this project. But when I do so from the Tools menu, it says "there aren't configurators available"
I had this same problem in Android Studio 3.0 Canary 1. Cneal build, Synchronize, Invalidate Caches and Restart didn't help.
The only thing that worked was to make a change to a build.gradle file and click "Sync now".
I had the same problem with one of my Kotlin gradle project.
Go to View -> Tool Windows -> Gradle. There should be a Reimport all Gradle Projects icon at the top. (Circle with double arrows). Just click on it and it should refresh your gradle project with Kotlin configuration.
I realized the problem was my Gradle plugin was disabled.
This happened to me with Kotlin 1.3 and IntelliJ 2018.2.6.
I tried all the above solutions listed---none of them worked until I actually deleted the .idea folder and .iml file from my Kotlin gradle project directory and then re-imported them in IDEA, then all was well.
Restarting Android Studio and then going to File -> Invalidate Caches, checking "Clear file system cache and Local History" and "Clear VCS Log caches and indexes", and clicking the "Invalidate and Restart" submit button fixed the problem for me :)