Skip to content

Fix Python scripts in response to breaking tree-sitter API change #144

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

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/check_manifest_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def check_features(parser, queries, manifest, examples_root):
manifest = tla_utils.load_json(manifest_path)
examples_root = dirname(manifest_path)

TLAPLUS_LANGUAGE = Language(tree_sitter_tlaplus.language(), 'tlaplus')
TLAPLUS_LANGUAGE = Language(tree_sitter_tlaplus.language())
parser = Parser()
parser.set_language(TLAPLUS_LANGUAGE)
queries = build_queries(TLAPLUS_LANGUAGE)
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/generate_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def integrate_old_manifest_into_new(old_manifest, new_manifest):
ci_ignore_path = normpath(args.ci_ignore_path)
ignored_dirs = tla_utils.get_ignored_dirs(ci_ignore_path)

TLAPLUS_LANGUAGE = Language(tree_sitter_tlaplus.language(), 'tlaplus')
TLAPLUS_LANGUAGE = Language(tree_sitter_tlaplus.language())
parser = Parser()
parser.set_language(TLAPLUS_LANGUAGE)
queries = build_queries(TLAPLUS_LANGUAGE)
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jsonschema==4.20.0
mistletoe==1.2.1
tree-sitter
tree-sitter==0.22
tree-sitter-tlaplus

2 changes: 1 addition & 1 deletion .github/scripts/unicode_number_set_shim.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def write_module(examples_root, module_path, module_bytes):
skip_modules = args.skip
only_modules = args.only

TLAPLUS_LANGUAGE = Language(tree_sitter_tlaplus.language(), 'tlaplus')
TLAPLUS_LANGUAGE = Language(tree_sitter_tlaplus.language())
parser = Parser()
parser.set_language(TLAPLUS_LANGUAGE)
imports_query = build_imports_query(TLAPLUS_LANGUAGE)
Expand Down