Skip to content
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

combobluate-avy-jump fails with Node type error. #89

Open
heigum opened this issue Mar 6, 2024 · 1 comment
Open

combobluate-avy-jump fails with Node type error. #89

heigum opened this issue Mar 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@heigum
Copy link

heigum commented Mar 6, 2024

Thank you for a very nice package.

If I in any python buffer try the combobluate-avy-jump function I get the error

Node type error at: 3
[(_compound_statement) (_simple_statement) (aliased_import) (argument_list) (as_pattern) (as_pattern_target) (assert_statement) (assignment) (attribute) (augmented_assignment) (await) (binary_operator) (block) (boolean_operator) (break_statement) (call) (case_clause) (case_pattern) (chevron) (class_definition) (class_pattern) (comment) (comparison_operator) (complex_pattern) (concatenated_string) (conditional_expression) (constrained_type) (continue_statement) (decorated_definition) (decorator) (default_parameter) (delete_statement) (dict_pattern) (dictionary) (dictionary_comprehension) (dictionary_splat) (dictionary_splat_pattern) (dotted_name) (elif_clause) (ellipsis) (else_clause) (escape_interpolation) (escape_sequence) (except_clause) (except_group_clause) (exec_statement) (expression) (expression_list) (expression_statement) (false) (finally_clause) (float) (for_in_clause) (for_statement) (format_expression) (format_specifier) (function_definition) (future_import_statement) (generator_expression) (generic_type) (global_statement) (identifier) (if_clause) (if_statement) (import_from_statement) (import_prefix) (import_statement) (integer) (interpolation) (keyword_argument) (keyword_pattern) (keyword_separator) (lambda) (lambda_parameters) (line_continuation) (list) (list_comprehension) (list_pattern) (list_splat) (list_splat_pattern) (match_statement) (member_type) (module) (named_expression) (none) (nonlocal_statement) (not_operator) (pair) (parameter) (parameters) (parenthesized_expression) (parenthesized_list_splat) (pass_statement) (pattern) (pattern_list) (positional_separator) (primary_expression) (print_statement) (raise_statement) (relative_import) (return_statement) (set) (set_comprehension) (slice) (splat_pattern) (splat_type) (string) (string_content) (string_end) (string_start) (subscript) (true) (try_statement) (tuple) (tuple_pattern) (type) (type_alias_statement) (type_conversion) (type_parameter) (typed_default_parameter) (typed_parameter) (unary_operator) (union_pattern) (union_type) (while_statement) (wildcard_import) (with_clause) (with_item) (with_statement) (yield)] @node

If I remove the (_compound_statement) (_simple_statement) part of the query and use the treesit-query-validate function the query validates fine.

The jump feature works very well with yaml.

I'm on a mac with Sonoma 14.2 and have tried this with emacs-29.2 and emacs-30.0.50 and used the setup in you readme.

I'm pretty sure I have the 0.20.4 version of the tree-sitter-python library, but don't know how to validate. I have tested the query on the same python code in the Tree-sitter Playground, there it seems to work.

@mickeynp
Copy link
Owner

Thanks for catching that. The avy code is old and should be rewritten to be more useful and dynamic. I've made a note of the issue, which is legitimate. Thanks for reporting it!

@mickeynp mickeynp added the bug Something isn't working label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants