Open raulchedrese opened 1 week ago
Any ideas?
No, not really. I've not used this grammar directly in that way. I've added it to Zed, but in that case I believe it's compiled to WASM for consumption, so it's not directly built and linked in Rust. Neovim uses this grammar, but I think they're compiling and linking via C. My best effort at the moment is not very satisfying: are other tree-sitter libs building OK in your project and this is the only one failing, or is this the only one that you're using? Maybe also confirm that your include/link path is set correctly to build (and link) the scanner.c
file, which is where those functions are defined. (eg perhaps your build is only trying to link the parser, but not also the scanner)
Actually, there is some commented-out scanner related code in the build.rs
file. That file was autogenerated (in #32), and I didn't question what was in it. Perhaps we have some additional config to do because we're using a scanner as well as a parser? If so, I don't intend to fix that at this time, but I would welcome a PR that makes that work.
I can't seem to get this parser to work with Rust Tree-sitter or Swift Tree-sitter. When attempting to compile the project after adding
tree-sitter-phpdoc
as a dependency I run into this error.Any ideas?