rikvdkleij / intellij-haskell

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

Cannot create Haskell Modules #704

Open alexpartsch opened 3 weeks ago

alexpartsch commented 3 weeks ago

I've freshly installed the Haskell plugin to my IntelliJ IDEA 2024.2.3 (Ultimate Edition) - Build #IU-242.23339.11, built on September 25, 2024 on MacOS Sequoia 15.0.1 (24A348), and tried to create a new Haskell Module.

After selecting a folder, giving a module name and clicking create I got immediately an error popup stating:

Error adding module to project: Couldn't create Haskell module due to failure retrieving or parsing Cabal file for package path PATH-TO-FOLDER

*PATH-TO-FOLDER here to be replaced with the folder I've selected for the module

I got two errors in the IntelliJ activity:

Cannot run program "/usr/local/bin/stack" (in directory "/Users/USERNAME"): error=2, No such file or directory

(USERNAME) here to be replaced with my MacOS system users' name.

Executing `/usr/local/bin/stack --numeric-version` failed: /usr/local/bin/stack --numeric-version:

Also restarting IntellIJ didn't work.