-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add GDScript Support w/ tree-sitter-gdscript #93
base: main
Are you sure you want to change the base?
Conversation
This should be everything for real this time now?
Hi, I have just updated tree-sitter-gdscript to use the latest tree sitter. Additionally, I ran Prebuilds are not set up yet. I'm not sure if that affects you. Let me know if I can amend tree-sitter-gdscript in a way to improve this workflow. |
That shouldn't be an issue afaik—the issues are with other treesitter plugins not building due to dependency version requirement jank and some of them outright refusing to build on macOS. Thanks anyways! |
Got running `yarn` to work by using an older node ver; `yarn compile` still fails however
Now able to get to the point of running @pokey Does |
hmm i'm getting the following error when trying to build locally:
|
I'll try updating the tree-sitter-gdscript to latest commit, just in case PrestonKnopp already fixed this, later today. If that doesn't work then I'll ping him since the issue is presumably in that plugin itself. |
Already tried that on current tip of default branch |
Based on some digging I've done in other tree-sitter parser projects, that seems to be an error related to outdated versions of the tree sitter CLI, as they used to insert a I've pushed an update to both the tree-sitter-gdscript and tree-sitter commit hashes to update them to latest commit and ver |
Hmm that didn't seem to help: ➜ npx tree-sitter --version
tree-sitter 0.22.6 (b40f342067a89cd6331bf4c27407588320f3c263)
➜ npx tree-sitter build --wasm node_modules/tree-sitter-gdscript/
Failed to locate a package.json file that has a "tree-sitter" section, please ensure you have one, and if you don't then consult the doc From what I can tell 0.22.6 is the latest version of the tree-sitter CLI |
It isn't, the latest is
Running
which is baffling, considering |
Hmm yeah unfortunately the whole setup in this repo is a bit cursed. We've been limping until someone gets to cursorless-dev/cursorless#1488. If you're interested in trying to take a crack at that, that should make everything a lot smoother. Even just doing step 1 would be a win, and then as a temporary step we could just pull the wasms from that package into this repo to avoid needing to do steps 2 and 3 right away. If interested lmk and happy to discuss on discord if helpful |
I'll give working on the first part of that issue a shot at the very least. Will take a bit since I need to update all of the tree-sitter plugin versions, alongside getting at least baseline understanding of typescript and github actions down... |
@cocona20xx awesome lmk if you get stuck! |
also fwiw we just removed the custom web-tree-sitter build infra and bumped to 0.24.6; I've merged those changes into this PR to save you dealing with the merge conflicts |
As mentioned a while ago in #76, I'm unable to get yarn to behave for long enough to actually add https://github.com/PrestonKnopp/tree-sitter-gdscript to the project. I've done all of the other required steps that don't involve yarn, however, so I just need someone to run
yarn add -D tree-sitter-gdscript
and thenyarn compile
to get this moved along.@PrestonKnopp is the dev for the tree sitter plugin being added here, so I'm pinging them for posterity's sake—afaik the plugin is feature complete with the version of GDScript in Godot 4.3 (the current stable release) but I might be wrong on that front; please do let me know if I am.