Skip to content

Interactive mode cannot work for stack ghci #1367

Open
@zhouqiji

Description

@zhouqiji

HI, appreciate you guys notice this issue,
My working environment is: WIndows 10 64 bit, emacs 24.5.1

My problem is that when I start interactive mode in eamcs, it would say:

 "The Haskell process `haskell` has died."

And the process log shows:

("Starting inferior stack GHCi process using stack" "haskell" nil "stack" "ghci" "--ghc-options=-ferror-spans")

-> Prelude.putStrLn ""
:set -v1
:set +c
-> :set prompt "\4"
-> :set prompt2 "λ| "
<- Run from outside a project, using implicit global project config
<- Error parsing targets: The specified targets matched no packages.
   Perhaps you need to run 'stack init'?
   Warning: build failed, but optimistically launching GHCi anyway
<- Configuring GHCi with the following packages: 
   GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
<- Ok, modules loaded: none.
   Prelude> 
   Prelude> Prelude> unknown option: 'c'
   Prelude> �Leaving GHCi.
Event: "finished"
Process reset.

May I ask how to solve it? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions