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

The parse code fails for C Sharp #1

Open
purug2000 opened this issue Dec 26, 2022 · 1 comment
Open

The parse code fails for C Sharp #1

purug2000 opened this issue Dec 26, 2022 · 1 comment

Comments

@purug2000
Copy link

purug2000 commented Dec 26, 2022

I believe the issue is because of the assumption that tree-sitter parser repository for a specific language will use the same suffix as the wrapper method for the language which breaks for c-sharp as the parser repo has a suffix '-c-sharp' while the wrapper methods have a suffix '-cs'.

@cedricrupb
Copy link
Owner

Thank you for noticing!

The problem is not necessarily the suffix but the fact that the dash is not supported in the C header
(tree-sitter tries to load the function tree_sitter_c-sharp but it is tree_sitter_c_sharp).

I implemented and pushed a quick workaround and parsing C# files should now work (if you build from source).

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

No branches or pull requests

2 participants