Your environment
Win8.1 Pro version 6.3 9600 64bit
Steps to reproduce
follow the official instruction to install HLS
cd ..
git clone https://github.com/haskell/haskell-language-server --recurse-submodules
cd haskell-language-server
stack install.hs hls-8.10.3
Expected behaviour
Installation should be done flawlessly.
Actual behaviour
2021-01-31 12:43:58.193440: [debug] Process finished in 108ms: C:\Program Files\Git\cmd\git.EXE -c core.autocrlf=false archive -o C:\Users\Admin\AppData\Local\Temp\with-repo-archive22888\foo.tar HEAD
2021-01-31 12:43:58.499660: [error] Executable named tar not found on path: [".",.......]
How to fix it
since tar is only available under *nix, cygwin have to be installed aforehand.
- install
cygwin
- run the
stack install.hs hls in cygwin terminal, or add C:\cygwin64\bin to system PATH and run the command in cmd
btw. if you encounter "commitAndReleaseBuffer: invalid argument (invalid character)" issue in later installation, you should change your terminal encoding to utf8