rikvdkleij / intellij-haskell

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

Support Stack 2 #438

Closed sir4ur0n closed 5 years ago

sir4ur0n commented 5 years ago

Stack 2 just got released. I upgraded on my Windows Machine (stack upgrade) but now Intellij Haskell seems broken. I don't have access to it right now, but can someone else try and report please? I feel like some changes will be needed (too afraid to upgrade Stack on my work machine because of this).

rikvdkleij commented 5 years ago

What kind of error do you get?

rikvdkleij commented 5 years ago

In my local version in which I have removed intero everything works okay.

So I installed beta48 and noticed that the REPLs do not want to startup anymore. Looks like an issue in the combination of stack and intero.

Error:

Executable named intero not found on path: 
rikvdkleij commented 5 years ago

Hmm, stack build intero does nothing on LTS-13.25. Can also be some other issue....

rikvdkleij commented 5 years ago

It's a bug in stack 2.

When I do stack build intero with stack 1.9.3 the build just works.

rikvdkleij commented 5 years ago

I do not what is going in stack 2 but it can also not find intero when it's build..

rik@maxwell:~/projects/quicksort$ /home/rik/.local/bin/stack.old exec -- which intero
/home/rik/projects/quicksort/.stack-work/install/x86_64-linux-tinfo6/lts-13.25/8.6.5/bin/intero
rik@maxwell:~/projects/quicksort$ /home/rik/.local/bin/stack exec -- which intero
rikvdkleij commented 5 years ago

I think I have to speed up a new release without intero.

sir4ur0n commented 5 years ago

Just reproduced on my Windows machine:

9:11 PM [global-stack-repl] Stack REPL could not be started within 30 seconds

9:11 PM [global-stack-repl] 'stty' is not recognized as an internal or external command,

9:11 PM [global-stack-repl] operable program or batch file.

9:11 PM [project-stack-repl-haskell:lib] Stack REPL could not be started within 30 seconds

9:11 PM [project-stack-repl-haskell:lib] 'stty' is not recognized as an internal or external command,

9:11 PM [project-stack-repl-haskell:lib] operable program or batch file.
rikvdkleij commented 5 years ago

Just released beta49 which does not depend on intero anymore, https://github.com/rikvdkleij/intellij-haskell/releases/tag/v1.0.0-beta49