Rohan Maity
04/19/2019, 5:49 PMConfigure Modules with Java(Gradle)
, Configure modules with JS(Gradle)
and two same options with Maven
. From here on I am getting confuseddsavvinov
04/19/2019, 6:47 PMRohan Maity
04/19/2019, 6:53 PMdsavvinov
04/19/2019, 6:58 PM./gradlew dist
from command line to see if project builds fine.
Then, try to re-import everything from a scratch (git clean -xdf
may help, though it will remove all unstaged or untracked changes). Make sure to not press anything (including any configuration/import suggestion pop-ups) after opening a project until you make "New Module From Existing Sources".
If that won't help, try running Refresh Gradle Projects
from the Gradle ToolWindow and see if projects works fine for you (code is resolved, completion works, etc.)Rohan Maity
04/21/2019, 2:27 AM./gradlew dist
in Kotlin project . Could anyone help me with this
> Task :core:util.runtime:compileJava FAILED
/home/thelimitbreaker/IdeaProjects/kotlin/core/util.runtime/src/org/jetbrains/kotlin/utils/WrappedValues.java:72: type parameters of <V>V cannot be determined; no unique maximal instance exists for type variable V with upper bounds V,java.lang.Object
return unescapeNull(unescapeThrowable(value));
^
/home/thelimitbreaker/IdeaProjects/kotlin/core/util.runtime/src/org/jetbrains/kotlin/storage/LockBasedStorageManager.java:322: type parameters of <V>V cannot be determined; no unique maximal instance exists for type variable V with upper bounds T,java.lang.Object
if (!(_value instanceof NotValue)) return WrappedValues.unescapeThrowable(_value);
^
/home/thelimitbreaker/IdeaProjects/kotlin/core/util.runtime/src/org/jetbrains/kotlin/storage/LockBasedStorageManager.java:327: type parameters of <V>V cannot be determined; no unique maximal instance exists for type variable V with upper bounds T,java.lang.Object
if (!(_value instanceof NotValue)) return WrappedValues.unescapeThrowable(_value);
^
/home/thelimitbreaker/IdeaProjects/kotlin/core/util.runtime/src/org/jetbrains/kotlin/storage/LockBasedStorageManager.java:427: type parameters of <V>V cannot be determined; no unique maximal instance exists for type variable V with upper bounds V,java.lang.Object
if (value != null && value != NotValue.COMPUTING) return WrappedValues.unescapeExceptionOrNull(value);
^
/home/thelimitbreaker/IdeaProjects/kotlin/core/util.runtime/src/org/jetbrains/kotlin/storage/LockBasedStorageManager.java:435: type parameters of <V>V cannot be determined; no unique maximal instance exists for type variable V with upper bounds V,java.lang.Object
if (value != null) return WrappedValues.unescapeExceptionOrNull(value);
^
5 errors
FAILURE: Build failed with an exception.
Rohan Maity
04/21/2019, 9:32 AMdsavvinov
04/21/2019, 10:39 AMRohan Maity
04/21/2019, 10:40 AMdsavvinov
04/21/2019, 10:49 AMunescapeExceptionOrNull
to T
explicitly (as proposed here: https://stackoverflow.com/questions/5666027/why-does-the-compiler-state-no-unique-maximal-instance-exists)
If you'll find the root issue, feel free to reach me, I'm genuinely curious)Rohan Maity
04/21/2019, 12:00 PMRohan Maity
05/18/2019, 12:05 PMPlease set environment variables: JDK_16, JDK_17, JDK_9 to point to corresponding JDK installation.
Rohan Maity
05/18/2019, 12:07 PMRohan Maity
05/18/2019, 12:07 PM# Java
export JAVA_HOME="/usr/java/jdk1.8.0_202"
export JDK_16="/usr/java/jdk1.6.0_07"
export JDK_17="/usr/java/jdk1.7.0_80"
export JDK_18="/usr/java/jdk1.8.0_202"
export JDK_9="/usr/java/jdk-9.0.4"
Rohan Maity
05/18/2019, 12:08 PMRohan Maity
05/18/2019, 12:09 PMPlease set environment variables: JDK_16, JDK_17, JDK_9 to point to corresponding JDK
Rohan Maity
05/18/2019, 12:34 PMRohan Maity
05/18/2019, 12:35 PMRohan Maity
05/18/2019, 8:19 PMauto imports
during import of projects
- I directly imported project instead of opening project -> import module from existing source.
Couldn't figure out what made the above error though 😶
Thank you for earlier suggestion of type casting . It built project