hoogle search fails (Windows 7)

Help
Anonymous
2012-01-15
2012-12-06

  • Anonymous
    2012-01-15

    hoogle search is failing on Windows 7. hoogle search works on my (non-Eclipse) command line, but in EclipseFP, the results pane is always blank (even after "downloading data" stopped failing.)

    The Console just shows my searches and no results:
       
        >> {"filepath":"C:\\data\\projects\\haskell\\.metadata\\.plugins\\net.sf.eclipsefp.haskell.browser\\scion-browser-0.2-dbs\\local.db","command":"load-local-db","rebuild":true}
        "ok"
        >> {"new-db":"_all","command":"set-current-db"}
        "ok"
        >> {"module":"","command":"get-modules"}
        >> {"filepath":"C:\\data\\projects\\haskell\\.metadata\\.plugins\\net.sf.eclipsefp.haskell.browser\\scion-browser-0.2-dbs\\hackage.db","command":"load-hackage-db","rebuild":false}
        "ok"
        >> {"module":"Prelude","command":"get-declarations"}
        >> {"path":"C:\\Program Files (x86)\\Haskell\\bin\\hoogle.exe","command":"extra-hoogle-path"}
        "ok"
        >> {"command":"hoogle-check"}
        true
        >> {"new-db":"_all","command":"set-current-db"}
        "ok"
        >> {"query":"'a'","command":"hoogle-query"}
        >> {"new-db":"_all","command":"set-current-db"}
        "ok"
        >> {"query":"'a'","command":"hoogle-query"}
        >> {"new-db":"_all","command":"set-current-db"}
        "ok"
        >> {"query":"b","command":"hoogle-query"}
        >> {"new-db":"_all","command":"set-current-db"}
        >> {"new-db":"_all","command":"set-current-db"}
       

     
  • rwking
    rwking
    2012-01-15

    Use Cabal to pick up scion-browser v 0.2.3 as described in my problem report: https://sourceforge.net/projects/eclipsefp/forums/forum/371922/topic/4946199.   With that fix and Eclipse restarts and reboots intermixed with toggling of the "Gather information from Hackage" checkbox  I now have local hoogle searches working in Eclipse.  I haven't gotten Hackage searches to work reliably yet.

     

  • Anonymous
    2012-01-15

    Perfect, thanks!

    For others' reference, I did experience this:

    network-2.3.0.8 failed during the configure step. The exception was:
    ExitFailure 1
    scion-browser-0.2.3 depends on network-2.3.0.8 which failed to install.
    

    which was due to

    configure: error: no acceptable C compiler found in $PATH
    See `config.log' for more details.
    cabal.exe: Error: some packages failed to install:
    network-2.3.0.8 failed during the configure step. The exception was:
    ExitFailure 1
    

    which was due to gcc not being on my path (???), which I fixed by explicitly adding
    `C:\Program Files (x86)\Haskell Platform\2011.4.0.0\mingw\bin` to my PATH

    I still have trouble building scion-browser, though

    Loading package network-2.3.0.8 ... linking ... ghc.exe: C:\Program Files (x86)\Haskell\network-2.3.0.8\ghc-7.0.4\HSnetwork-2.3.0.8.o: unknown symbol `_acceptNewSock'
    

    I think I may have gotten myself in trouble by running

    cabal install  --global --upgrade
    

    which upgraded a few packages, perhaps to unstable versions.

    That _acceptNewSock error has been mentioned before:

    http://www.haskell.org/pipermail/haskell-cafe/2011-November/096838.html

    Forcing an older version of network doesn't seems to help

    cabal install --global  network-2.3.0.2 --reinstall
    ghc-pkg unregister HTTP-4000.2.2
    ghc-pkg unregister network-2.3.0.8
    $ ghc-pkg unregister HTTP-4000.1.2
    $ ghc-pkg unregister network-2.3.0.5
    

    Now I can install scion-browser-0.2.3

    cabal install --global scion-browser-0.2.3 --reinstall
    

    but same errors about _acceptNewSock…

     

  • Anonymous
    2012-01-15

    I can't reinstall scion-browser-0.2.1 now (same error), so obviously I broke my Haskell install. (A rather common occurence for me.) I'll try to fix that and then return to scion-browser.

    Thanks for the pointer to scion-browser-0.2.3, though.