Hi Paul,
I tried again to get your code running for me.

If I replace tree-sitter-context.pc by tree-sitter.json (attached), then the tree-sitter CLI recognizes the parser.

The npm module (to be called as "npx tree-sitter") doesn’t care about the .pc file, but the cli package binary seems to expect a directory by that name.

Now I can call the parser with a .tex file, and the process hogs 99% CPU and all RAM (>20GB) quickly. I needed several attempts to even kill it. That doesn’t look right.

Hraban

Attachment: tree-sitter.json
Description: application/json

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to