Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

HIE doesn't work after build. "haskell-lsp: Failed to parse message header" error #1499

Description

@mingcenwei

I attempted to build HIE with stack from source on my macOS Catalina. The executables were successfully installed to ~/.local/bin. However, whenever I run hie (or hie-wrapper), the program will block after displaying the line 2019-12-XX XX:XX:XX.XXXXXX [ThreadId 4] - args:[]. Then if I press any key, the program will crash (and print hie-wrapper: callProcess: /Users/say/.local/bin/hie-8.6.5 (exit 1): failed if I use hie-wrapper rather than hie). If I add the flags --lsp --debug, the program will block after displaying the line haskell-lsp:Starting up server ..., and crash if I press any key and print the message:

2019-12-26 01:28:33.947057 [ThreadId 4] -
haskell-lsp: Failed to parse message header:
: string
 exiting 1 ...

image
(^ The program gets stuck.)

image
(^ It crashes if I press any key.)

The Haskell Language Server extension on Visual Studio Code doesn't work, either. It's continually emitting the following error messages:
image

The following are the last few lines written to the standard output after I run stack repl haskell-ide-engine in the build directory:
image

Environment:

  • OS: macOS Catalina Version 10.15.2 (19C57)
  • VS Code: Version: 1.41.1
  • Haskell Language Server: 0.0.31
  • HIE:
$> hie --version
Version 1.0.0.0, Git revision 2c51b612d4f584e7f543961cf2a231139df8930b (dirty) (3507 commits) x86_64 ghc-8.6.5

$> which hie
/Users/say/.local/bin/hie

$> ll /Users/say/.local/bin
total 748968
-rwxr-xr-x  1 say  staff   118M Dec 25 23:27 hie
-rwxr-xr-x  1 say  staff   118M Dec 25 23:27 hie-8.6
-rwxr-xr-x  1 say  staff   118M Dec 25 23:27 hie-8.6.5
-rwxr-xr-x  1 say  staff    12M Dec 25 23:27 hie-wrapper
  • Compiler:
$> cc --version
Apple clang version 11.0.0 (clang-1100.0.33.16)
Target: x86_64-apple-darwin19.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

$> gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.16)
Target: x86_64-apple-darwin19.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
  • GHC:
$> ghc --version    # installed via Homebrew
The Glorious Glasgow Haskell Compilation System, version 8.8.1

$> ls ~/.stack/programs/x86_64-osx/
ghc-8.4.2           ghc-8.4.3           ghc-8.4.4           ghc-8.6.1           ghc-8.6.2           ghc-8.6.3           ghc-8.6.4           ghc-8.6.5
ghc-8.4.2.installed ghc-8.4.3.installed ghc-8.4.4.installed ghc-8.6.1.installed ghc-8.6.2.installed ghc-8.6.3.installed ghc-8.6.4.installed ghc-8.6.5.installed
ghc-8.4.2.tar.bz2   ghc-8.4.3.tar.bz2   ghc-8.4.4.tar.bz2   ghc-8.6.1.tar.bz2   ghc-8.6.2.tar.bz2   ghc-8.6.3.tar.bz2   ghc-8.6.4.tar.bz2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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