Closed telekid closed 1 year ago
Same issue here - have a small PR which might help? Just trivially replacing spaces with escaped spaces.
Hmm... seems like bazel just treats escaped whitespace as regular whitespace and still splits the command into an invalid target.
At the moment I've got the following working for Goland, but it might work for IntelliJ as well:
Library/Application Support
(I use Library/symAppSupport) (use ln -s "My Folder" MySymlinkFolder)chmod 755
on the new symlink folder as well (or whatever your Application Support perms are)idea.plugins.path=/Users/YOU/Library/YOUR_SYMLINK_FOLDER/Jetbrains/YOUR_INTELLIJ_FOLDER/plugins
Update this if that doesn't work for you, but my syncs are getting around the issue now.
The gist is that this creates a symlink directory that doesn't have a space in it to get around the "woops, that directory has a space" issue that bazel doesn't handle well.
Hello @telekid, Could you please reply if you are still looking support on the above issue. Thanks!
Hi there! Thank you for raising this issue. We're doing a clean up of old issues and will be closing this one since it seems to have stalled. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.
When I click the bazel Sync button in the top right of IntelliJ, it constructs the following Bazel build command:
That command fails with the following error:
Note the line
no such target '//:Support/JetBrains/IntelliJIdea2021.3/plugins/ijwb/aspect'
.Support/...
should be/Users/jakezerrer/Library/Application Support/...
. The space inApplication Support
is causing the target string to be either parsed or constructed incorrectly.Not sure if this is a construction error (which would mean a problem in the intellij plugin) or an argument parsing error (which would be a problem in bazel itself.)
If I simlink
ApplicationSupport
toApplication Support
and rerun the command manually without the space, the build succeeds.