-
Notifications
You must be signed in to change notification settings - Fork 12
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
Upgrade to latest TS version #2
Conversation
Thank you for this. Can you help me w/ some strategy, though? This repo was originally created for my PR to add tree-sitter support to Atom's I would like to be able to make both of us happy, but until Atom is updated, I think we might be at impasse. How will this code be consumed in nvim? Does it need to be packaged on NPM, or is it included via git repo or something? I'm wondering if we could just maintain parallel branches: 1 for "legacy" or pre-0.17 tree-sitter, and 1 for current tree-sitter. What do you think? |
From what I've seen the repo is cloned to a temp dir and then Two branches sound good. I'm just not sure if a specific branch can be configured with nvim-treesitter. It defaults to |
Ok, we can lock the dependency to this repo to a specific version in nvim-treesitter. So if we have 2 branches it would at least work for now. But IMO it's not a good long term solution as all changes have to be applied to both branches. And it doesn't auto-update the changes in nvim-treesitter as the revision must be bumped. |
I just learned that we can basically do a |
Glad you figured something out. If that turns out to be too much work, just let me know and we can try again.
Oh, yeah, it's a terrible option, but until Atom get's an update, we're stuck needing to support tree-sitter ~0.17, so my hands are a little bit tied up. Anyway, thanks! |
Turns out all that is needed to make this build is to update the |
Since this is the first result after a google search, I'll leave this here (hope that's ok) Using node 14 solves the issue on a Macbook M1. If you are using nvm install 14
nvm use 14
npm i -g npm
nvim +"TSInstall phpdoc" |
I tried to add your parser to nvim-treesitter but got version issues:
I've not worked on parsers before so not sure if I followed the right path:
tree-sitter-cli
to latest version inpackage.json
./node_modules/.bin/tree-sitter generate
I've also bumped the treesitter-php version.