-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instrumentCode error #811
Comments
@ice1000 Thanks for reporting! I've cloned your project, but I get a different stack trace – which is, in fact, identical to the one linked above:
This issue happens because of the missing
|
Wow, somehow kotlinx.html worked for me just fine.... |
Can you build the project after adding the repository? |
Yes, after adding yet repository, it built fine. |
I am very confused now... |
I did some tricks in the build script. It tries to read your local JB IDE installed by the toolbox, so depending on the IDE you installed, the builds may differ. |
Your IDEA is |
Could you please try to build with a local IDEA of version |
On the other hand, I'll try to use latest EAP snapshot to build it... |
Ok, I've reproduced it. FYI, I've adjusted your script to make it work with macOS: Index: build.gradle.kts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/build.gradle.kts b/build.gradle.kts
--- a/build.gradle.kts (revision 8d60c964a17823911e47eae065564bdc253aeb3e)
+++ b/build.gradle.kts (date 1634587100369)
@@ -60,10 +60,16 @@
when {
os.startsWith("Windows") -> "C:\\Users\\$user\\AppData\\Local\\JetBrains\\Toolbox\\apps"
os == "Linux" -> "/home/$user/.local/share/JetBrains/Toolbox/apps"
+ os == "Mac OS X" -> "/Users/$user/Library/ApplicationSupport/JetBrains/Toolbox/apps"
else -> null
}?.let { root ->
val intellijPath = sequenceOf("IDEA-C", "IDEA-U")
- .mapNotNull { fromToolbox(root, it) }.firstOrNull()
+ .mapNotNull { fromToolbox(root, it) }.firstOrNull()?.run {
+ when {
+ os == "Mac OS X" -> listFiles { _, name -> name?.endsWith(".app") ?: false }?.firstOrNull()?.resolve("Contents")
+ else -> this
+ }
+ }
intellijPath?.absolutePath?.let(localPath::set)
} So, I got:
And ended up with:
The reason for that is relatively trivial – you're using a local instance, and Gradle IntelliJ Plugin cannot assume this is a snapshot release so uses The safest choice would be using
|
Does that mean code instrumentation is impossible with a local instance? |
I didn't say that – if your local instance is EAP, If you're going to use the local EAP instance, specify the |
Can this be automatic? |
😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭 |
With the next release, the EAP Java compiler will be automatically resolved for local EAP IDE instances. |
Hero! |
I'd like to help with any further info requests. IDEA latest EAP via toolbox and gradle plugin 1.2.0
The text was updated successfully, but these errors were encountered: