diff --git a/.gitignore b/.gitignore index d3fb40a59db..b1185748fca 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,7 @@ jablib/src/main/resources/csl-locales javafx/ -# genreated by gg.cmd +# generated by gg.cmd m2 gg.cmd diff --git a/docs/code-howtos/faq.md b/docs/code-howtos/faq.md index b8764be33fd..cef52fceb42 100644 --- a/docs/code-howtos/faq.md +++ b/docs/code-howtos/faq.md @@ -171,4 +171,32 @@ A: You have to ignore `buildSrc/src/main` as source directory in IntelliJ as ind Also filed as IntelliJ issue [IDEA-240250](https://youtrack.jetbrains.com/issue/IDEA-240250). +## IDE import issues + +One might see following error: + +```text +Could not apply requested plugin [id: 'org.jabref.gradle.module'] as it does not provide a plugin with id 'org.jabref.gradle.module'. This is caused by an incorrect plugin implementation. Please contact the plugin author(s). +> Plugin with id 'org.jabref.gradle.module' not found. +``` + +This happened on Debian 12, with IntelliJ IDEA 2025.2.4 (Ultimate Edition). +The workaround is to compile JabRef once from the command line. + +* Linux: Execute `./gradlew :jabgui:compileJava` +* Windows (Powershell): Execute `.\gradlew :jabgui:compileJava` + +In case Gradle does not find a JDK, use [`gg.cmd`](https://github.com/eirikb/gg) as follows: + +1. Download +2. Move the file to your JabRef project directory +3. Compile JabRef + + * Windows: `.\gg.cmd gradle:java@24 jabgui:compileJava` + * Linux: `sh -x ./gg.cmd gradle:java@24 jabgui:compileJava` + +4. Wait until the command execution completes. + +After about one minute, however, you can continue setting up IntelliJ, because the initial Gradle setup succeeded. + diff --git a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-11-code-into-ide.md b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-11-code-into-ide.md index 93a540b8b82..d0b975c422c 100644 --- a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-11-code-into-ide.md +++ b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-11-code-into-ide.md @@ -59,7 +59,7 @@ Allow also access for both cases and click "Allow access". ## Wait for IntelliJ IDEA to import the gradle project -IntelliJ shows "Importing 'jabref' Gradle Project" at the lower right corner. +IntelliJ shows "Importing 'jabref' Gradle Project" in the lower right corner. This will take several minutes. Wait until this disappears. @@ -71,9 +71,9 @@ Wait until this disappears. You can disregard notifications -* offering to reopen the project in a container -* announcing the project JDK -* suggesting that you install the plugin WireMock +- offering to reopen the project in a container +- announcing the project JDK +- suggesting that you install the plugin WireMock ## IntelliJ IDEA may report low memory