Clion plugin doesn't work with custom CROSSTOOL
See original GitHub issueI configured a custom CROSSTOOL for clang on ubuntu 18.04. I was able to build my workspace by setting --crosstool_top=//bazel/tools/cpp:toolchain --cpu=k8 --compiler=clang
and I added
build --crosstool_top=//bazel/tools/cpp:toolchain --cpu=k8 --compiler=clang
to .bazelrc, which works well in command line. But CLion fails to sync build file.
Got the following error “intellij_aspect/intellij_info_impl.bzl”, line 365, in collect_c_toolchain_info
cc_common.configure_features(cc_toolchain = cpp_toolchain, requ..., ...))
expected value of type ‘CcToolchainInfo’ for parameter ‘cc_toolchain’, in method call configure_features(ToolchainInfo cc_toolchain, list requested_features, list unsupported_features) of ‘cc_common’.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:6
Top Results From Across the Web
Make CLion available as IntelliJ plugin : CPP-4141
This is a major issue for me. I develop a Python package which contains a large C/C++ extension. I cannot use the remote...
Read more >CLion custom compiler support plugin/wrapper
I'm trying to implement support of several embedded compilers (e.g. Microchip's xc8) to be used with CLion seamlessly. And rough...
Read more >Compilers | CLion Documentation - JetBrains
In CLion, you can use GCC-based compilers, Clang, Clang-cl, Visual Studio C++ compiler, as well as IAR compiler and custom-defined compiler.
Read more >CLion Swift plugin is no compatible with latest swift version
For 3.1.1 only the release build is supported. Alternatively, you can try 4.0 snapshots. They might be unstable, but Swift plugin will not ......
Read more >CLion 2019.1 EAP: CLion for Embedded Development, Part III
The OpenOCD + STM32CubeMX plugin is now bundled, so you don't have to ... If you already have an embedded project, just open...
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 just stumbled across this issue with bazel 0.29 and the latest version of the clion bazel plugin using a custom c++ toolchain.
Thanks @kevin-nuro for pointing me in the right direction for a workaround.
A workaround is to define
tags = ["no-ide"]
on targets created with thecc_toolchain
rule. Using this workaround the plugin picks up the CCToolchainInfo from your definedcc_toolchain_suite
and everything works as expected.CLion bazel plugin 2018.12.03.0.2 CLion 2018.2.7 bazel 0.21.0