You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Open
remiphilippe opened this issue
Jan 22, 2025
· 4 comments
ok I think I just found, the issue is not linked to gazelle version, but the default build_file_generation we use. If I add go_deps.gazelle_override( path = "github.com/dougthor42/go-tree-sitter", build_file_generation = "auto", )
🐞 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: