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 fails to build with 2020.1.2

See original GitHub issue

Trying to get a version I can load into a contemporary CLion:

$ bazel build //clwb:clwb_bazel_zip --define=ij_product=clion-2020.1
Starting local Bazel server and connecting to it...
INFO: Analyzed target //clwb:clwb_bazel_zip (58 packages loaded, 1769 targets configured).
INFO: Found 1 target...
INFO: Deleting stale sandbox base /home/mgodbolt/.cache/bazel/_bazel_mgodbolt/14cea374caf47f5cf30d8b8eda3abb84/sandbox
ERROR: /home/mgodbolt/dev/oss/intellij/cpp/BUILD:17:13: Building cpp/libcpp.jar (35 source files) and running annotation processors (AutoAnnotationProcessor, AutoOneOfProcessor, AutoValueProcessor) failed (Exit 1)
cpp/src/com/google/idea/blaze/cpp/BlazeResolveConfiguration.java:125: error: method getAllHeaderRoots in class OCImportGraph cannot be applied to given types;
    Collection<VirtualFile> roots = OCImportGraph.getAllHeaderRoots(project, headerFile);

That was as of beaa17e5

I just pulled to 71fa109f and now:

~/d/o/intellij (master|✔) 0.8s $ bazel build //clwb:clwb_bazel_zip --define=ij_product=clion-2020.1
INFO: Analyzed target //clwb:clwb_bazel_zip (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/mgodbolt/dev/oss/intellij/clwb/BUILD:42:13: Building clwb/libclwb_lib.jar (30 source files) failed (Exit 1)
clwb/src/com/google/idea/blaze/clwb/run/BlazeCppRunner.java:25: error: cannot inherit from final CLionRunner
public class BlazeCppRunner extends CLionRunner {
                                    ^
clwb/src/com/google/idea/blaze/clwb/BlazeCppModuleType.java:53: error: cannot find symbol
    return AllIcons.Modules.SourceFolder;
                           ^
  symbol:   variable SourceFolder
  location: class Modules
clwb/src/com/google/idea/blaze/clwb/ToolchainUtils.java:28: error: cannot find symbol
      toolchain.setName(Toolchain.DEFAULT);
                                 ^
  symbol:   variable DEFAULT
  location: class Toolchain
clwb/src/com/google/idea/blaze/clwb/run/BlazeCidrLauncher.java:324: error: reference to CidrConsoleBuilder is ambiguous
    return new CidrConsoleBuilder(
           ^
  both constructor CidrConsoleBuilder(Project,CidrToolEnvironment,File) in CidrConsoleBuilder and constructor CidrConsoleBuilder(Project,CidrToolEnvironment,Path) in CidrConsoleBuilder match
clwb/src/com/google/idea/blaze/clwb/run/BlazeCidrLauncher.java:347: error: reference to CidrConsoleBuilder is ambiguous
      super(project, /* CidrToolEnvironment */ null, /* baseDir */ null);
      ^
  both constructor CidrConsoleBuilder(Project,CidrToolEnvironment,File) in CidrConsoleBuilder and constructor CidrConsoleBuilder(Project,CidrToolEnvironment,Path) in CidrConsoleBuilder match
Target //clwb:clwb_bazel_zip failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.905s, Critical Path: 2.62s
INFO: 2 processes: 1 linux-sandbox, 1 worker.
FAILED: Build did NOT complete successfully

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
kayasozecommented, Aug 4, 2020

Fixed, although breakpoints are still broken.

0reactions
alice-kscommented, Feb 3, 2021

Plugin versions 2020.09.16.0.6+ are compatible with CLion 2020.1. Hence, I’m closing this issue now. Please refer to other existing tracking issues if you’re interested in support for newer CLion versions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CLion 2020.1.2 Bug-fix Update - The JetBrains Blog
The second bug-fix update, CLion 2020.1.2 (build 201.7846.88), is now available for download. Get it from our website, via the Toolbox App, ...
Read more >
CLion 2020.1.2 (201.7846.88 build) | Knowledge Base
No subsystem Bug CPP‑20063 Code: Completion Bug CPP‑19994 Bug CPP‑20281 Bug CPP‑20021
Read more >
Upgrading from 2020.1 to 2020.2 is saying my plugin is ...
Hi! The problem is that IDE considers 1.7-201 greater than 1.7.2-202. You can use com.intellij.ide.plugins.VersionCompareTest to ...
Read more >
Start Failed, Internal error: recovering IDE to the working state ...
There are multiple possible causes for this issue: broken or incompatible plug-in, corrupted IDE installation files, failed patch update, broken caches or ...
Read more >
2020.1 : The CLion Blog | The JetBrains Blog
The second bug-fix update, CLion 2020.1.2 (build 201.7846.88), ... CLion 2020.1 EAP: IAR Toolchain, PlatformIO Plugin, and Updates to Change Signature ...
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