You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cabal build succeeds but SublimeHaskell build fails #158
Issuing cabal build works of from command line, but the build system used by SublimeHaskell fails with:
Behaviours.hs: line 4, column 1:
Too many parameters for class `ToContainer'
(Use -XMultiParamTypeClasses to allow multi-parameter classes)
In the class declaration for `ToContainer'
If I use "auto_build_mode": "normal" instead of "normal_then_warnings" everything works fine.
Hello, this is output grabbed from Sublime's console. Sublime Haskell: running build commands: [['cabal', 'build']]
Is this what you were looking for ?
Hmm, this is basically what SublimeHaskell calls; can you check that your command line uses the same cabal and GHC versions/binaries that SublimeHaskell uses (e.g. as set in the add_to_PATH setting)?
Build FAILED
REMAINING STDERR:
cabal: The program 'ghc' version >=6.4 is required but it could not be found.
Warning: Couldn't reinstall some add-source dependencies.
cabal: The program 'ghc' version >=6.4 is required but it could not be found.
My add_to_PATH has ["./.cabal-sandbox/bin/", "/Users/<user>/.cabal/bin"].
I'm having the same problem as @radustoenescu ("normal" mode works, but "normal-then-warnings" fails with ghc: no input files). Unlike radustoenescu however, when I tried
Activity
nh2 commentedon Jul 29, 2014
Hi, can you check that your Sublime is actually building with cabal and not ghc-mod? If you are using ghc-mod, it might ignore your cabal file.
radustoenescu commentedon Jul 30, 2014
Hello, this is output grabbed from Sublime's console.
Sublime Haskell: running build commands: [['cabal', 'build']]Is this what you were looking for ?
nh2 commentedon Jul 30, 2014
Yes. Can you check what
cabal build --ghc-options="-fforce-recomp -Wall -fno-code"in the command line says?radustoenescu commentedon Jul 31, 2014
I did this:
cabal clean && cabal configure && "your above mentioned command"and the build succeeds, there are plenty of warnings but no errors.
nh2 commentedon Jul 31, 2014
Hmm, this is basically what SublimeHaskell calls; can you check that your command line uses the same cabal and GHC versions/binaries that SublimeHaskell uses (e.g. as set in the
add_to_PATHsetting)?chamini2 commentedon Oct 2, 2014
I have some problems too with a project I'm developing in a cabal-sandbox, the
.cabalhas this:But when hitting
⌘SSublimeHaskell reports:My
add_to_PATHhas["./.cabal-sandbox/bin/", "/Users/<user>/.cabal/bin"].nh2 commentedon Oct 3, 2014
@chamini2 Do you have GHC in your system path? Otherwise, try adding the directory that contains
ghctoadd_to_PATHas well.chamini2 commentedon Oct 3, 2014
Well, that did it. Thank you! It was in
/usr/local/bin/ghcbecause I installed it withbrew install ghc.nh2 commentedon Oct 3, 2014
Closing until this doesn't work for somebody.
crockeea commentedon Nov 13, 2014
I'm having the same problem as @radustoenescu ("normal" mode works, but "normal-then-warnings" fails with
ghc: no input files). Unlike radustoenescu however, when I triedat the console, I get the same error:
ghc: no input files. Is this somehow related to this problem?