Steven Kalt
d35efd4608
feat(cli): support building WASM via podman
...
Previously, `tree-sitter build-wasm` had the ability to build WASM
by using docker to pull in an image with a complete emscripten toolchain.
This commit adds the ability to use podman to do the same thing.
Using podman requires two notable changes:
1. Using the fully-qualified image name. Docker defaults to prepending
`docker.io` to the image name, but podman does not.
2. Podman will mount the `/src/` volume as belonging to root unless
`--userns=keep-id` is passed. I think podman's different
volume-ownership is related to podman's daemonless execution and
`--uidmap` functionality, but I'm not 100% sure.
To test, I ran
```sh
script/fetch-fixtures
script/generate-fixtures
script/generate-fixtures-wasm # <- the important one!
```
which worked as well as the docker version.
2024-01-29 00:50:32 -05:00
Amaan Qureshi
78c297e6ed
Merge pull request #2881 from amaanq/doc-links
...
docs: add various binding and grammar links
2024-01-25 21:51:23 -05:00
Amaan Qureshi
571fc02bd4
docs: add various binding and grammar links
...
Co-authored-by: Ramkumar Ramachandra <r@artagnon.com>
Co-authored-by: Yutaro Sakamoto <yutaro-sakamoto@yutaro-sakamoto.com>
Co-authored-by: Philipp Mildenberger <philipp@mildenberger.me>
Co-authored-by: Sepehr Laal <5657848+3p3r@users.noreply.github.com>
Co-authored-by: Lachance, Alexandre <alexandrelachance@me.com>
Co-authored-by: Derek Stride <derek@stride.host>
Co-authored-by: John Didion <github@didion.net>
Co-authored-by: Felix Rath <felixm.rath@gmail.com>
Co-authored-by: Javier Suarez <jsuarez@salesforce.com>
Co-authored-by: Fabian Wermelinger <fab4100@posteo.net>
Co-authored-by: Colin Kennedy <ckanimate@gmail.com>
Co-authored-by: Alfred Fuller <afuller@buf.build>
Co-authored-by: Boris Verkhovskiy <boris.verk@gmail.com>
Co-authored-by: Stanislav Romanov <kaermorchen@gmail.com>
Co-authored-by: Hamza Hamud <53880692+hhamud@users.noreply.github.com>
Co-authored-by: Tomas Sandven <tomas@sandven.email>
Co-authored-by: Vladimir Kazanov <vkazanov@inbox.ru>
Co-authored-by: citronneur <citronneur@gmail.com>
Co-authored-by: DennySun2100 <138833544+DennySun2100@users.noreply.github.com>
Co-authored-by: Z572 <37945516+Z572@users.noreply.github.com>
Co-authored-by: alaviss <leorize+oss@disroot.org>
2024-01-25 21:41:07 -05:00
Amaan Qureshi
65c2f58018
Merge pull request #2708 from dist1ll/master
...
docs: Add missing closing parenthesis
2024-01-25 20:47:49 -05:00
Adrian Alic
6fd3582ae3
Add missing closing parenthesis
2024-01-25 20:45:46 -05:00
Amaan Qureshi
92b743cf51
Merge pull request #2705 from mroch/patch-1
...
fix: documentation typos
2024-01-25 20:34:43 -05:00
Marshall Roch
6eacca9606
fix documentation typos
2024-01-25 20:33:15 -05:00
Amaan Qureshi
449f86dafc
Merge pull request #2879 from calebdw/fix-crlf_cicd
...
fix: specify eof should be lf for windows cicd
2024-01-25 20:24:46 -05:00
Caleb White
ae7adddc4d
fix: specify eof should be lf for windows cicd
2024-01-25 20:12:36 -05:00
github-actions[bot]
41f9f3fdd1
Merge pull request #2880 from tree-sitter/release/v0.20.9
...
0.20.9
2024-01-25 20:44:40 +00:00
Amaan Qureshi
98be227227
0.20.9
2024-01-25 15:05:17 -05:00
Amaan Qureshi
386a1c598a
Merge pull request #2878 from amaanq/test-corpus-fix
...
fix: account for grammars in subdirectories, add typescript to test corpus
2024-01-25 14:24:48 -05:00
Amaan Qureshi
b26e0a8ec0
fix: account for grammars in subdirectories, add typescript to test corpus
2024-01-25 14:02:12 -05:00
Amaan Qureshi
ef5621c0e2
Merge pull request #2795 from savetheclocktower/fix-quantified-predicates
...
fix: Handle quantified predicates on `web-tree-sitter` properly
2024-01-25 13:31:40 -05:00
Max Brunsfeld
660481dbf7
Merge pull request #2808 from tree-sitter/wasm-language-memory-fixes
...
Grow wasm memory as needed when loading additional wasm language modules
2023-12-03 13:14:19 -08:00
Max Brunsfeld
68ba9a4d66
Grow memory dynamically as-needed when loading wasm language modules
2023-12-03 12:12:47 -08:00
Max Brunsfeld
f2285b43ea
Fix crash when failing to instantiate wasm stdlib module
2023-12-03 11:42:03 -08:00
Max Brunsfeld
b5f461a69b
Merge pull request #2802 from tree-sitter/another-subtree-compare-fix
...
Fix another bug in subtree_compare
2023-11-30 11:34:24 -08:00
Max Brunsfeld
09b522ece2
Fix another bug in subtree_compare
...
When subtrees differ, exit loop before pushing children to the stack.
2023-11-30 11:10:33 -08:00
Andrew Hlynskyi
24e62e5c79
Merge pull request #2798 from tree-sitter/revert-2482-alt-2454
...
Revert "Alt #2454 "
2023-11-29 12:59:59 +02:00
Andrew Hlynskyi
d56b51a11d
Revert "Alt #2454 "
2023-11-29 11:20:05 +02:00
Andrew Hlynskyi
8456f7eb7a
Merge pull request #2791 from ahlinc/default-release-profile
...
Keep default release profile with default settings
2023-11-29 05:26:12 +02:00
Andrew Dupont
642679f32a
Simplify flags
2023-11-28 14:08:16 -08:00
Andrew Dupont
24e41d2bb7
fix: Handle quantified predicates on web-tree-sitter properly
...
Test cases for all new predicates added in #2532
2023-11-28 13:07:32 -08:00
Max Brunsfeld
034f0d0280
Merge pull request #1864 from tree-sitter/wasm-language
...
Add optional WASM feature to the native library, allowing it to run wasm-compiled parsers via wasmtime
2023-11-28 12:08:47 -08:00
Andrew Hlynskyi
a2a29231f1
Keep default release profile with default settings
2023-11-28 05:14:36 +02:00
Max Brunsfeld
13dd76e444
Return an informative error on failing to construct a WasmStore
2023-11-27 17:48:29 -08:00
Andrew Hlynskyi
016d8c2499
Merge pull request #2789 from tree-sitter/revert-2602-lib-fix-naming
...
Revert "chore(lib): fix fields naming in `QueryPattern` to singular"
2023-11-28 03:37:28 +02:00
Andrew Hlynskyi
0d26309c41
Revert "chore(lib): fix fields naming in QueryPattern to singular"
2023-11-28 02:30:01 +02:00
Max Brunsfeld
3b0159d255
Merge pull request #2788 from tree-sitter/subtree-compare-stack-overflow
...
Avoid using recursion in `subtree_compare`
2023-11-27 13:11:10 -08:00
Max Brunsfeld
5e2456c2f2
Avoid using recursion for ts_subtree_compare
...
This can lead to stack overflow crashes.
2023-11-27 11:35:33 -08:00
Max Brunsfeld
ac29eab5f9
Remove tests for LookaheadIterator compilation failures
...
These add noise when running tests. Let's not add unit tests for
compilation failurs.
2023-11-27 10:32:25 -08:00
Max Brunsfeld
6fd7a1e44e
Return informative error when load_language fails
2023-11-26 12:15:05 -08:00
Max Brunsfeld
e9289d3b30
Fix error when wrong language name is passed to load_language
2023-11-24 20:25:28 -08:00
Max Brunsfeld
bd0796d11d
Remove mips targets from CI workflow
2023-11-24 20:06:36 -08:00
Max Brunsfeld
b59716600a
Add a test that loads multiple languages in a wasm store
2023-11-24 20:03:54 -08:00
Max Brunsfeld
359317f876
Determine sizes of static wasm arrays from subsequent static pointers
2023-11-24 11:32:24 -08:00
Max Brunsfeld
97800e0ec8
Advance wasm store's mem + table offsets when adding a language
2023-11-19 12:26:59 -08:00
Amaan Qureshi
0ff28346be
Merge pull request #2714 from MrPrezident/test_point_range_captures_fix
...
fix "test_point_range_captures not working"
2023-11-12 21:09:09 -08:00
MrPrezident
3c4957e940
fix "test_point_range_captures not working"
...
Fix for https://github.com/tree-sitter/py-tree-sitter/issues/105
2023-11-12 20:58:51 -06:00
Amaan Qureshi
6019b7c84c
chore: add FUNDING.json
2023-11-08 00:08:07 -05:00
Max Brunsfeld
d3c84e5bd3
Merge pull request #2751 from stackmystack/doc-correction
...
doc: fix multi-language program typo
2023-11-06 10:43:08 -08:00
Firas al-Khalil
665da5e230
doc: fix multi-language program typo
2023-11-06 13:18:09 +01:00
Max Brunsfeld
360059eca1
Avoid a '../' #include in test scanner
2023-11-04 12:26:00 -07:00
Max Brunsfeld
d56d1a32ac
Fix test grammar loading in unit test
2023-11-04 12:26:00 -07:00
Max Brunsfeld
098969db08
Fix windows compile errors in wasm.c
2023-11-04 12:26:00 -07:00
Max Brunsfeld
adb0e6958e
Only enable wasm feature on CI for supported architectures
2023-10-31 17:13:50 -07:00
Max Brunsfeld
473b3c8208
Add a CLI feature flag for wasm runtime support
2023-10-31 16:56:11 -07:00
Max Brunsfeld
3380e0eed7
Fix hang when printing dot graphs from the CLI
2023-10-31 15:59:37 -07:00
Max Brunsfeld
b26eff13e2
Remove code duplication in wasm module instantiation, add stdlib symbols
2023-10-31 15:58:56 -07:00