Skip to content
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

Dependency on ghc-mod causes Sublime to not start after modal dialogue #1

Closed
AaronFriel opened this issue Aug 11, 2012 · 8 comments
Closed

Comments

@AaronFriel
Copy link

This is basically never correct behavior for a plugin to prevent the application from running. Because Hackage is down, I can't install ghc-mod, and because Sublime Haskell was automatically updated to have this dependency, I now have to figure out how to manually uninstall it so I can continue writing code. ._.

@bhadra
Copy link

bhadra commented Aug 12, 2012

I guess you have already figured it out. Anyway here are my suggestions:

  1. Copy SublimeHaskell.sublime-settings to user directory.
  2. Edit SublimeHaskell.sublime-settings and set "enable_ghc_mod" to false.
  3. Restart Sublime Text.

@nh2
Copy link
Member

nh2 commented Sep 19, 2012

@AaronFriel Did you experience this before 8f56bce?

Because that commit added the note about enable_ghc_mod to the popup.

@jack-pappas
Copy link

I installed Sublime Text 2 and SublimeHaskell yesterday, and got this same error (with the note about enable_ghc_mod). I thought just installing ghc-mod would fix it, so I ran a cabal install ghc-mod from the command prompt. Now, when I try to launch Sublime Text it doesn't load and the error popup doesn't appear either (so I guess it's silently crashing); setting enable_ghc_mod to false in the settings file doesn't do anything.

Also, the README.md in the package folder lists the data-aeson package as a requirement. Shouldn't it be aeson instead? (It contains the Data.Aeson modules.)

EDIT : After my initial post, I noticed there was a zombie process of Sublime Text running. I killed it, and now Sublime Text works again (without the error popup, now that I have ghc_mod installed). So, it appears that all I needed to do from the beginning was install the ghc-mod package.

@jrgarcia
Copy link

I agree. It's pretty bad that I have to manually configure this package just to start the application.

@nh2 nh2 closed this as completed in 9202808 Jan 13, 2013
@faroncoder
Copy link

Solved by performing this:

$: sudo apt-get install cabal-install
$: cabal update
$: cabal install ghc-mod

@mooreniemi
Copy link

where do you need to install it, faroncoder? where is sublimehaskell looking for it, i mean

@nh2
Copy link
Member

nh2 commented Sep 27, 2014

@mooreniemi By default on Linux, cabal installs it into /home/yourusername/.cabal/bin.

You need to put that path into the add_to_PATH setting, like this:

"add_to_PATH":  ["/home/niklas/.cabal/bin"]

@mooreniemi
Copy link

I'm on Yosemite and when I do which ghc-mod I see ./.cabal-sandbox/bin/ghc-mod (makes sense, I am trying to be in my sandbox). When I switch that to the absolute path, I'm all good. :) Just FYI to other folks viewing this.

bscottm added a commit that referenced this issue Apr 13, 2017
Provide optional override for stack configs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants