Unable to install agent with IntelliJ bundled SDK on MacOS
See original GitHub issueWhen using Bytebuddy within IntelliJ and bundled Java 11 on MacOS it caused the following exception:
Caused by: java.io.IOException: Cannot run program ""/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/bin/java"": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at net.bytebuddy.agent.ByteBuddyAgent.installExternal(ByteBuddyAgent.java:669)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:601)
... 102 more
The culprit seems to be ByteBuddyAgent.java#L664
Additional Info:
IntelliJ Version 2019.3.1 (IU-193.5662.53)
bytebuddy 1.9.16
Issue Analytics
- State:
- Created 4 years ago
- Comments:31 (14 by maintainers)
Top Results From Across the Web
Install plugins | IntelliJ IDEA Documentation - JetBrains
Use the Installed tab to browse bundled and installed plugins, enable, ... You can disable bundled plugins, but they cannot be removed.
Read more >IntelliJ IDEA - Connect and work with JetBrains Gateway
Ensure you have downloaded and installed JetBrains Gateway or an IDE with this bundled plugin on your local machine. Ensure you have an...
Read more >SDKs | IntelliJ IDEA Documentation - JetBrains
A Software Development Kit, or an SDK, is a collection of tools that you need to develop an application for a specific software...
Read more >Install and Start TeamCity Agents - JetBrains
A TeamCity build agent is a piece of software which listens for the commands from the TeamCity server and starts the actual build...
Read more >mac os 12 beta6 Unable to start IDEA : JBR-3715
Here is my one-liner to patch Toolbox installed applications: find ~/Library/Application\ Support/JetBrains -name "*.vmoptions" | grep -v Contents | while ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am wondering - could we fix this by changing the
quote
function to only wrap quotes if the string it wraps does not contain quotes already? I guess this would add some implicit behaviour and may lead to side effects elsewhere… or we introduce a new method calledquoteIfNotQuoted
- you get the idea.Alternatively, maybe replacing any whitespace characters with a path encoded equivalent might do the trick as well, have not tried it yet.
Weird. Currently I am experiencing the same issue as #732.
Environment: macOS 10.14.6
$JAVA_HOME = /Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home
)$JAVA_HOME
).Minimal reproducible example:
Without the
quote()
, it runs fine.