tree-sitter / tree-sitter

An incremental parsing system for programming tools

Home Page:https://tree-sitter.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`failed to rename wasm output file` on different Drive letter

RedCMD opened this issue · comments

Problem

Error is shown when attempting to build a wasm on a different drive letter than tree-sitter-cli

image

failed to rename wasm output file

Caused by:
    The system cannot move the file to a different disk drive. (os error 17)

(the wasm does build and runs perfectly fine)

old tree-sitter-cli version 0.20.8 worked correctly

Steps to reproduce

install tree-sitter-cli on one drive (C:)
attempt to build the wasm on another driver (D:)
tree-sitter build --wasm
(latest emscripten)

Expected behavior

wasm builds with no error

Tree-sitter version (tree-sitter --version)

tree-sitter 0.22.2 (fc15f62)

Operating system/version

Windows 11

do you mind trying out master to see if that fixes it? (namely #3203)

can confirm its fixed (within the last 10 commits)

nice, next release will be soon