"Scion and Cabal" menu does ...

Help
EvgenijM86
2010-10-13
2012-12-06
  • EvgenijM86
    EvgenijM86
    2010-10-13

    1. Setting cabal to /home/evgenij/.cabal/bin/ does nothing - it does not detect (no version shows up) and when I give it a name and press ok nothing is added.
    2. Setting scion (internal or external) and pressing OK does not save that setting - when I reopen "Scion and Cabal" menu again it is empty. Autodetecting scion works - it auto detects to /home/evgenij/.cabal/bin, but again - it does not save it.

    My config:

    EclipseFP Haskell 2.0.1
    GHC 6.12.3 (I can correctly set it in "Haskell Implementation" menu, but browsing libraries does nothing, probably because of scion not working)
    cabal-install version 0.8.2
    using version 1.8.0.6 of the Cabal library
    Eclipse: Helios Service Release 1 (Eclipse IDE for C/C++ Developers)
    scion-0.1.0.5 (downloaded and compiled from - git://github.com/JPMoresmau/scion.git) + internal that comes (or not?) with EclipseFP.
    OS: Linux, Kubuntu 10.10

     
  • EvgenijM86
    EvgenijM86
    2010-10-13

    So, basicaly I cannot set scion server and cabal in "Scion and Cabal" menu. And no syntax highlighting works.

     
  • JP Moresmau
    JP Moresmau
    2010-10-13

    Can you attach or send me the eclipse log file? There should be indications about what's going wrong. And yes, there is a scion builtin EclipseFP so if you should the built in server it should build it under the covers and use that. Check also the Eclipse Error view.

     
  • EvgenijM86
    EvgenijM86
    2010-10-13

    I just did a reinstall of EclipseFP and here is the Log:

    !SESSION 2010-10-14 00:37:50.446 -----------------------------------------------
    eclipse.buildId=M20100909-0800
    java.version=1.6.0_20
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=ru_RU
    Framework arguments:  -product org.eclipse.epp.package.cpp.product
    Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product
    !ENTRY net.sf.eclipsefp.haskell.ui 1 0 2010-10-14 00:38:01.888
    !MESSAGE cabal executable: /home/evgenij/.cabal/bin/cabal
    !ENTRY net.sf.eclipsefp.haskell.ui 1 0 2010-10-14 00:38:01.906
    !MESSAGE cabal-install version 0.8.2
    !ENTRY net.sf.eclipsefp.haskell.ui 1 0 2010-10-14 00:38:01.907
    !MESSAGE Cabal library version 1.8.0.6
    !ENTRY net.sf.eclipsefp.haskell.ui 4 0 2010-10-14 00:38:01.958
    !MESSAGE Install failed for scion server. Output was: 
    cabal: ghc version >=6.4 is required but it could not be found.
    !ENTRY net.sf.eclipsefp.haskell.ui 4 0 2010-10-14 00:38:01.959
    !MESSAGE Built-in Scion server executable not found (Looking for /home/evgenij/eclipse/workspaces/first/.metadata/.plugins/net.sf.eclipsefp.haskell.scion.client/scion-0.1.0.5/dist/build/scion-server/scion-server). Scion will not be available.
    

    It looks like it remembered what I set in "Haskell implementation" despite reinstall. My GHC is installed in /home/evgenij/ghc-6.12.3/bin/ and it identifies it correctly as 6.12.3 in that menu. It is also set in my path and I can invoke ghc, ghc-pkg and so on in command line. But judging by the log it does not find it, which is stranger, because I already set it in that menu.

     
  • EvgenijM86
    EvgenijM86
    2010-10-13

    That log is from "Error Log" view. Right click -> Open Log opens it as ".log" file. Is this correct log or you needed something else?

     
  • Scott Michel
    Scott Michel
    2010-10-19

    /home/evgenij/eclipse/workspaces/first/.metadata/.plugins/net.sf.eclipsefp.haskell.scion.client/scion-0.1.0.5

    This directory exists?

    You could "rm -rf" /home/evgenij/eclipse/workspaces/first/.metadata/.plugins/net.sf.eclipsefp.haskell.scion.client/. The built-in client gets rebuilt because EclipseFP detects that the directory doesn't exist.

    When you upgrade, preferences are not wiped out or altered. This is a feature, not a bug.

     
  • EvgenijM86
    EvgenijM86
    2010-10-21

    I tried to delete it and Error Log output is:

    !SESSION 2010-10-21 10:42:44.221 -----------------------------------------------
    eclipse.buildId=M20100909-0800
    java.version=1.6.0_20
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=ru_RU
    Framework arguments:  -product org.eclipse.epp.package.cpp.product
    Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product
    !ENTRY net.sf.eclipsefp.haskell.ui 1 0 2010-10-21 10:42:53.219
    !MESSAGE cabal executable: /home/evgenij/.cabal/bin/cabal
    !ENTRY net.sf.eclipsefp.haskell.ui 1 0 2010-10-21 10:42:53.234
    !MESSAGE cabal-install version 0.8.2
    !ENTRY net.sf.eclipsefp.haskell.ui 1 0 2010-10-21 10:42:53.235
    !MESSAGE Cabal library version 1.8.0.6
    !ENTRY net.sf.eclipsefp.haskell.ui 4 0 2010-10-21 10:42:53.271
    !MESSAGE Install failed for scion server. Output was: 
    cabal: ghc version >=6.4 is required but it could not be found.
    !ENTRY net.sf.eclipsefp.haskell.ui 4 0 2010-10-21 10:42:53.272
    !MESSAGE Built-in Scion server executable not found (Looking for /home/evgenij/eclipse/workspaces/first/.metadata/.plugins/net.sf.eclipsefp.haskell.scion.client/scion-0.1.0.5/dist/build/scion-server/scion-server). Scion will not be available.
    

    So, basically it cannot find my GHC install.
    I have a line in /etc/bashrc.bashrc
    PATH=$PATH:/home/evgenij/.cabal/bin:/home/evgenij/ghc-6.12.3/bin
    which should make it visible to any shell that is launched after X starts.

     
  • EvgenijM86
    EvgenijM86
    2010-10-21

    a typo:
    /etc/bashrc.bashrc -> /etc/bash.bashrc

     
  • I also downloaded and compiled Scion from JPMoresmau, because the current stable version does not compile with GHC 6.12 and only GHC 6.12 is supported under Mac OSX 10.6.

    Apparently the EclipseFP configuration dialogs depend on Scion. This includes the dialog that allows you to select a scion-server different from the on that is built-in. I got out of this double catch-22 situation by creating a symbolic link

    ~/workspaces/helios/.metadata/.plugins/net.sf.eclipsefp.haskell.scion.client/scion-0.1.0.5/dist/build/scion-server/scion-server -> ~/.cabal/bin/scion-server

    That is, I put the scion-server that I managed to build in the place where EclipseFP would expect it to appear as a result of its internal build process.