in call to configure_features(), parameter 'cc_toolchain' got value of type 'ToolchainInfo', want 'CcToolchainInfo'
Bazel plugin sync failed for this project: https://github.com/dozer47528/new-filter
I can build is from command line with bazel.
Clion version: 2019.3 Plugin version: v2020.04.13
Bazel Console Detail:
Syncing project: Partial Sync (partial)...
Updating VCS...
Running Bazel info...
Command: /usr/local/bin/bazel info --tool_tag=ijwb:CLion --curses=no --color=yes --progress_in_terminal_title=no --
Computing VCS working set...
Sync targets from Partial Sync:
//...:all
Building Bazel targets...
Command: /usr/local/bin/bazel build --tool_tag=ijwb:CLion --keep_going --build_event_binary_file=/var/folders/vc/612y8yl17mq1zj174kl1v3r40000gp/T/intellij-bep-1548dafd-60bd-4fca-9e12-cc4a112477e5 --nobuild_event_binary_file_path_conversion --curses=no --color=yes --progress_in_terminal_title=no --aspects=@intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect "--override_repository=intellij_aspect=/Users/dozer/Library/Application Support/CLion2019.3/clwb/aspect" --output_groups=intellij-info-cpp,intellij-info-generic,intellij-resolve-cpp -- //...:all
Loading:
Loading: 0 packages loaded
Analyzing: 9 targets (0 packages loaded, 0 targets configured)
Analyzing: 9 targets (7 packages loaded, 162 targets configured)
ERROR: /Users/dozer/Projects/github/new-filter/toolchain/BUILD:29:13: in @intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect aspect on cc_toolchain rule //toolchain:wasm_toolchain:
Traceback (most recent call last):
File "/Users/dozer/Projects/github/new-filter/toolchain/BUILD", line 29
@intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect(...)
File "/private/var/tmp/_bazel_dozer/1e05734fcff914bf2c5b19860ac81bf0/external/intellij_aspect/intellij_info_bundled.bzl", line 54, in _aspect_impl
intellij_info_aspect_impl(<3 more arguments>)
File "/private/var/tmp/_bazel_dozer/1e05734fcff914bf2c5b19860ac81bf0/external/intellij_aspect/intellij_info_impl.bzl", line 1032, in intellij_info_aspect_impl
collect_c_toolchain_info(target, <5 more arguments>)
File "/private/var/tmp/_bazel_dozer/1e05734fcff914bf2c5b19860ac81bf0/external/intellij_aspect/intellij_info_impl.bzl", line 480, in collect_c_toolchain_info
cc_common.configure_features(<4 more arguments>)
in call to configure_features(), parameter 'cc_toolchain' got value of type 'ToolchainInfo', want 'CcToolchainInfo'
INFO: Analyzed 9 targets (8 packages loaded, 226 targets configured).
INFO: Found 9 targets...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
ERROR: command succeeded, but not all targets were analyzed
INFO: Elapsed time: 2.317s, Critical Path: 0.01s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
INFO: Build Event Protocol files produced successfully.
FAILED: Build did NOT complete successfully
build invocation result: build_error
Sync was successful, but there were Bazel build errors. The project may not be fully updated or resolve until fixed. If the errors are from your working set, please uncheck 'Bazel > Sync > Expand Sync to Working Set' and try again.
Parsing build outputs...
Total rules: 11, new/changed: 0, removed: 0
Reading IDE info result...
Reading IDE info result...
Updating target map
Loaded 0 aspect files, total size 0kB
Prefetching genfiles...
Target map size: 6
Prefetching output artifacts...
Prefetching files...
Refreshing files
Computing directory structure...
Initializing project SDKs...
Committing project structure...
Workspace has 0 libraries
Workspace has 2 modules
Updating in-memory state...
1 unique C configurations, 1 C targets
Sync finished
Timing summary:
BlazeInvocation: 2.4s, Prefetching: 0ms, Other: 591ms
Having the same issue, any workaround?
I encounter the same error with this project: https://github.com/deepmind/reverb
CLion: 2020.1.3 Platform: Linux 5.4.0-52-generic Bazel plugin: 2020.10.06.0.1 Bazel: 3.7.0
In .bazelrc, try adding build --incompatible_enable_cc_toolchain_resolution and see if it works.
Thank you for contributing to the IntelliJ repository! This issue has been marked as stale since it has not had any activity in the last 6 months. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-maintainer". Please reach out to the triage team (@bazelbuild/triage) if you think this issue is still relevant or you are interested in getting the issue resolved.
Seems like the repo mentioned in the original message is no longer accessible. @dozer47528 does the problem still exist?