-
Notifications
You must be signed in to change notification settings - Fork 338
Closed
Labels
awaiting-maintainerAwaiting review from Bazel team on issuesAwaiting review from Bazel team on issuesproduct: CLionCLion pluginCLion plugintype: bug
Description
Description of the bug:
Using the bazel plugin for CLion, I'm unable to debug a target that I am able to run successfully via IDE. I am faced with the following error messages:
Building debug binary
Command: bazel build --tool_tag=ijwb:CLion --compilation_mode=dbg --strip=never --dynamic_mode=off --fission=yes --copt=-g2 --copt=-O0 --color=yes --progress_in_terminal_title=no --build_event_binary_file=/tmp/intellij-bep-ba3d97a3-1a85-4b99-9cf0-551ce898190d --nobuild_event_binary_file_path_conversion --build_event_publish_all_actions -- //c:sbp-cpp-test
Computing main repo mapping:
Loading:
Loading: 0 packages loaded
WARNING: Build options --compilation_mode, --copt, --dynamic_mode, and 2 more have changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed).
Analyzing: target //c:sbp-cpp-test (0 packages loaded, 0 targets configured)
Analyzing: target //c:sbp-cpp-test (0 packages loaded, 0 targets configured)
ERROR: /home/rodrigor/Workspace/swift-nav/libsbp/c/BUILD.bazel:84:14: in cc_test rule //c:sbp-cpp-test:
Traceback (most recent call last):
File "/virtual_builtins_bzl/common/cc/cc_test.bzl", line 68, column 36, in _impl
File "/virtual_builtins_bzl/common/cc/cc_test.bzl", line 33, column 44, in _legacy_cc_test_impl
File "/virtual_builtins_bzl/common/cc/cc_binary.bzl", line 660, column 34, in cc_binary_impl
File "/virtual_builtins_bzl/common/cc/cc_debug_helper.bzl", line 73, column 50, in create_debug_packager_actions
File "/virtual_builtins_bzl/common/cc/cc_debug_helper.bzl", line 154, column 32, in _create_intermediate_dwp_packagers
Error in run: in call to run(), parameter 'executable' got value of type 'NoneType', want 'File, string, or FilesToRunProvider'
ERROR: /home/rodrigor/Workspace/swift-nav/libsbp/c/BUILD.bazel:84:14: Analysis of target '//c:sbp-cpp-test' failed
ERROR: Analysis of target '//c:sbp-cpp-test' failed; build aborted
INFO: Elapsed time: 0.364s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
FAILED:
INFO: Build Event Protocol files produced successfully.
Which category does this issue belong to?
CLion
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
The following steps were run in the https://github.com/swift-nav/libsbp opensource repository.
- clone repository and open up project with "import bazel project", generate the BUILD file with
c/BUILD.bazel. - create a "bazel command" Run/Debug configuration with the target expression
//c:sbp-cpp-test. - run the target ... it successfully launches executable
- debug the target ... fails with the reported error message
Which Intellij IDE are you using? Please provide the specific version.
CLion 2025.3 (CL-253.28294.335, built on December 6, 2025)
What programming languages and tools are you using? Please provide specific versions.
C++ with Bazel
What Bazel plugin version are you using?
Bazel 8.3.1
Have you found anything relevant by searching the web?
No, seems to be a new problem.
Any other information, logs, or outputs that you want to share?
Running this on a Fedora 42 (x86_64) machine.
Metadata
Metadata
Labels
awaiting-maintainerAwaiting review from Bazel team on issuesAwaiting review from Bazel team on issuesproduct: CLionCLion pluginCLion plugintype: bug
Type
Projects
Status
Done