Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree-sitter languages download of windows binaries failed with error #246

Open
the42 opened this issue Nov 23, 2022 · 0 comments
Open

tree-sitter languages download of windows binaries failed with error #246

the42 opened this issue Nov 23, 2022 · 0 comments

Comments

@the42
Copy link

the42 commented Nov 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant