-
Notifications
You must be signed in to change notification settings - Fork 12
Conversation
@elfenlaid Have you managed to make it work? With this version, I only got "Connecting...", and not a single other message from LT. My config dffers from yours slightly: |
@cblp yeah, totally what I get before fix, there might be some sort of a hint in console |
@elfenlaid Before your patch I had got some errors about base==4.6 from cabal sandbox. Now I have cleanly updated via git the plugin directory. When I press Cmd+Enter at any line, all I can see in console is "Connecting...", and no errors. CPU fan hinted me that something is happening. In the process top there was some ghc's munching my CPU. When I killed one of them, I got in LT console:
|
It seems that cabal is compiling the world in a sandbox. |
@cblp Actually you can manually launch cabal in light-haskell directory via I haven't encountered any build errors aaand |
Patch seems sensible, and compiles for me on 7.8. I'm pretty sure this will break things for people who are still on 7.6, though. It might be that we can relax the constraints, but I worry that |
You can use CPP to compile with different compilers. |
I'm hoping we can avoid preprocessor directives, but it really depends on whether there's a version of I can't test any of this at the moment, since my systems have been purged of 7.6, and even CPP is not powerful enough to install another compiler on my computer -- but if none of the other devs have the old version, I'll try and give it a go later. |
So sorry for == sign in base dependency, I would be more careful next time.
|
@elfenlaid just commit and push in this branch, pull request will be updated automatically. |
Well, but it's still unknown could 7.6 ghc build it or not |
Hi, thanks for working on this! I've tried building on GHC 7.6 using travis, here's the log for the (failing) build with the changes from this branch applied. However, the travis build also fails with GHC 7.8, even though I can build it fine locally. If you want pull request to my repo with travis set up, I can give you those. I'll also try and get travis support merged (#49) into the main repo so we can test changes more easily. |
You can now test this using travis yourself:
|
Turns out that's happy, who was responsible for build error at travis, so I'm updated travis config (actually "borrowed" one from lenses) with happy fix. |
Awesome! ✨ Thanks for this. I've released 0.2.7 which now supports ghc 7.6 & 7.8 thanks to you. |
So, current state of plugin emits a bunch of errors on "Connecting.." stage:
Resolving dependencies...
Configuring light-haskell-0.2.6...
cabal: At least the following dependencies are missing:
aeson ==0.7.,
base ==4.6.,
ghc-mod ==3.1.,
network ==2.4.,
process ==1.1.,
stylish-haskell ==0.5.,
text ==1.1.*
My configs:
MAC OS X 10.9.4
The Glorious Glasgow Haskell Compilation System, version 7.8.2
cabal-install version 1.20.0.3
I'm definitely not a specialist in either haskell or light table but it seems to solve issue :)