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

Mac+vs code: The Haskell HIE server crashed 5 times in the last 3 minutes. The server will not be restarted. #1470

Closed
youwillbe opened this issue Nov 26, 2019 · 14 comments

Comments

@youwillbe
Copy link

Can not work with vscode in macOS
image
Environment:

  • macOS 10.15.1
  • which hie
    /Users/kangyu/.local/bin/hie
    
  • $ hie --version
    Version 0.13.0.0, Git revision c1e57f5c11c504badb7a0aaf5897e6433d6243e3 (3114 commits) x86_64 ghc-8.6.5
    
  • $ ls ~/.stack/programs/x86_64-osx
    ghc-8.6.5           ghc-8.6.5.installed ghc-8.6.5.tar.bz2
    
@mpickering
Copy link
Collaborator

Sounds like you don't have hie-8.6.5 installed.

@youwillbe
Copy link
Author

Sounds like you don't have hie-8.6.5 installed.

Seriously? Look at the third environment.

@fendor
Copy link
Collaborator

fendor commented Nov 27, 2019

They are referring to hieWrapper: callProcess: /Users/kangyu/.local/bin/hie-8.6.5 (exit -11): failed .
So, what happens if you manually invoke this command?

@youwillbe
Copy link
Author

They are referring to hieWrapper: callProcess: /Users/kangyu/.local/bin/hie-8.6.5 (exit -11): failed .
So, what happens if you manually invoke this command?

image
image

@fendor
Copy link
Collaborator

fendor commented Nov 27, 2019

In your log above, hie-wrapper tries to invoke hie-8.6.5 with the path /Users/kangyu/.local/bin/hie-8.6.5 but fails.
What happens if you invoke /Users/kangyu/.local/bin/hie-8.6.5?

@youwillbe
Copy link
Author

In your log above, hie-wrapper tries to invoke hie-8.6.5 with the path /Users/kangyu/.local/bin/hie-8.6.5 but fails.
What happens if you invoke /Users/kangyu/.local/bin/hie-8.6.5?

image

@fendor
Copy link
Collaborator

fendor commented Nov 27, 2019

Maybe a haskell-lsp bug?

@youwillbe
Copy link
Author

Maybe a haskell-lsp bug?

Oddly enough, it works fine in nvim.

@lukel97
Copy link
Collaborator

lukel97 commented Dec 3, 2019 via email

@codygman
Copy link

codygman commented Dec 3, 2019

Is this issue not because of the mismatching project ghc version of 8.8.1 and hie version of 8.6.5 in the attached images?

@youwillbe
Copy link
Author

stack ghc is 8.6.5, I init project use this:

stack new my-project yesodweb/sqlite && cd my-project
stack install yesod-bin --install-ghc
stack build

@codygman
Copy link

codygman commented Dec 4, 2019

@youwillbe In this comment I see:

image

@youwillbe
Copy link
Author

@youwillbe In this comment I see:

image

... It's in my home~, not my project
image

@youwillbe
Copy link
Author

Can you turn the verbose logging option in the vscode options and attach the logs?

On 27 Nov 2019, at 15:30, 亢禹 @.***> wrote: Maybe a haskell-lsp bug? Oddly enough, it works fine in nvim. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Same as stderr

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

No branches or pull requests

7 participants