bazelbuild / intellij

IntelliJ plugin for Bazel projects
https://ij.bazel.build/
Apache License 2.0
761 stars 302 forks source link

"Compiled binary cannot be executed" when trying to debug Go code #3221

Closed ronisec closed 1 year ago

ronisec commented 2 years ago

Running:

  1. GoLand 2021.2
  2. Bazel Plugin 2021.11.09.0.2-api-version-212

When trying to debug a Go unit test I am getting the following output:

Compilation finished with exit code 0

Compiled binary cannot be executed

See: image

ronisec commented 2 years ago

Solved, this was caused due to the following config in my .bazelrc:

build --symlink_prefix=/

Removed that config and it is working again. It would be nice if the plugin would be able to handle this case or print out a more informative debug message.

sgowroji commented 1 year ago

Thanks for sharing your resolution and Glad to see you resolve. We are closing this issue now. Please feel free to reach us if you have any further queries.