Skip to content

Use @cursorless/tree-sitter-wasms dependency #103

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 5 commits into from
Apr 22, 2025
Merged

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Apr 21, 2025

Related to cursorless-dev/cursorless#2898

Tested together with the above pull request

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner April 21, 2025 10:02
@AndreasArvidsson AndreasArvidsson marked this pull request as draft April 21, 2025 10:55
@@ -0,0 +1 @@
cp -r node_modules/@cursorless/tree-sitter-wasms/out parsers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tempted to just include node_modules/@cursorless/tree-sitter-wasms/out directory in the extension bundle and read them in place to avoid this step but I don't feel strongly

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah true, but doesn't matter really and we are gonna scrap this ext anyhow.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took a crack at this but it apparently isn't recommended and you do get an error

The following include patterns in the "files" property in package.json do not match any files packaged in the extension:
  - node_modules/@cursorless/tree-sitter-wasms/out
Remove any include pattern which is not needed.

I think copying assets is fine.

@AndreasArvidsson AndreasArvidsson merged commit f237ba9 into main Apr 22, 2025
@AndreasArvidsson AndreasArvidsson deleted the wasmDep branch April 22, 2025 05:24
github-merge-queue bot pushed a commit to cursorless-dev/cursorless that referenced this pull request Apr 22, 2025
cursorless-bot pushed a commit to hands-free-vim/cursorless.nvim that referenced this pull request Apr 22, 2025
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