-
Notifications
You must be signed in to change notification settings - Fork 347
Unable to load Cabal project into Emacs Haskell-Mode #631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
My haskell configuration file can be found here: https://gist.github.com/galderz/74b2558f4fb1ddc97154 And finally, here are my
Any ideas what might be the problem or how to debug it further? The process log does not seem to give any clues on why it stopped :((( |
One final detail: I'm using a master build of |
Can you run |
Nothing stands out to me here so most likely there's an interaction problem with some other plugin. Can you turn everything else off and see if you can still replicate the problem? For example, others have had issues with company mode + haskell-process in the past. If you're unable to reproduce the problem with nothing but haskell-mode enabled then just bisect your config until you find the culprit. |
Thanks @cocreature and @lukehoersten for the quick replies! :) I've tried to run As you can see in the output, it goes straight back to the command line prompt after running very shortly.
Could it be cos I marked it to be a library instead of an executable? |
I've tried another cabal project and it does indeed open an interpreter session... that might be the reason..., though I don't understand why it does not open an interpreter session in command line, could it be cos no main module has been given? |
You need to have exposed-modules if you have a library. I fixed this bug in cabal a while ago but there has not been a release since. |
Open repl even if there are no exposed modules: haskell/cabal@ddbd26c. |
So this one seems to be (already fixed) bug in cabal. Should we do something in |
I think |
I've added I'm still seeing the If it's not related, I'll close the issue. Thanks a million for your help! Just getting started with Emacs + Haskell and I've had my fair share of bumps :((( |
iirc |
Yeah, it seems related to that... the number of options and interaction between different modules makes Emacs + Haskell quite difficult to get right. With so many options, it takes a while to get an env up :( I'll close for now and open an issue in ghc-mod to figure out what's up... Thanks again for all your help! |
@galderz by the way, if you use ghc-mod from master, then you need to redirect its output. Check this out DanielG/ghc-mod#454 |
I'm struggling to get Haskell-Mode working with a Cabal project.... :(
If I run with a simple non-cabal project, it all works fine. But after executing
cabal init
, answering the questions, then from Emacs callingC-c C-l
, I get the message that the Haskell process has died. Here's the output of the process log:My cabal file looks like this:
As a result of this, I think my indention and other modes are not working correctly because after creating
src/Week1.hs
file like this and saving it, the editor says there's an error in first line and at the bottom I get an indentation failed message like this(Haskell failed Ind company)
Any ideas what's the problem here?
Here's some version information:
The text was updated successfully, but these errors were encountered: