-
Notifications
You must be signed in to change notification settings - Fork 211
[ERROR] hie: panic! planPackages.mkPackage: Got non-unpacked package src! #1621
Comments
First test is to see, what is the output of As a work-around, you may check out the definition of a |
However,
Setting Error log again: |
Copying over the The pertinent bit seems to be:
Which seems odds, when you see this directly above:
|
Okay, following some of the comments from this issue thread: It turns out that in the binaries location of my And the top line of the log file is:
So I guess when it says
|
Yes, I meant the Is your Unfortunately, regarding loading the project into hie without the |
It just looks like (Notice the How do I specify Edit: seems to be
|
You could have switched to |
Okay, still not working but at least this seems this like progress. Sorry to pester you with all of this.
My cradle:
cabal:
- path: '/home/user/Projects/haskell-ide-engine/hie-plugin-api/Haskell'
component: 'lib:hie-plugin-api'
- path: '/home/user/Projects/haskell-ide-engine/test/dispatcher/'
component: 'haskell-ide-engine:dispatcher-test'
- path: '/home/user/Projects/haskell-ide-engine/test/functional/'
component: 'haskell-ide-engine:func-test'
- path: '/home/user/Projects/haskell-ide-engine/test/unit/'
component: 'haskell-ide-engine:unit-test'
- path: '/home/user/Projects/haskell-ide-engine/test/plugin-dispatcher/'
component: 'haskell-ide-engine:plugin-dispatcher-test'
- path: '/home/user/Projects/haskell-ide-engine/test/wrapper/'
component: 'haskell-ide-engine:wrapper-test'
- path: '/home/user/Projects/haskell-ide-engine/test/utils/'
component: 'haskell-ide-engine:hie-test-utils'
- path: '/home/user/Projects/haskell-ide-engine/app/MainHie.hs'
component: 'haskell-ide-engine:hie'
- path: '/home/user/Projects/haskell-ide-engine/app/HieWrapper.hs'
component: 'haskell-ide-engine:hie-wrapper'
- path: '/home/user/Projects/haskell-ide-engine/'
component: 'lib:haskell-ide-engine' |
Not a problem, I am glad if I can help! Please adapt the paths to your local project accordingly, e.g. cradle:
cabal:
- path: '/home/user/Projects/hasura.../src'
component: 'lib:hasura-hasql' this is an example! path is definitely incorrect and the component name might be, too! You can check the component by experimenting with |
🤦♂️ Okay so I was not supposed to literally copy-paste the How do I know how many of them I need? This appears to work:
I can see here And then in
The
|
You already got the gist of it! cradle:
cabal:
- path: '/home/user/Projects/hasura.../src-lib'
component: 'lib:graphql-engine'
- path: '/home/user/Projects/hasura.../src-exec'
component: 'exe:graphql-engine'
- path: '/home/user/Projects/hasura.../src-test'
component: 'test:graphql-engine-tests'
- path: '/home/user/Projects/hasura.../src-bench-cache'
component: 'bench:cache' Does this help? EDIT: if you happen to have multiple |
Oh, I think that might be a nix bug? Building from source might help. |
Build |
Yes, building haskell-ide-engine from source via something like |
IT WORKS!!! Thank you so much! 🙏 This is amazing ❤️ I am going to PR a section in the Hasura GraphQL Engine documentation about how to do all of this so that others might benefit too. |
One last thing if I may: Is it possible to cache the documentation information so that each time the project is loaded, HIE does not need to rebuild? It also seems to keep rebuilding the same symbols + documentation repeatedly (IE, I Hover a function, it pops up the documentation window and annotation for it, then I move my cursor off and back to it after a second and it rebuilds all of the project docs again, endlessly) |
Very glad to hear it! |
Looks like infinisil/all-hies#32 Seems like removing |
Sure, I just feel bad for creating so many issues/comments and taking up everyones time. Let me record a video with the verbose output of HIE streaming to the screen + upload it somewhere because I think that would make visualization & understanding the issue a lot easier. Edit: I also PRed this info into Hasura for others =D |
Hi, i am afraid that i am getting the same original error, with actual master in windows. Afaiu the issue was resolved using an explicit Searching the error msg in the I think the immediate cause that triggers the problem is to have a |
Opened issue upstream: DanielG/cabal-helper#99 |
Fixed upstream and integrated in hie with #1771 |
If anyone has ideas, I would be super grateful. I am attempting to learn Haskell for the first time, and without something like HIE to hold my hand a bit it is going to be a much more difficult task.
The process I went through was was:
all-hies
hie
is in my path at/home/user/.nix-profile/bin/hie
"languageServerHaskell.hieExecutablePath": "/home/user/.nix-profile/bin/hie"
However, when opening a Haskell file, I get this:
Looking at the debug log, I found:
The project I was attempting to use this with is
cabal.project
-based, if that helps any.https://github.com/hasura/graphql-engine/tree/master/server
I am going to try building from source rather than Nix a shot. Seems as though it will take a while but its the only idea I have left 🤷♂️
The text was updated successfully, but these errors were encountered: