Skip to content

fix(build/tree-sitter): race condition when building many parsers simultaneously #605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

vhyrro
Copy link
Contributor

@vhyrro vhyrro commented Apr 15, 2025

I can't test directly through the devshell since I'm in a region with poor internet currently, but a quick run of parallel with 4 separate treesitter installations has stopped throwing an error, so I assume this has fixed the problem. Further testing will be necessary.

@mrcjkb
Copy link
Member

mrcjkb commented Apr 15, 2025

suggestion: we have a test case that builds a tree-sitter parser. I suppose we could change it to spawn multiple builds in parallel.

@vhyrro vhyrro force-pushed the push-kxyrtrotuqvn branch from 13ee0e2 to 2bf1e00 Compare April 15, 2025 17:26
@vhyrro vhyrro marked this pull request as ready for review April 15, 2025 17:26
@vhyrro vhyrro requested a review from mrcjkb as a code owner April 15, 2025 17:26
@vhyrro vhyrro force-pushed the push-kxyrtrotuqvn branch from 2bf1e00 to e88ec2f Compare April 15, 2025 17:43
@vhyrro
Copy link
Contributor Author

vhyrro commented Apr 15, 2025

suggestion: we have a test case that builds a tree-sitter parser. I suppose we could change it to spawn multiple builds in parallel.

done

@vhyrro vhyrro merged commit 37e0078 into master Apr 15, 2025
13 checks passed
@vhyrro vhyrro deleted the push-kxyrtrotuqvn branch April 15, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants