Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid argument (Exec format error) #11

Closed
LukaHorvat opened this issue Jul 12, 2019 · 3 comments
Closed

invalid argument (Exec format error) #11

LukaHorvat opened this issue Jul 12, 2019 · 3 comments

Comments

@LukaHorvat
Copy link

I don't know if this is the right repository to raise the issue since I'm getting it by invoking "hie-core" in my project(s).

Anyways, when running hie-core in any of my stack projects I get something like this:

[1/6] Finding hie-bios cradle
Cradle {cradleRootDir = "C:\\Users\\darwi\\Projects\\basic", cradleOptsProg = CradleAction: stack}

[2/6] Converting Cradle to GHC session
#!/usr/bin/env bash
if [ "$1" == "--interactive" ]; then
  pwd
  echo "$@"
else
  ghc "$@"
fi

res
  (ExitFailure 1,"C:\\msys64\\tmp\\wra530A: startProcess: invalid argument (Exec format error)\n",["-package-db","C:\\Users\\darwi\\Projects\\basic\\.stack-work\\install\\5fdbb79e\\pkgdb","-package-db","C:\\sr\\snapshots\\c6f920a2\\pkgdb","-package-db","C:\\Users\\darwi\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.6.4\\lib\\package.conf.d"],"")
hie-core.exe: CradleError "C:\\msys64\\tmp\\wra530A: startProcess: invalid argument (Exec format error)\n"

I'm on Windows 10 64bit. Let me know what additional info you want me to provide.
Also, sorry if this is unrelated to hie-bios. hie-core doesn't seem to have a dedicated issue board.

@mpickering
Copy link
Collaborator

Probably no one has ported over the stack cradle wrapper to work on windows yet. The library isn't finished yet so I'm afraid it's use at your own risk and fix problems yourself at this stage.

@jneira
Copy link
Member

jneira commented Sep 19, 2019

@LukaHorvat hi! it throwed another error for me but i get to make it work in windows with #50

@fendor
Copy link
Collaborator

fendor commented Jan 13, 2020

I suspect this is solved since multiple users are using hie-bios via hie and ghcide on windows. Feel free to reopen if the problem persists.

@fendor fendor closed this as completed Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants