-
-
Notifications
You must be signed in to change notification settings - Fork 570
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
external/gazelle~~go_deps~com_github_dougthor42_go_tree_sitter/python/scanner.c:1:10: fatal error: '../array.h' file not found
with gazelle 0.38+
#2573
Comments
I think this may be duplicate of #1913. Does the error go away when using https://github.com/bazel-contrib/musl-toolchain or similar? |
here is a repro branch https://github.com/remiphilippe/bazel-rules_python_array_c/tree/not-working I added musl to it (already had it on my repo) same issue. |
ok I think I just found, the issue is not linked to gazelle version, but the default to my MODULES.bazel it works (example branch https://github.com/remiphilippe/bazel-rules_python_array_c/tree/working) |
We also see a similar issue. The change of
|
FWIW I patched this when using tree-sitter: https://github.com/aspect-build/aspect-cli/blob/main/third_party/github.com/smacker/go-tree-sitter/cc_library.patch Is this at all related to the reasons for using a fork of go-tree-sitter? |
🐞 bug report
Affected Rule
The issue is caused by the rule: rules_python_gazelle_plugin (version 1.1.0) when running with gazelle 0.38+Is this a regression?
Maybe, the issue starts with gazelle 0.38Description
A clear and concise description of the problem...When running gazelle
bazel run //python:gazelle update
go_tree_sitter fails to buildThis is using the config from https://github.com/bazelbuild/rules_python/tree/main/examples/bzlmod_build_file_generation
When downgrading gazelle to 0.37 it runs (at the expense of features in go, namely the
build_file_generation = "clean"
which was introduced in 0.38)The issue seems linked to smacker/go-tree-sitter#175
🔬 Minimal Reproduction
https://github.com/bazelbuild/rules_python/tree/main/examples/bzlmod_build_file_generation with gazelle 0.38+
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: