Leksah does not show any modules

I installed Leksah 0.12.0.3 on Windows 8 in C:\Leksah and the latest Haskell platform in C:\HaskellPlatform .

I created a new workspace and package and added my own module (different from Main , which Leksah creates). I can import and use this new module in the main module, however Leksah does not show it in the right pane of the browser, no matter what I do - it only displays the main module. If I switch to System, this list is empty.

I tried:

  • reinstall Leksah and the Haskell platform;
  • running ghc-pkg recache in cmd running as admin;
  • put my workspace and package on the go without spaces.

However, no luck. Also, in the console that opens with Leksah, I see this when my workspace / package opens:

 Using default Yi configuration Warning: D:\Haskell\TestPackage\TestPackage.cabal: A package using section syntax must specify at least 'cabal-version: >= 1.2'. Now updating system metadata ... ***server start Bind 127.0.0.1:26411 Metadata collector has nothing to do Metadata collection has finished Now loading metadata ... Now updating workspace metadata ... Can't extract module C:\Users\Vlad\.leksah-0.12\metadata\TestPackage-1\Test.lksh e <command line>: cannot satisfy -package -db (use -v for more information) Finished >>>Info Changed!!! True 

In addition, under Configuration β†’ Edit prefs β†’ Metadata, β€œThe paths where helkel sources for packages can be found” is empty. Should I put something there, and if so, then what?

I do not know what to try. How can I make Lex work properly?

+4
source share
1 answer

I suggested someone suggest that your Lex should be compiled with the same version of GHC that you have on your system. I have not tried, but even if this is true, I think it is really stupid and shows that lexa may not be mature enough, if only not for my comfort. Not to mention that it can be easily detected and the user is notified.

So, I ended up using Eclipse FP , which works great.

+1
source

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


All Articles