From 2b4a552df86a87afb761eb22f8ab20d1628e7fc1 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 4 Sep 2023 20:46:01 +0200 Subject: [PATCH 1/4] Add workaround for IDEA-317606 --- .../pre-03-code.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/pre-03-code.md b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/pre-03-code.md index eaab5a062de..18c0575a519 100644 --- a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/pre-03-code.md +++ b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/pre-03-code.md @@ -25,7 +25,7 @@ In the following, we will use `c:\git-repositories` as base folder: cd \ mkdir git-repositories cd git-repositories -git clone --depth=10 https://github.com/JabRef/jabref.git +git clone --depth=10 https://github.com/JabRef/jabref.git JabRef cd jabref git remote rename origin upstream git remote add origin https://github.com/YOUR_USERNAME/jabref.git @@ -36,6 +36,8 @@ git branch --set-upstream-to=origin/main main > Note that putting the repo JabRef directly on `C:\` or any other drive letter on Windows causes compile errors (**negative example**: `C:\jabref`). > > Further, if you are building on Windows, make sure that the absolute path to the location of the clone does not contain folders starting with '`u`' (**negative example**: `C:\university\jabref`) as this may currently also cause [compile errors](https://github.com/JabRef/jabref/issues/9783). +> +> Please really ensure that you pass `JabRef` as parameter. Otherwise, you will get `java.lang.IllegalStateException: Module entity with name: jabref.main should be available`. See [IDEA-317606](https://youtrack.jetbrains.com/issue/IDEA-317606/Changing-only-the-case-of-the-Gradle-root-project-name-causes-exception-while-importing-project-java.lang.IllegalStateException) for details. {: .note-title } > Background From 78ed56a809e8587212d3bb45bb7e2cdb9d1dcd6e Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 4 Sep 2023 20:57:43 +0200 Subject: [PATCH 2/4] No ".main" in the error message (IMHO) --- .../guidelines-for-setting-up-a-local-workspace/pre-03-code.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/pre-03-code.md b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/pre-03-code.md index 18c0575a519..726e6ead456 100644 --- a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/pre-03-code.md +++ b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/pre-03-code.md @@ -37,7 +37,7 @@ git branch --set-upstream-to=origin/main main > > Further, if you are building on Windows, make sure that the absolute path to the location of the clone does not contain folders starting with '`u`' (**negative example**: `C:\university\jabref`) as this may currently also cause [compile errors](https://github.com/JabRef/jabref/issues/9783). > -> Please really ensure that you pass `JabRef` as parameter. Otherwise, you will get `java.lang.IllegalStateException: Module entity with name: jabref.main should be available`. See [IDEA-317606](https://youtrack.jetbrains.com/issue/IDEA-317606/Changing-only-the-case-of-the-Gradle-root-project-name-causes-exception-while-importing-project-java.lang.IllegalStateException) for details. +> Please really ensure that you pass `JabRef` as parameter. Otherwise, you will get `java.lang.IllegalStateException: Module entity with name: jabref should be available`. See [IDEA-317606](https://youtrack.jetbrains.com/issue/IDEA-317606/Changing-only-the-case-of-the-Gradle-root-project-name-causes-exception-while-importing-project-java.lang.IllegalStateException) for details. {: .note-title } > Background From 8d0c3efd1a1e90b2a8ed44282f4bc71c3572877d Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 4 Sep 2023 23:35:36 +0200 Subject: [PATCH 3/4] Lower-case project name --- settings.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.gradle b/settings.gradle index f6a8d740984..b347e026b2a 100644 --- a/settings.gradle +++ b/settings.gradle @@ -7,4 +7,4 @@ pluginManagement { } } -rootProject.name = "JabRef" +rootProject.name = "jabref" From 14a728d2cfb229b0e3cb0768846c0d0646f436b3 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Wed, 6 Sep 2023 12:54:04 +0200 Subject: [PATCH 4/4] Remove workaround --- .../pre-03-code.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/pre-03-code.md b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/pre-03-code.md index 726e6ead456..eaab5a062de 100644 --- a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/pre-03-code.md +++ b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/pre-03-code.md @@ -25,7 +25,7 @@ In the following, we will use `c:\git-repositories` as base folder: cd \ mkdir git-repositories cd git-repositories -git clone --depth=10 https://github.com/JabRef/jabref.git JabRef +git clone --depth=10 https://github.com/JabRef/jabref.git cd jabref git remote rename origin upstream git remote add origin https://github.com/YOUR_USERNAME/jabref.git @@ -36,8 +36,6 @@ git branch --set-upstream-to=origin/main main > Note that putting the repo JabRef directly on `C:\` or any other drive letter on Windows causes compile errors (**negative example**: `C:\jabref`). > > Further, if you are building on Windows, make sure that the absolute path to the location of the clone does not contain folders starting with '`u`' (**negative example**: `C:\university\jabref`) as this may currently also cause [compile errors](https://github.com/JabRef/jabref/issues/9783). -> -> Please really ensure that you pass `JabRef` as parameter. Otherwise, you will get `java.lang.IllegalStateException: Module entity with name: jabref should be available`. See [IDEA-317606](https://youtrack.jetbrains.com/issue/IDEA-317606/Changing-only-the-case-of-the-Gradle-root-project-name-causes-exception-while-importing-project-java.lang.IllegalStateException) for details. {: .note-title } > Background