Tuesday, June 10, 2014

EclipseFP 2.6.0 released!

It's my pleasure to announce the release of EclipseFP 2.6.0. EclipseFP is a set of Eclipse plugins for Haskell development.
The full release notes can be found here. Of particular interest is :

  • Support for cabal 1.18 sandboxes
  • Worksheet for live programming (like GHCi expressions but automatically refreshed on save)
As usual, just install by pointing your Eclipse to http://eclipsefp.sf.net/.

Happy Haskell Hacking!


8 comments:

bach74 said...

Great news! Thanks!

Vagif Verdi said...

Hi, i'm trying to install eclipsefp.

Ubuntu 14.04, ghc 7.6.3, cabal-install 1.20.

I did it with a fresh .cabal and .ghc folders. Nothing elase was installed.

After restarting eclipse it started doenloading and building haskell libs, and stopped with this error:

Cabal==1.16.0/installed-c6e..., SourceGraph => Cabal<1.7)
rejecting: SourceGraph-0.2, 0.1 (conflict: buildwrapper =>
Cabal==1.16.0/installed-c6e..., SourceGraph => Cabal<1.5)
Backjump limit reached (change with --max-backjumps).

Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.

Lemao said...

How do I import an existing cabal project?

JP Moresmau said...

Lemao: if you have a cabal sdist file, you can choose import -> Haskell -> Cabal Package as Project. Otherwise you can just copy your project in your workspace, and go NEw -> Haskell Project, and enter the name. EclipseFP will not overwrite any existing file so will use your existing Cabal file and all your sources.

Lemao said...

That works. I now get the following error even though I have already added a GHC implementation (/usr/local/Cellar/ghc/7.8.2_2/bin).

cabal: The program 'ghc' version >=6.4 is required but it could not be found.

FYI: This is OSX with Brew installed GHC.

JP Moresmau said...

See http://sourceforge.net/p/eclipsefp/mailman/message/32501843/ for example. This is a PATH issue, usually. See also the github issue tracker for related PATH issues and solutions.

Robert Prije said...

I'm having the same problem as Vagif Verdi.

I kept getting errors from within EclipseFP and started resorting to installing things from the commandline. I got around one of these (hoogle vs scion-browser) by specifying both to cabal-install. The same didn't work for sourcegraph:

$ cabal install hoogle scion-browser sourcegraph --max-backjumps=10000
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: hoogle-4.2.34/installed-779... (user goal)
trying: scion-browser-0.3.3/installed-236... (user goal)
next goal: SourceGraph (user goal)
rejecting: SourceGraph-0.7.0.6 (conflict: scion-browser =>
Cabal==1.14.0/installed-bcd..., SourceGraph => Cabal>=1.18.0 && <1.21)
rejecting: SourceGraph-0.7.0.5, 0.7.0.4, 0.7.0.3, 0.7.0.2 (conflict: hoogle =>
haskell-src-exts==1.15.0.1/installed-b93..., SourceGraph =>
haskell-src-exts>=1.5.0 && <1.14.0)
rejecting: SourceGraph-0.7.0.1, 0.7.0.0 (conflict: scion-browser =>
Cabal==1.14.0/installed-bcd..., SourceGraph => Cabal>=1.8 && <1.11)
rejecting: SourceGraph-0.6.1.1, 0.6.0.2, 0.6.0.1, 0.6.0.0 (conflict:
scion-browser => Cabal==1.14.0/installed-bcd..., SourceGraph => Cabal>=1.8 &&
<1.9)
rejecting: SourceGraph-0.5.5.0, 0.5.2.0, 0.5.1.0, 0.5.0.0 (conflict:
scion-browser => Cabal==1.14.0/installed-bcd..., SourceGraph => Cabal>=1.6 &&
<1.7)
rejecting: SourceGraph-0.3 (conflict: scion-browser =>
Cabal==1.14.0/installed-bcd..., SourceGraph => Cabal<1.7)
rejecting: SourceGraph-0.2, 0.1 (conflict: scion-browser =>
Cabal==1.14.0/installed-bcd..., SourceGraph => Cabal<1.5)
Backjump limit reached (change with --max-backjumps).


As you can see, increasing max-backjumps doesn't appear to help.

Robert Prije said...

Never mind. I figured this out: I removed all my user state (~/.eclipse, my eclipse workspace, ~/.cabal, ~/.ghc); removed my Debian stable installation of ghc and cabal; deleted some old nixpkg versions of ghc and cabal I had lying around; and then installed the latest haskell platform. Everything works fantastically now. Thanks JP. This is pretty pleasant to work with.