question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clion plugin doesn't work with custom CROSSTOOL

See original GitHub issue

I 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:open
  • Created 5 years ago
  • Reactions:6
  • Comments:6

github_iconTop GitHub Comments

1reaction
speedskatercommented, Sep 13, 2019

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 the cc_toolchain rule. Using this workaround the plugin picks up the CCToolchainInfo from your defined cc_toolchain_suite and everything works as expected.

1reaction
ghostcommented, Jan 10, 2019

CLion bazel plugin 2018.12.03.0.2 CLion 2018.2.7 bazel 0.21.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found