Skip to content

tar should be installed before the installation of HLS, this should be an additional instruction of HLS installation  #1280

@leo-mao

Description

@leo-mao

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.

  1. install cygwin
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions