saoudrizwan / claude-dev

Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.
https://marketplace.visualstudio.com/items?itemName=saoudrizwan.claude-dev
MIT License
4.04k stars 381 forks source link

While working on adding Dart support I am not able to successfully integrate tree-sitter-dart.wasm in claude-dev #134

Closed go-run-jump closed 3 weeks ago

go-run-jump commented 3 weeks ago

Description

I'm working on adding support for Dart in claude-dev using the tree-sitter-dart package (https://www.npmjs.com/package/tree-sitter-dart). However, I'm encountering issues with incorporating the WASM file into the build process, and subsequently having the dart support in claude-dev.

Current Behavior

The WASM file is not being loaded correctly in languageParser.ts. What I notice there is that the loading mechanism doesn't seem to be using the the location where the WASM files are supposed to be copied according to esbuild.js.

What I want to achieve

The WASM file should be properly incorporated into the build and loaded correctly by loadLanguage in languageParser.ts.

Questions

  1. Is there any special consideration or step I'm missing when adding the WASM file to the build?
  2. How should the WASM file be correctly referenced in languageParser.ts?
  3. Are there any specific configurations needed in esbuild.js to ensure the WASM file is copied to the correct location?

Additional Context

Any guidance would be greatly appreciated.

go-run-jump commented 3 weeks ago

Just testing this on a different non-dart-project gave the same errors. I seem that I broke the functionality while developing. With the last published version (1.3.4), non-dart-support is working. Thus I'm closing the issue.

JustTryAI commented 3 weeks ago

@go-run-jump Dart support been included directly into tree-sitter, https://github.com/tree-sitter/tree-sitter/wiki/List-of-parsers, so no need for tree-sitter-dart.