Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLion Bazel 1.2.1 incompatiability macOS #1545

Closed
wesleyw72 opened this issue Jan 7, 2020 · 2 comments
Closed

CLion Bazel 1.2.1 incompatiability macOS #1545

wesleyw72 opened this issue Jan 7, 2020 · 2 comments
Labels
lang: c++ C++ rules integration os: macos macOS support product: CLion CLion plugin topic: sync Issues related to the sync operation type: bug

Comments

@wesleyw72
Copy link

When using CLion with the default toolchain on macOS (10.14.6). The plugin fails when invoking wrapped_clang. Tested on CLion 2019.2.5, plugin version 2019.12.02.0.0. Bazel 0.29.1 works perfectly fine on this version of CLion and the plugin. Although only a warning, it does result in CLion not being able to find symbols and basic IDE functionality ceases to function. This specifically only happens when Syncing the project, Compile Project works fine.

Warning:Unable to check compiler version for "/private/var/tmp/_bazel_wesleywilliams/67e49888db524d169925325d83f7e7d6/execroot/<my_repo>/external/local_config_cc/cc_wrapper.sh".
stderr: "Error: DEVELOPER_DIR not set.
/private/var/tmp/_bazel_wesleywilliams/67e49888db524d169925325d83f7e7d6/execroot/<my_repo>/external/local_config_cc/cc_wrapper.sh: line 56: 21198 Abort trap: 6           "$(/usr/bin/dirname "$0")"/wrapped_clang "$@"
"
stdout: ""
Check if running the compiler with --version works on the cmdline.
@cpsauer
Copy link
Contributor

cpsauer commented Oct 20, 2020

Hey @wesleyw72! I was able to work around this issue by adding the following to my .zshrc

export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer

That shifted the error over to SDKROOT, which I set to the latest I'd installed in the same way.

Agree that this should work out of the box, but hopefully this helps in the meantime :)

@mai93 mai93 added product: CLion CLion plugin os: macos macOS support topic: sync Issues related to the sync operation type: bug lang: c++ C++ rules integration labels Feb 9, 2021
@sgowroji
Copy link
Member

Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.

@sgowroji sgowroji closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang: c++ C++ rules integration os: macos macOS support product: CLion CLion plugin topic: sync Issues related to the sync operation type: bug
Projects
None yet
Development

No branches or pull requests

4 participants