Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-cradle confusion #118

Closed
mitchellwrosen opened this issue Dec 21, 2019 · 3 comments
Closed

Multi-cradle confusion #118

mitchellwrosen opened this issue Dec 21, 2019 · 3 comments

Comments

@mitchellwrosen
Copy link
Contributor

Hi, I'm trying out the multi-cradle support but am running into an issue.

Here's my hie.yaml for the https://github.com/unisonweb/unison repo:

cradle:
  stack:
    - path: "./parser-typechecker"
      component: "unison-parser-typechecker:lib"
    - path: "./unison-core"
      component: "unison-core:lib"

However, opening a file in either of these directories (with cwd = project root where hie.yaml is) doesn't seem to work:

ghcide-8.6.5: CradleError ExitSuccess ["Multi Cradle: No prefixes matched","pwd: .","filepath/Users/mitchell/haskell/unison","prefixes:","(\"./parser-typechecker\",Stack {component = Just \"unison-parser-typechecker:lib\"})","(\"./unison-core\",Stack {component = Just \"unison-core:lib\"})"]

I think it's failing because I don't have a cradle defined for .? (But I don't want one... just for the subdirs!)

Any advice would be greatly appreciated. Thanks :)

@mpickering
Copy link
Collaborator

ghcide does not support the multi-cradle (yet). Please raise an issue there.

@mitchellwrosen
Copy link
Contributor Author

Thanks, sorry for the noise.

@TomMD
Copy link

TomMD commented Jan 29, 2020

Forward pointer: this issue is on ghcide as https://github.com/digital-asset/ghcide/issues/113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants