Track post-Wrynose dependency, audit, and parser maintenance
After the Wrynose workspace update landed through #524 and #527, it may be useful to track the remaining dependency, npm audit, and parser-maintenance work in one place.
This is intended as a coordination issue, not as a proposal to solve everything in a single PR. I would appreciate maintainer guidance on the preferred direction before opening overlapping dependency or parser PRs.
Current observations:
- The reference integration workspace and documentation references have been updated to Yocto 6.0 / Wrynose via #524 and #527.
- A local npm audit check on current
stagingreports root-level audit warnings. - A local lockfile-only audit refresh experiment reduced the root audit report from 13 vulnerabilities to 3, made the client audit clean, and left the server audit clean.
- The remaining root audit warnings are transitive through Mocha:
npm audit fixwithout--forcedoes not currently resolve those remaining Mocha-related advisories.- Several dependency and parser-related PRs are already open and may need review, refresh, merge, or closure before opening overlapping work:
- #498
- #499
- #471
- #500
- #496
- #413
- #476
- #478
- #486
- #479
- #469
- #477
- #480
- #452
- #460
- #295
Possible split, subject to maintainer preference:
- Review the existing dependency bump PRs and decide which ones should be refreshed, merged, superseded, or closed.
- Treat the remaining Mocha-related audit warnings separately, since they are not resolved by a normal
npm audit fix. - Treat
web-tree-sitter,tree-sitter-bash, andtree-sitter-bitbakeparser maintenance as a separate track. - Avoid bundling all dependency, audit, and parser changes into one large PR unless maintainers prefer that approach.
Would you prefer contributors to help by refreshing existing Dependabot PRs one by one, by opening new focused PRs for the remaining audit/parser tracks, or by taking a different route?
I rather prefer reviewing one PR grouping all dependency updates at once when we are lagging so much behind. A round of npm update, npm audit or ncu would be appreciated, while fixing the hiccups that may appear.
Indeed, the tree-sitter update will need a dedicated development, especially tree-sitter-bitbake, which is no longer maintained. Our plan is to take over and bump it to the latest tree-sitter syntax. Mocha is for testing only (dev-dependency), so it can also be tackled separately.
Make sure to bump the dependencies of all our packages, not just the main one (find package.json).
Quick status update after #541 merged.
The ordinary compatible dependency refresh requested here is now complete across the package roots. #541 refreshed the lockfiles without changing dependency ranges and reduced the audit results to:
- root: 3 remaining findings;
- client: 0;
- server: 0.
The remaining root findings are confined to the current stable Mocha dev-dependency through diff and serialize-javascript; a normal npm audit fix does not resolve them.
As discussed above, I kept the parser track separate: web-tree-sitter, tree-sitter-bash, and tree-sitter-bitbake were not changed by #541.
So my understanding is that this coordination issue now has two distinct remaining tracks:
- Mocha-specific audit maintenance, when there is a sensible stable upgrade path;
- the dedicated tree-sitter/parser modernization, especially the planned
tree-sitter-bitbaketakeover/update.
I will avoid opening overlapping work on either track without clearer maintainer direction.
Thanks to your npm bump, we have no vulnerability reported in the production packages, this was the most urging matter! Thanks for the status update. I agree with the remaining tracks.
Parser-track status update after a local compatibility spike on #295.
I tested the semantic change from #295 in isolation against current staging, without applying #498.
Baseline:
- current
idillon-sfl/tree-sitter-bitbake@bc577da...; tree-sitter-cli ^0.22.6;- current locked
web-tree-sitter 0.24.7; - WASM build succeeds, TypeScript compiles, and 37/37 targeted parser-backed tests pass.
With only #295 applied:
tree-sitter-grammars/tree-sitter-bitbake@a5d04fd...;tree-sitter-cli 0.26.12;- the same
web-tree-sitter 0.24.7runtime; - WASM build succeeds and the generated parser loads;
- TypeScript compiles;
- analyzer and embedded-language tests pass;
semanticTokens.test.tsregresses.
I then parsed the same semantic-token fixture with both WASMs under the same runtime. The current baseline parses do_build as a function_definition containing shell_content, while the #295 parser misparses that block into a variable_assignment plus ERROR nodes. That directly explains the lost/changed semantic tokens in the shell body.
Looking at the grammar history, bc577da... is four commits ahead of a5d04fd.... Those commits include Fix Shell variable expansions inside strings, associated tests, and regenerated parser files. So #295 is not just switching to the canonical repository / newer CLI; as it stands, it also drops behavior that vscode-bitbake currently relies on.
I have not yet isolated which of those four commits is individually causal, so I do not want to overstate that part. What is verified is that the regression comes from the grammar/source delta rather than an inability of the current web-tree-sitter runtime to load the new WASM.
My current conclusion is therefore that #498 does not appear necessary to explain or fix this particular failure; the grammar history should probably be reconciled first.
If useful, I can continue with a minimal bisect of those four grammar commits and then propose the smallest path to bring the canonical grammar forward before touching the runtime dependency.
Follow-up: I ran the minimal bisect across the four commits between a5d04fd... and the currently consumed bc577da..., keeping both tree-sitter-cli 0.26.12 and web-tree-sitter 0.24.7 fixed.
Result:
a5d04fd...— BAD6ecae988...(Support inherit_defer directive) — BAD3461edde...(Fix Shell variable expansions inside strings) — GOODcf69f19e...(Add tests) — GOODbc577da...(Update generated files) — GOOD
So 3461edde4442efb1e4043effa9b6f626108620f6 is the first commit that restores the expected vscode-bitbake semantic-token behavior.
That commit only changes src/scanner.c: it tracks variable-expansion brace depth separately while scanning shell content. This matches the observed failure precisely: without it, a shell function containing ${FOO} inside a quoted shell string is no longer parsed as function_definition / shell_content, and vscode-bitbake subsequently loses or misclassifies semantic tokens.
This also confirms that the later generated-files commit is not required to make this test pass when rebuilding with tree-sitter-cli 0.26.12.
So the smallest grammar prerequisite I can identify for moving #295 forward is now concrete: the canonical tree needs the behavior from 3461edde (or an equivalent current implementation) before vscode-bitbake switches away from the fork.
Follow-up on the parser-track investigation: I isolated the grammar regression and checked the current upstream state.
The canonical tree-sitter-grammars/tree-sitter-bitbake repository is still at a5d04fd. The four commits present only in the idillon-sfl fork are:
6ecae988—inherit_defersupport;3461edde— fix shell variable expansions inside strings;cf69f19e— tests;bc577da— regenerated files.
I tested 3461edde independently on top of canonical a5d04fd: it applies cleanly and changes only src/scanner.c, so it does not depend on the preceding inherit_defer change.
More importantly, I now have a minimal RED → GREEN reproducer using the grammar's own declared Tree-sitter CLI (0.20.8):
foo () {
echo "${bar}"
}
On canonical a5d04fd, tree-sitter test fails and parses the function with an ERROR node. With only 3461edde applied, the exact same corpus test passes and the body is parsed as shell_content.
So the scanner fix is individually causal for this regression, while inherit_defer is not required for it.
I also found that this work is already proposed upstream as tree-sitter-grammars/tree-sitter-bitbake#23. That PR is still open and mergeable, with maintainerCanModify=true, but has had no review/checks since 2024. It bundles inherit_defer, this scanner fix, tests, and generated files; #21 separately proposes inherit_defer.
Given the planned takeover mentioned above, I would avoid opening another overlapping grammar PR. My preferred next step would be to reconcile this existing upstream work first — in particular preserving the isolated scanner fix plus a focused regression corpus — and only then resume the vscode-bitbake Tree-sitter/CLI/runtime modernization.
If that matches the takeover plan, I can proceed with that upstream reconciliation as the next parser-track task.
Status update after the recent dependency/parser cleanup.
The ordinary dependency-maintenance part of this coordination issue is now largely complete:
- the compatible dependency refresh across package roots was completed;
- Mocha is now on 12.x;
- the
web-tree-sitter0.26 migration landed through #552; - the stale/superseded Dependabot backlog has been reviewed and cleaned up;
- #478 remains intentionally open because the
@types/node22 -> 24 jump is coupled to the project's supported Node runtime baseline rather than being a routine stale bump.
The parser track is now much narrower:
- #460 (
tree-sitter-bash) was revalidated against currentstaging/web-tree-sitter ^0.26.6: WASM build, compile, and the targeted semantic-token suite pass, so the old ABI blocker no longer applies. - #295 (
tree-sitter-bitbake) still reproduces the quoted shell-variable-expansion semantic regression. The failure is in the grammar delta, not in theweb-tree-sitterruntime migration. - the first known grammar change restoring the required behavior remains the scanner fix corresponding to
3461edde, and the equivalent upstream reconciliation is still the prerequisite before #295 can move forward safely.
So my current reading is that this coordination issue has effectively converged on the remaining parser-maintenance track, plus the separate Node-runtime policy decision in #478.