Skip to content

Commit af90251

Browse files
Blake EasleyBlake Easley
Blake Easley
authored and
Blake Easley
committed
Upgrade dependencies
Upgrade web-tree-sitter, tree-sitter-cli and tree-sitter-bash These sort of all need to be done at the same time else everything blows up Update rootNode.hasError() to hasError per https://github.com/tree-sitter/tree-sitter/pull/3103/files Update build-wasm flag to build --wasm per tree-sitter/tree-sitter@99b93d8
1 parent 3f65813 commit af90251

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/upgrade-tree-sitter.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euox pipefail
55
cd server
66
pnpm add web-tree-sitter
77
pnpm add --save-dev tree-sitter-cli https://github.com/tree-sitter/tree-sitter-bash
8-
npx tree-sitter build-wasm node_modules/tree-sitter-bash
8+
npx tree-sitter build --wasm node_modules/tree-sitter-bash
99

1010
curl 'https://api.github.com/repos/tree-sitter/tree-sitter-bash/commits/master' | jq .commit.url > parser.info
1111
echo "tree-sitter-cli $(cat package.json | jq '.devDependencies["tree-sitter-cli"]')" >> parser.info

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"turndown": "7.1.3",
2424
"vscode-languageserver": "8.0.2",
2525
"vscode-languageserver-textdocument": "1.0.11",
26-
"web-tree-sitter": "0.20.8",
26+
"web-tree-sitter": "0.22.5",
2727
"zod": "3.22.4"
2828
},
2929
"scripts": {

server/parser.info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
"https://api.github.com/repos/tree-sitter/tree-sitter-bash/git/commits/4488aa41406547e478636a4fcfd24f5bbc3f2f74"
2-
tree-sitter-cli "0.20.7"
1+
"https://api.github.com/repos/tree-sitter/tree-sitter-bash/git/commits/f8fb3274f72a30896075585b32b0c54cad65c086"
2+
tree-sitter-cli "0.22.5"

server/src/analyser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default class Analyzer {
128128
})
129129
}
130130

131-
if (tree.rootNode.hasError()) {
131+
if (tree.rootNode.hasError) {
132132
logger.warn(`Error while parsing ${uri}: syntax error`)
133133
}
134134

server/tree-sitter-bash.wasm

883 KB
Binary file not shown.

0 commit comments

Comments
 (0)