Commit e8f00fd
ci(migration-assistant): fix smoke-parse for tree-sitter-cli 0.25 (#342)
## Summary
- `migration-assistant` has been failing on `main` and every PR (incl.
docs-only #333, #336) at the "Smoke-parse a sample .res file" step with
`Failed to read paths file tools/vendor/tree-sitter-rescript / Caused
by: Is a directory (os error 21)`.
- Root cause: tree-sitter-cli >= 0.25 repurposed `--paths` to mean "a
file listing input source paths", not "a directory containing the
grammar". The `^0.25.0` range in
`editors/tree-sitter-rescript/package.json` resolves to 0.25.10, where
the flag's strict file requirement breaks the invocation introduced in
#321.
- Fix: cd into the vendored grammar tree (the documented 0.25.x
grammar-lookup mechanism) and pass an absolute path to the fixture.
Drops the misused `--paths` flag entirely.
The pinned grammar commit `990214a` is unchanged, the install script is
unchanged, and the failure is not diff-induced.
## Test plan
- [x] Reproduced the failure locally with tree-sitter-cli 0.25.10 + the
pinned grammar commit.
- [x] Verified the new invocation exits 0 on the existing
`tools/res-to-affine/test/fixtures/sample.res` fixture.
- [ ] CI run on this PR turns the `migration-assistant` job green.
Strict scope per request: only `.github/workflows/ci.yml`
migration-assistant block touched. No changes to
`editors/tree-sitter-rescript/` or `tools/res-to-affine/vendor/` were
required.
https://claude.ai/code/session_01HZ3i2wX5R5rbY8Ycmug4Ao
---
_Generated by [Claude
Code](https://claude.ai/code/session_01HZ3i2wX5R5rbY8Ycmug4Ao)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent 4114947 commit e8f00fd
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
186 | 194 | | |
187 | 195 | | |
188 | 196 | | |
189 | 197 | | |
190 | 198 | | |
191 | 199 | | |
192 | 200 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
198 | 204 | | |
0 commit comments