can't run forked project while other can

已回答

I am pulling branch from https://github.com/tychobrailleur/HO/tree/java-14 and trying to run the project.

The project built successfully but then when launching it throws the following error: 

Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Modules checker.qual and org.checkerframework.checker.qual export package org.checkerframework.checker.signedness to module scribejava.core

I am the only one from the development team having such error and we are all using IDEA.

I guess it might have something to do with module-info.java but I am not sure and I have no idea on how to fix it.

 

 

 

0

I finally got more verbose errors (still cant figure out what to do but it might help but it might be linked to https://github.com/typetools/checker-framework/issues/1935)

I have hundreds of line as follow: 

 

error: the unnamed module reads package com.google.gson from both com.google.gson and gson

error: the unnamed module reads package com.google.gson.reflect from both com.google.gson and son

error: the unnamed module reads package org.checkerframework.common.value.qual from both checker.qual and org.checkerframework.checker.qual

...



0

Hello,

Looks like https://youtrack.jetbrains.com/issue/IDEA-235898

Am I right that it runs fine using Gradle? You may set Gradle as runner in "Settings/Preferences | Build, Execution, Deployment | Build Tools | Gradle"

0

Hello,

 

It is not the same issue as the one you shared a link for.

I can run task compileJava fine:

But if I try to run the project either from IDEA or from Gradle I got the following:

 

0

Am I got you right that running using Gradle outside IDE also results in the same error? Does Gradle run work fine on other machines?

0

I never had issue before with gradle / IDEA. Running the project with java 8 and java 11 works well. Only this branch wich is java-14 is causing me issues while others can run it. I have removed and reinstalled IDEA without success. 

0

Do others use the same JDK/Gradle version?

0

We all use same JDK openjdk-14 and for gradle it is set via the wrapper to version 6.4.1

0

And it works fine in terminal on other machines, but doesn't work in terminal on yours? When you use terminal only Gradle is reliable for project configuration/build. 

0

Everyone in the team including me is using IDEA. I have just tried to copy/paste into the terminal the command indicated by IDEA hoping to have a more verbose stacktrace but I got exactly the same output, here below is the (very long) command

 

".\.jdks\openjdk-14.0.1\bin\java.exe" "-javaagent:.\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\201.7223.91\lib\idea_rt.jar=59185:.\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\201.7223.91\bin" -Dfile.encoding=UTF-8 -p "D:\Perso\Code\HO\out\production\classes;D:\Perso\Code\HO\out\production\resources;.\.gradle\caches\modules-2\files-2.1\com.google.guava\guava\29.0-jre\801142b4c3d0f0770dd29abea50906cacfddd447\guava-29.0-jre.jar;.\.gradle\caches\modules-2\files-2.1\com.toedter\jcalendar\1.4\180cf82b37b0c1324e7de33bd0114be7d86678cd\jcalendar-1.4.jar;.\.gradle\caches\modules-2\files-2.1\com.github.scribejava\scribejava-core\6.9.0\ed761f450d8382f75787e8fee9ae52e7ec768747\scribejava-core-6.9.0.jar;.\.gradle\caches\modules-2\files-2.1\org.hsqldb\hsqldb\2.4.1\9daff99b4fbd6809fd46ab4327650ad00a1be6d4\hsqldb-2.4.1.jar;.\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.8.6\9180733b7df8542621dc12e21e87557e8c99b8cb\gson-2.8.6.jar;.\.gradle\caches\modules-2\files-2.1\com.squareup.okhttp3\okhttp\4.3.1\631751fe30a9fd38634cabb28c15deec7ca4aad\okhttp-4.3.1.jar;.\.gradle\caches\modules-2\files-2.1\com.google.guava\failureaccess\1.0.1\1dcf1de382a0bf95a3d8b0849546c88bac1292c9\failureaccess-1.0.1.jar;.\.gradle\caches\modules-2\files-2.1\com.google.guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\b421526c5f297295adef1c886e5246c39d4ac629\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;.\.gradle\caches\modules-2\files-2.1\com.google.code.findbugs\jsr305\3.0.2\25ea2e8b0c338a877313bd4672d3fe056ea78f0d\jsr305-3.0.2.jar;.\.gradle\caches\modules-2\files-2.1\org.checkerframework\checker-qual\2.11.1\8c43bf8f99b841d23aadda6044329dad9b63c185\checker-qual-2.11.1.jar;.\.gradle\caches\modules-2\files-2.1\com.google.errorprone\error_prone_annotations\2.3.4\dac170e4594de319655ffb62f41cbd6dbb5e601e\error_prone_annotations-2.3.4.jar;.\.gradle\caches\modules-2\files-2.1\com.google.j2objc\j2objc-annotations\1.3\ba035118bc8bac37d7eff77700720999acd9986d\j2objc-annotations-1.3.jar;.\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.10.0\1127c9cf62f2bb3121a3a2a0a1351d251a602117\jackson-databind-2.10.0.jar;.\.gradle\caches\modules-2\files-2.1\com.squareup.okio\okio\2.4.1\569165a2a9c1f7af07dffc80ed983013a2209896\okio-jvm-2.4.1.jar;.\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib\1.3.61\4702105e97f7396ae41b113fdbdc180ec1eb1e36\kotlin-stdlib-1.3.61.jar;.\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-annotations\2.10.0\e01cfd93b80d6773b3f757c78e756c9755b47b81\jackson-annotations-2.10.0.jar;.\.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.10.0\4e2c5fa04648ec9772c63e2101c53af6504e624e\jackson-core-2.10.0.jar;.\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-common\1.3.61\65abb71d5afb850b68be03987b08e2c864ca3110\kotlin-stdlib-common-1.3.61.jar;.\.gradle\caches\modules-2\files-2.1\org.jetbrains\annotations\13.0\919f0dfe192fb4e063e7dacadee7f8bb9a2672a9\annotations-13.0.jar" -m ho/core.HO

 

0

Yaroslav, additional information.

I completely cleaned my install (java, gradle and IDEA). Now I can run my project using gradle but not IDEA (this is what you suggested in the first post).   Is it a known issue in IDEA 2020.1 and java 14 ? 

0

Yes, there might be an issue with classpath generated by IDE, but Gradle handles it correctly. We're investigating the issue. For now please use Gradle runner.

1

Ok I will do that until it gets fixed in IDEA ... thank you 

0

请先登录再写评论。