-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Better error message for XCode locator problems #4615
Comments
The problem is that xcode-locator-bin has no meaning outside of bazel. I posit that your "strawperson" proposal does not help understand the issue, nor provide any actionable information to the user at all. I'm open to other proposals -- this is easy enough to change, I just don't have any good ideas what information we can provide the user, given that we don't even really have any idea how to reliably reproduce this issue, nor what process may be establishing an arbitrary lock on xcode-locator-bin right after its creation. |
I find that this problem happens every single time after installing a macOS update and when there's a xcode related update outstanding. The issue goes away after installing the update, reboot,
The issue happens to me every two weeks or so :. |
One extra case to handle: when we get |
We also must ensure that all |
Ping for visibility, with priority (I will likely take this on myself) Received some recent feedback that this error message ("run "Manually run xcode and accept any terms and conditions" |
There are so many things that can go wrong in Xcode selection, and given the little visibility we have when running I think we should have an FAQ entry or something with detailed information on this, with multiple troubleshooting steps, and then make the error message point at that page. (I even think we do have some documentation on that topic already, written recently by @susinmotion.) |
#4615 RELNOTES: None. PiperOrigin-RevId: 334512179
bazelbuild#4615 RELNOTES: None. PiperOrigin-RevId: 334512179
Description of the problem / feature request:
Various situations on macOS can cause problems when Bazel attempts to interoperate with XCode. See: #4603, and similar behavior if the XCode license has not been accepted. The user gets an error that's not often helpful:
Xcode version must be specified to use an Apple CROSSTOOL
. Please replace this with a message that will help users take action. (Strawperson:Unable to run xcode-locator-bin -- another process may be interfering with execution
)Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
This is actually really hard to reproduce, but some users have reported that it happens on macOS High Sierra, if both Santa and VSCode are running when Bazel is called.
Versions
Experienced on Bazel 0.10 on macOS High Sierra. (Other versions possibly affected)
The text was updated successfully, but these errors were encountered: