-
Notifications
You must be signed in to change notification settings - Fork 63
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
silly question about none cradle #250
Comments
Sorry for the delay.
Indeed, that works for sure for all of the given examples, but I am not too sure about special cases such as spaces within the path. To avoid problems with yaml, the documentation just uses this variant.
It matched the
In that case it would throw an error |
thanks for the response. Since I've started asking stupid questions, I am going to follow up hoping you don't mind ? Maybe these could be useful in a wiki FAQ ? I have this hie.yaml in /home/teto/project:
When I run ghcide/hie-bios version 0.7.1 compiled by GHC 8.8.3 in the hie.yaml folder, it finds 31 cradles e.g.
1/ I thought it would pick the current one and stop there. Does this mean I can put a hie.yaml in subfolders and they will be picked up/override the one at the root ? I could not see mention of this in the README. 2/ hie-bios finds the cradle /home/teto/.cache/bazel/_bazel_teto/f3097620197e6c203645e1230d1ae88c/external/ghcide/ghcide-0.4.0/hie.yaml via the symlink /home/teto/project -> /home/teto/.cache/bazel/_bazel_teto . Since I've set ./. to the none cradle, I don't expect hie-bios to follow symlinks in this folder ? 3/ The ghcide log gives me
In my hie.yaml I have defined cradles only for the paths ./subproject/subproj1 and ./subproject/subproj2. I would expect ./subproject/subproj43 to be match the none cradle but it's not clear from the output. Maybe all of this resolution is covered in some document in which case I am happy to read it. |
Regarding 3/ If I run |
An FAQ would be awesome :)
Yes, we select the most specific
This should have been resolved by #219. Very weird, can you open a separate issue for that?
I agree, it is very hard to debug. The output is correct, though, since it the |
if you open/create the wiki, I can fill it out a bit. As for 2/ , I don't think it's a matter of symlink. Why is ghcide looking at files ignored by my multicradle ? Nevermind you just answered on IRC that ghcide ignores the hie.yaml when scanning for files. |
My experience is a wiki on GitHub just ends up falling into disuse with stale info on it. But some docs in Markdown would be great! (Personal view - there's a chance that the maintainers of this repo feel differently). I think we also need to figure out whether those docs best live here, on in haskell-language-server. |
It may be the case if there is a competing documentation somewhere else but this doesn't seem the case yet. I am not a fan of wikis by any means but they lower the barrier for contribution, can help bootstrap a proper doc, and you can remove it later. |
Personally, I agree, this documentation on how to write a |
I am trying to elaborate a multicradle hie.yaml and want to set the base cradle to none and I have a few silly questions:
path: "."
, isn'tpath: .
ok ?with a hie.yaml similar to https://github.com/mpickering/hie-bios/blob/master/tests/configs/multi-ch.yaml#L9 (hie-bios being a wrapper around hie-bios built by bazel):
Does it mean it matched my none cradle or none at all ? In the first case, I would rather see a
Matched one cradle
.The text was updated successfully, but these errors were encountered: