emacs-tree-sitter / elisp-tree-sitter

Emacs Lisp bindings for tree-sitter

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tree-sitter languages download of windows binaries failed with error

the42 opened this issue · comments

Using Emacs build from https://github.com/kiennq/emacs-build/releases/download/v29.162.20221017.1251342/emacs-master-x86_64-full.zip
Using git bash Git-2.38.1-64-bit.exe

When I try to enable treesitter-mode, the language bundle is downloaded into .emacs.d\elpa\tree-sitter-langs-20221122.645\bin\tree-sitter-grammars.x86_64-pc-windows-msvc.v0.12.6.tar.gz

Emacs fails with error message internal-macroexpand-for-load: Eager macro-expansion failure: (error "Error calling (tar -xvzf tree-sitter-grammars.x86_64-pc-windows-msvc.v0.12.6.tar.gz), exit code is 2")

Messages has the following details:

[tree-sitter-langs] Running (tar -xvzf tree-sitter-grammars.x86_64-pc-windows-msvc.v0.12.6.tar.gz) in c:/Users/HoechtlJ/WorkFolders/Documents/.emacs.d/elpa/tree-sitter-langs-20221122.645/bin/
0 [main] gzip (21440) C:\Users\HoechtlJ\AppData\Local\Emacs\bin\gzip.exe: *** fatal error - cygheap base mismatch detected - 0x210351408/0x180350408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version should
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
/usr/bin/tar: Child returned status 127
/usr/bin/tar: Error is not recoverable: exiting now

When I shell into the directory and extract with the exact same command line the files get extracted. treesitter works afterwards.

I have no cygwin?.dll installed whatsoever
I have no other tar.exe but /usr/bin/tar.exe lingering