You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd love to be able to use this plugin to debug Gradle plugins and processes spawned by Gradle.
Unfortunately, after running source ~/.attachme/conf.sh all Gradle tasks fail with the output:
* What went wrong:
Unable to determine version for JDK located at /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home. Reason: Unexpected command output:
Listening for transport dt_socket at address: 53880
/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home
15.0.2
AdoptOpenJDK
x86_64
OpenJDK 64-Bit Server VM
15.0.2+7
OpenJDK Runtime Environment
15.0.2+7
The issue is that Gradle is probing the JVM to determine its version and isn't expecting the "Listening for transport dt_socket at address: 53880" line in the output.
The workaround is to edit ~/.attachme/conf.sh to switch jdwp to 'quiet' mode:
...to avoid additional output in processes picking up the `JAVA_TOOL_OPTIONS`.
Without quiet mode the process will output something like line below as its first line to stdout, which can cause problems in some situations, i.e. where the output is being consumed by another process.
```
Listening for transport dt_socket at address: 53880
```
fixes: JetBrains#11
I'd love to be able to use this plugin to debug Gradle plugins and processes spawned by Gradle.
Unfortunately, after running
source ~/.attachme/conf.sh
all Gradle tasks fail with the output:The issue is that Gradle is probing the JVM to determine its version and isn't expecting the "Listening for transport dt_socket at address: 53880" line in the output.
The workaround is to edit
~/.attachme/conf.sh
to switch jdwp to 'quiet' mode:Would be nice if the workaround was not needed.
The text was updated successfully, but these errors were encountered: