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

Same named modules in different project components are indexed just once #13

Open
jhrcek opened this issue Nov 27, 2020 · 1 comment
Open

Comments

@jhrcek
Copy link
Collaborator

jhrcek commented Nov 27, 2020

I have a project with multiple executable components, which happen to contain some modules with the same name.
The issue is that when I index this project with hiedb, only the last same-named module overwrites all the previous ones, due to UnitId not bein unique.
I'm getting the same behavior with stack / cabal.
This might be a build tool issue (in that unit id for executables is always set to main (?))

Here's a small project reproducing the issue
https://github.com/jhrcek/hiedb-sscces/tree/main/same-named-modules

@wz1000
Copy link
Owner

wz1000 commented Nov 27, 2020

Thanks for the report.

I think this can only be fixed in cabal/stack. However, it might be possible to work around it in ghcide in the meantime.

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

2 participants