-
-
Notifications
You must be signed in to change notification settings - Fork 391
Wrong module name suggestions when using a bios cradle #1903
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
Labels
component: plugins
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Comments
I've also tried modifying my cradle to output paths instead, and I still get the same result. |
Yeah it seems it is picking the workspace root dir (where the hie.yaml lives?) instead |
There are two problems here, one with haskell-language-server, and one with the test case:
|
I'm working on a PR for this. |
cdsmith
added a commit
to cdsmith/haskell-language-server
that referenced
this issue
Sep 15, 2021
If there are source root dirs nested inside each other, a module might have more than one possible name, depending on where it's intended to be imported from. In this case, a rename should not be suggested unless the module name doesn't match any possible correct name. When suggesting a name, the shortest name should be suggested, since that's more likely to be the intended one. Fixes haskell#1903
mergify bot
added a commit
that referenced
this issue
Sep 16, 2021
If there are source root dirs nested inside each other, a module might have more than one possible name, depending on where it's intended to be imported from. In this case, a rename should not be suggested unless the module name doesn't match any possible correct name. When suggesting a name, the shortest name should be suggested, since that's more likely to be the intended one. Fixes #1903 Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Javier Neira <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component: plugins
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
/cc @tittoassini (plugin author)
The text was updated successfully, but these errors were encountered: