ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Paul Mazaitis <paul@mazaitis.org>
Subject: [NTG-context] tree-sitter-context
Date: Sun, 12 Jan 2025 15:31:19 +0100	[thread overview]
Message-ID: <45857191-01ff-41d2-b997-46f930f400ba@fiee.net> (raw)

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

                 reply	other threads:[~2025-01-12 14:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45857191-01ff-41d2-b997-46f930f400ba@fiee.net \
    --to=texml@fiee.net \
    --cc=ntg-context@ntg.nl \
    --cc=paul@mazaitis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).