ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] tree-sitter-context
@ 2025-01-12 14:31 Henning Hraban Ramm
  0 siblings, 0 replies; only message in thread
From: Henning Hraban Ramm @ 2025-01-12 14:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Paul Mazaitis

[-- Attachment #1: Type: text/plain, Size: 528 bytes --]

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 #2: tree-sitter.json --]
[-- Type: application/json, Size: 817 bytes --]

[-- Attachment #3: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-12 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-12 14:31 [NTG-context] tree-sitter-context Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).