-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Server crash when duplicate labels given to ctx.expand_location #14681
Comments
I wonder if this is the same crash as the one I'm seeing in this branch: sourcegraph/scip-ruby@49be984 (includes full error + build step) In my case, the keys are printed differently though:
I haven't tried minimizing that one, because I wasn't even sure where to start minimizing. 😬 |
@varungandhi-src I suspect that's related to the |
@illicitonion I've filed #16094 with a minimal reproducer, I think it's a different issue. |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale. |
This was fixed in 3db362c |
Description of the problem / feature request:
If a label appears twice in the
targets
list of a call toctx.expand_location
, the server crashes withjava.lang.IllegalArgumentException: Multiple entries with same key
.Either the duplicate should be ignored, or the duplication should be forbidden by the API and a friendly error given.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
This rule:
Instantiated thus:
What operating system are you running Bazel on?
macOS
What's the output of
bazel info release
?release 5.0.0
Any other information, logs, or outputs that you want to share?
Stack trace from failure:
The text was updated successfully, but these errors were encountered: