-
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
Bazel crashes with internal error when trying to concat dictionary with select on rules getting string_list_dict #23065
Labels
good first issue
P2
We'll consider working on this in future. (Assignee optional)
team-Starlark-Interpreter
Issues involving the Starlark interpreter used by Bazel
type: bug
Comments
github-actions
bot
added
team-Configurability
platforms, toolchains, cquery, select(), config transitions
team-Starlark-Interpreter
Issues involving the Starlark interpreter used by Bazel
labels
Jul 22, 2024
lior10r
added a commit
to lior10r/bazel
that referenced
this issue
Aug 26, 2024
type. This is because Dict checks that all the values put in it are Starlark valid values. But string_list_dict value is of type List<String>, when Java's List isn't a Starlark value. Fixes bazelbuild#23065
tetromino
added
P2
We'll consider working on this in future. (Assignee optional)
good first issue
and removed
team-Configurability
platforms, toolchains, cquery, select(), config transitions
untriaged
labels
Aug 28, 2024
lior10r
added a commit
to lior10r/bazel
that referenced
this issue
Aug 30, 2024
type. This is because Dict checks that all the values put in it are Starlark valid values. But string_list_dict value is of type List<String>, when Java's List isn't a Starlark value. Fixes bazelbuild#23065
lior10r
added a commit
to lior10r/bazel
that referenced
this issue
Sep 8, 2024
Dict type. This is because Dict checks that all the values put in it are Starlark valid values. But string_list_dict value is of type List<String>, when Java's List isn't a Starlark value. Also added some tests. Fixes bazelbuild#23065
bazel-io
pushed a commit
to bazel-io/bazel
that referenced
this issue
Sep 11, 2024
Convert values to Starlark values when concating string_list_dict type. This is because Dict checks that all the values put in it are Starlark valid values. But string_list_dict value is of type List<String>, when Java's List isn't a Starlark value. Fixes bazelbuild#23065 My first PR to bazel 🤩 Would love you to review the PR. Checked that the test didn't pass before the change and did after it. Closes bazelbuild#23424. PiperOrigin-RevId: 673463108 Change-Id: Ib2cdce7d94243f4e3bda23203a196fee4e766189
github-merge-queue bot
pushed a commit
that referenced
this issue
Sep 11, 2024
…dict type (#23603) Convert values to Starlark values when concating string_list_dict type. This is because Dict checks that all the values put in it are Starlark valid values. But string_list_dict value is of type List<String>, when Java's List isn't a Starlark value. Fixes #23065 My first PR to bazel 🤩 Would love you to review the PR. Checked that the test didn't pass before the change and did after it. Closes #23424. PiperOrigin-RevId: 673463108 Change-Id: Ib2cdce7d94243f4e3bda23203a196fee4e766189 Commit f1f8d58 --------- Co-authored-by: Lior Gorelik <[email protected]> Co-authored-by: Alexandre Rostovtsev <[email protected]>
A fix for this issue has been included in Bazel 7.4.0 RC1. Please test out the release candidate and report any issues as soon as possible. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
P2
We'll consider working on this in future. (Assignee optional)
team-Starlark-Interpreter
Issues involving the Starlark interpreter used by Bazel
type: bug
Description of the bug:
I wrote a custom rule which one of his attributes is of type string_list_dict.
I am concatenating dictionaries for simplicity, and some values I want to be dependent on a config, so I used a select and tried to concat the dictionaries with the select. When I try to do so it fails on an internal error:
This didn't reproduce when the type of the attribute was string_dict
Which category does this issue belong to?
Configurability, Starlark Interpreter
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
I made a simple rule to reproduce. In a bzl file called try.bzl:
and In the same directory in the BUILD file:
Which operating system are you running Bazel on?
Ubuntu 20.04
What is the output of
bazel info release
?release 7.0.2
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: