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

error readCreateProcess: cabal-helper-wrapper "print-build-platform" (exit 1): failed #1262

Closed
luochen1990 opened this issue May 21, 2019 · 6 comments

Comments

@luochen1990
Copy link

luochen1990 commented May 21, 2019

I'm using:

  • Ubuntu 18.04.2 LTS (under Windows WSL)
  • NVIM v0.4.0-811-gca1ce5902
  • LanguageClient-neovim 41c948e (2019-05-08 21:17:55)
  • haskell-ide-engine 33d4581 (2019-05-18 21:37:50)

My workaround:

export PATH="$PATH:$(stack path --compiler-bin)"

The problem of my workaround:

When I'm working on single files outside of any project, hie cannot find modules correctly.

Another workaround I have tried:

Add following file into PATH dir, name it ghc and chmod +x ghc

#!/bin/sh
stack exec -- ghc "$@"

But this workaround failed, seems that cabal-helper-wrapper is not finding ghc in PATH.

Here is a related issue: haskell/vscode-haskell#128

@samuelpilz
Copy link
Contributor

Hie does not work if the cabal file is missing, iirc.

@nponeccop
Copy link
Contributor

The error message could be better. User errors should never look like crashes.

@luochen1990
Copy link
Author

So, is it possible to support single file ?

@fendor
Copy link
Collaborator

fendor commented May 29, 2019

That feature request should be a separate issue.

@nponeccop
Copy link
Contributor

Can we close the issue as invalid?

@fendor
Copy link
Collaborator

fendor commented Dec 20, 2019

Not supported out of the box.
Can be worked around now with a custom cradle, e.g. direct cradle where you specify all the ghc options.

@fendor fendor closed this as completed Dec 20, 2019
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

5 participants