Leksah system module browser is empty

I just installed lexah following the manual. The manual says that I must rech ghc-pkg before starting Leksah for the first time, or I can see the module’s browser empty in the system area. My problem is that this is what I see, even though I repeated it.

Basically, my installation process was as follows: Leksah install -> ghc-pkg recache -> starting with Leksah. Then I get to a screen that tells me that Leksah will collect and download metadata for my installed packages and warns me that it can take a long time. Using the recommended defaults, I see a progress bar for about five seconds, and then Leksah starts. These are the default values:

  • There are no paths for haskell package sources.
  • URL for metadata pre-assembly: http://www.leksah.org .
  • Extract, then create.
  • Server Port: 11111.
  • The final server with the last connection.

Reading the manual, it says that the location of the sources of the haskell package can be omitted (which was the default) if I just wanted to test, and the place could be filled later. This leads me to believe that the missing Haskell source paths are a problem, but then I don’t know where my haskell sources are. They don't seem to be in the Haskell platform folder. Does anyone know how to solve this?

Other things that may help:

  • I have grep in my path as well as wget, as indicated in the manual.
  • The ghc-pkg recache command takes about a second. I do not know if it will be more.
  • Performing the rebuild metadata, I get a console with a lot of numbers from 0 to 1 for update_toolbar, and then a lot of "start server" β†’ "metadata collector has nothing to do" β†’ "metadata collection is complete".

my setup:

  • win xp sp3
  • ghc 6.12.3
  • Leksah 0.8.0.6
  • GNU grep 2.5.4
  • GNU wget 1.5.3.1

I will be glad to provide additional information. Thanks.

+4
source share
1 answer

In the settings under the metadata you need to put the path to the package sources in the section "Paths where the Haskell source for the package can be found", they should be under your home path in the .cabal directory. For me it was "/home/korcan/.cabal" and then restarting Leksah, if that doesn't work, you may need to rebuild the system data.

I think I had problems getting this to work, unless I re-installed Leksah and it asks you to add these settings for the first time.

EDIT: ok, I just read that you are using XP, it will be somewhere in your Docs and Settings directory, in Windows 7 for me it is in C: \ Users \ username \ AppData \ Roaming \ cabal

+2
source

Source: https://habr.com/ru/post/1339103/


All Articles