EclipseFP fails to rebuild database OSX+Win7

Help
2012-02-01
2012-12-06
  • Anthony Percy
    Anthony Percy
    2012-02-01

    Hi all, I have loaded EclipseFp on a OSX ( latest) with 2011.4.0.0 Haskell Platform and it fails after loading scion-browser with a "compression unknown" error when rebuilding the database
    I then tried it under windows 7 and I get the same error!
    I can see that this is a known problem so is someone going to fix it??  :-)  I can see someone has played with the dependencies to get this to work but that is hack and not a fix… Could someone release a scion-broswer with correct dependicies?
    I am trying to learn Haskell and this is not a good start….. If I could help I would but its out of my league at the moment..

    Haskell Newbie - Anthony

     
  • JP Moresmau
    JP Moresmau
    2012-02-01

    The compression unknown has nothing to do with dependencies. Don' mix up runtime issues with building issues that only occur on a different version of the Haskell compiler that you have. If you see a compression error that means scion-browser has been built. Version 0.2.5 on hackage should fix that compression unknown error.

     
  • Anthony Percy
    Anthony Percy
    2012-02-01

    Hi there, I checked and my existing version of scion-browser is 0.2.5….
    Anyway I downloaded the hackage version as you suggest, it compiled fine with "cabal install".
    I check the eclipse prefs/helper execs and the scion-browser had the same path to the new scion-browser  file.
    But I still get the same error message as before…
    What do you think??
    Should I be using a certain version of ghc for this to work???

    regards

    AP

     
  • JP Moresmau
    JP Moresmau
    2012-02-01

    No, the version of GHC is irrelevant once it's built. Make sure the executable is the right version by running scion-browser -version using the proper path that you see in the haskell preferences.

     
  • Anthony Percy
    Anthony Percy
    2012-02-01

    Thanks for the reply;
    Its was definitely 0.2.5…
    I managed to get scion-browser version 0.2.3 working following akaspins email and its not complaining anymore . The problem I now have it when I try to execute a simple prog like;

    module Main where

    main::IO()
    main = putStrLn "Hello, World!"

    I get in console window;

    GHCi, version 7.0.4: http://www.haskell.org/ghc/  :? for help
    Loading package ghc-prim … linking … done.
    Loading package integer-gmp … linking … done.
    Loading package base … linking … done.
    Loading package ffi-1.0 … linking … done.
    Warning: ignoring unrecognised input `"/Users/anthcp/Documents/workspace/test/src/Main.hs"'
    *** these below are my inputs *****
    Prelude> :l /Users/anthcp/Documents/workspace/test/src/Main.hs
    Compiling Main             ( /Users/anthcp/Documents/workspace/test/src/Main.hs, interpreted )
    Ok, modules loaded: Main.
    *Main> main
    Hello, World!

    But if I do a :l "filename as above" and main as shown above in the console window it works fine…?
    However my main.hs is under the src folder in the explorer….
    I must be doing something fundamentally wrong I think. in eclipseFP. Any ideas??

    regards

    AP

     
  • Aivar Annamaa
    Aivar Annamaa
    2012-02-01

    I think I have related problem. I have scion-browser version 0.2.5 and latest EclipseFP. Here's the error:

    eclipse.buildId=M20110909-1335
    java.version=1.7.0_01
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments:  -product org.eclipse.epp.package.jee.product -showlocation
    Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product -showlocation

    Error
    Wed Feb 01 16:29:57 EET 2012
    Error loading local database

    java.util.zip.ZipException: incorrect header check
    at java.util.zip.InflaterInputStream.read(Unknown Source)
    at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
    at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
    at sun.nio.cs.StreamDecoder.read(Unknown Source)
    at java.io.InputStreamReader.read(Unknown Source)
    at java.io.BufferedReader.fill(Unknown Source)
    at java.io.BufferedReader.readLine(Unknown Source)
    at java.io.BufferedReader.readLine(Unknown Source)
    at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.getALine(StreamBrowserServer.java:160)
    at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.sendAndReceiveOk(StreamBrowserServer.java:129)
    at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.loadLocalDatabaseInternal(StreamBrowserServer.java:185)
    at net.sf.eclipsefp.haskell.browser.BrowserServer.loadLocalDatabase(BrowserServer.java:91)
    at net.sf.eclipsefp.haskell.browser.BrowserPlugin.loadLocalDatabase(BrowserPlugin.java:239)
    at net.sf.eclipsefp.haskell.ui.internal.scion.ScionManager$BrowserLocalDatabaseRebuildJob.run(ScionManager.java:1349)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

     
  • JP Moresmau
    JP Moresmau
    2012-02-01

    Actually, 0.2.5 IS the problem, it's been released by the maintainer but is not compatible with EclipseFP 2.2.1. So either revert to 0.2.3, or build EclipseFP from source… I'll try to release EclipseFP soon.

     
  • JP Moresmau
    JP Moresmau
    2012-02-01

    EclipseFP 2.2.2 and buildwrapper 0.4.0 released, they should work with scion-browser 0.2.5.

     
  • Aivar Annamaa
    Aivar Annamaa
    2012-02-03

    I didn't read carefully and updated to scion-browser 0.2.6 and now I have almost the same problem. I have scion-browser 0.2.6, buildwrapper 0.4.1 and EclipseFP 2.2.2 and I get following error when opening Eclipse on fresh workspace:

    eclipse.buildId=M20110909-1335
    java.version=1.7.0_01
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments:  -product org.eclipse.epp.package.jee.product -showlocation
    Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product -showlocation

    Error
    Fri Feb 03 13:30:00 EET 2012
    Error reading answer from Browser Server

    java.io.EOFException: Unexpected end of ZLIB input stream
    at java.util.zip.InflaterInputStream.fill(Unknown Source)
    at java.util.zip.InflaterInputStream.read(Unknown Source)
    at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
    at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
    at sun.nio.cs.StreamDecoder.read(Unknown Source)
    at java.io.InputStreamReader.read(Unknown Source)
    at java.io.BufferedReader.fill(Unknown Source)
    at java.io.BufferedReader.readLine(Unknown Source)
    at java.io.BufferedReader.readLine(Unknown Source)
    at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.getALine(StreamBrowserServer.java:160)
    at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.sendAndReceiveOk(StreamBrowserServer.java:129)
    at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.loadLocalDatabaseInternal(StreamBrowserServer.java:185)
    at net.sf.eclipsefp.haskell.browser.BrowserServer.loadLocalDatabase(BrowserServer.java:90)
    at net.sf.eclipsefp.haskell.browser.BrowserPlugin.loadLocalDatabase(BrowserPlugin.java:239)
    at net.sf.eclipsefp.haskell.ui.internal.scion.ScionManager$BrowserLocalDatabaseRebuildJob.run(ScionManager.java:1356)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    The tail of "shared scion-browser instance" console is:

    Creating new connection to hackage.haskell.org
    Received:
    HTTP/1.1 200 OK

    Date: Fri, 03 Feb 2012 11:29:52 GMT

    Server: Apache/2.2.9 (Debian) mod_python/3.3.1 Python/2.5.2

    Last-Modified: Sun, 27 Nov 2011 21:01:50 GMT

    ETag: "1f8a510-40cf-4b2bdb1e54b80"

    Accept-Ranges: bytes

    Content-Length: 16591

    Vary: Accept-Encoding

    Content-Type: text/plain

    Download http://hackage.haskell.org/packages/archive/aeson/0.6.0.0/doc/html/aeson.txt
    Sending:
    GET /packages/archive/aeson/0.6.0.0/doc/html/aeson.txt HTTP/1.1

    Host: hackage.haskell.org

    Content-Length: 0

    User-Agent: hs-HTTP-4000.0.9

    Creating new connection to hackage.haskell.org
    Received:
    HTTP/1.1 200 OK

    Date: Fri, 03 Feb 2012 11:29:54 GMT

    Server: Apache/2.2.9 (Debian) mod_python/3.3.1 Python/2.5.2

    Last-Modified: Fri, 03 Feb 2012 02:35:28 GMT

    ETag: "1fd6923-78e0-4b8062a6ddc00"

    Accept-Ranges: bytes

    Content-Length: 30944

    Vary: Accept-Encoding

    Content-Type: text/plain

    scion-browser.exe: TyParen NoDoc (TyVar NoDoc (Ident NoDoc "m"))

     
  • Aivar Annamaa
    Aivar Annamaa
    2012-02-03

    I went back to scion-browser 0.2.5 and got still the same error.

     
  • JP Moresmau
    JP Moresmau
    2012-02-03

    No, things have changed, we actually **see** the error in the output now:
    scion-browser.exe: TyParen NoDoc (TyVar NoDoc (Ident NoDoc "m"))
    So the haskell code is failing, hence the message that no compressed data has been read: we failed before we sent back any data.  It seems to be an issue parsing the result from the call to Hackage. I'd say this is for Alejandro (the scion-browser maintainer) to look at… Maybe you could open an issue on his github repo.

     
  • yoki
    yoki
    2012-02-22

    Hi,

    I have the same error.

    eclipse build id: 20110916-0149
    buildwrapper: 0.4.1
    scion-browser: 0.2.6
    eclipsefp: 2.2.2