rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 96 forks source link

How do I ignore my .ghci file to get rid of the error: [global-stack-repl] No result from REPL within 60 seconds. Command was: :load #698

Closed remi-guan closed 1 year ago

remi-guan commented 1 year ago

I'm getting an error as shown in the image, this is a new project configured with the recommended settings.

image

I'm using IntelliJ IDEA 2022.3.3 and IntelliJ-Haskell 1.0.0-beta88, everything is the newest from now.

I've configured my GHCi followed by the wiki to support my custom prompt and highlighting. Packages hscolour and pretty-show are being used.

I'm pretty sure that my problem was caused by my .ghci file. Once I have renamed it, everything works fine as below.

image

But that makes me unhappy because I can't have colors in my GHCi. However, if I bring it back, IntelliJ-Haskell works badly like the first image.

Are there any options to avoid IntelliJ-Haskell read and use my .ghci file? I've tried to move it as .ghc/ghci.conf but got no luck.

remi-guan commented 1 year ago

Sorry for my bad, if I read the wiki carefully this shall not happen because: image

So .ghci will always be loaded, and the configurations should not be set in that file, but a .ghci.standalone instead.

Thus, I did as they say:

And everything works fine.