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

DEBUG logging is enabled on parsing #399

Open
ayroblu opened this issue May 11, 2024 · 0 comments
Open

DEBUG logging is enabled on parsing #399

ayroblu opened this issue May 11, 2024 · 0 comments

Comments

@ayroblu
Copy link

ayroblu commented May 11, 2024

Commit of tree-sitter-scala you tested this on

v0.21.0

A code sample showing the error

I'm using tree sitter with rust and I noticed that the DEBUG logging is enabled

use tree_sitter::Parser;
use tree_sitter_scala;
use tree_sitter_typescript;

fn main() {
    let mut parser = Parser::new();
    parser
        .set_language(&tree_sitter_scala::language())
        .expect("Error loading Rust grammar");
    let source_code = "val a = 1L";
    let tree = parser.parse(source_code, None).unwrap();
    let root_node = tree.root_node();
    println!("{}", root_node.to_sexp());
}

Show the error node

    before Stack[top = 0; ]
    after Stack[top = 0; ]
    before Stack[top = 0; ]
    after Stack[top = 0; ]
    before Stack[top = 0; ]
    after Stack[top = 0; ]
    before Stack[top = 0; ]
    after Stack[top = 0; ]
(compilation_unit (val_definition pattern: (identifier) value: (integer_literal)))

What do you expect the tree to look like

(compilation_unit (val_definition pattern: (identifier) value: (integer_literal)))

Where are you experiencing this error?

Rust project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant