Skip to content
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

Fix detecting tree-sitter parsers #1403

Merged
merged 3 commits into from
Mar 4, 2024
Merged

Fix detecting tree-sitter parsers #1403

merged 3 commits into from
Mar 4, 2024

Conversation

rien
Copy link
Member

@rien rien commented Mar 4, 2024

Since #1291 we only look for parsers in @dodona/dolos-parsers, however we still want to support using tree-sitter parsers by looking in the NODE_PATH.

This PR fixes this issue by trying to load the relevant parser if a suitable parser was not found in dolos-parsers. I have also added a test case to replicate the issue and confirm that it is fixed.

Fixes #1401

@rien rien merged commit fa0aefc into main Mar 4, 2024
26 checks passed
@rien rien deleted the fix/tree-sitter-detection branch March 4, 2024 16:22
@rien rien added the bug Something isn't working label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom tree-sitter-xxx packages cannot be used anymore
1 participant