rikvdkleij / intellij-haskell

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

New project not working (REPL couldn't be started) #628

Closed jord1e closed 3 years ago

jord1e commented 3 years ago

Hello,

Whenever i try to create a new project (Haskell module) i get the following messages in my event log:

20:37   REPL couldn't be started for target `test:exe:test-exe` due to: cannot satisfy -package test-0.1.0.0

20:37   Hoogle features can be enabled by menu option `Haskell`/`(Re)Build Hoogle database`

And GHCi doesn't work.

I am currently running version 1.0.0-beta84 (latest beta) and stack version 2.5.1 using IntelliJ 2020.3 RC.

When i restart the IDE the message doesn't appear anymore, but the entries in the Haskell GHCi menu are still grayed out.

afbeelding

Downloading the Hoogle database also isn't working:

C:\Users\...\AppData\Local\rikvdkleij\intellij-haskell\cache\lts-16\bin\hoogle.exe generate --local=C:\Users\<project>\.stack-work\install\232893ea\doc --local=C:\sr\snapshots\0a9902d4\doc --database=C:\Users\...\AppData\Local\rikvdkleij\intellij-haskell\cache\test\hoogle

Starting generate

hoogle.exe: C:\Users\<project>\.stack-work\install\232893ea\doc: getDirectoryContents:findFirstFile: does not exist (Het systeem kan het opgegeven pad niet vinden.)

I took a look at #620 and #627 but they don't seem to be related. Am i missing something?

jord1e commented 3 years ago

Found it, the solution is adding a run configuration:

afbeelding

Thank you for making this plugin.