Skip to content

Windows 10, VS Code: HIE server crashes - spaces in path not handled properly? #84

Closed
@mpilgrem

Description

@mpilgrem

As noted in haskell/haskell-ide-engine#565, HIE/Haskell Language Server (HLS) does not work with VS Code if hie.exe is on the PATH but on a path with a space in it. It fails on startup with the following 'notification' message ('HelloWorld' is the name of the test Haskell project, created with stack new HelloWorld):

The Haskell HIE (HelloWorld) server crashed 5 times in the last 3 minutes. The server will not be
restarted.

and messages in 'OUTPUT' ('Haskell HIE (HelloWorld)') like:

[Info  - 20:04:10] Connection to server got closed. Server will restart.
Pilgrem\AppData\Roaming\local\bin\hie.exe] was unexpected at this time.
[Error - 20:04:10] Connection to server got closed. Server will not be restarted.

hie.exe is located at:

>where hie
C:\Users\Mike Pilgrem\AppData\Roaming\local\bin\hie.exe

and the 'output' above seems to reference only the part of the path after the space.

If hie.exe is moved to a location with no spaces in the path, everything then works as expected - which is an easy work-around but not the desired behaviour.

For reference:

  • hie.exe --version is Version 0.2.0.0, Git revision 753deb91f9b9b39f14722315277d9fd587716bde (1341 commits) x86_64 ghc-8.2.2
  • code --version is 1.23.1, d0182c3417d225529c6d5ad24b7572815d0de9ac, x64
  • Haskell Language Server is version 0.0.16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions