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

Properly handle multi-file modules in some places #116

Open
PgBiel opened this issue Jan 28, 2025 · 0 comments
Open

Properly handle multi-file modules in some places #116

PgBiel opened this issue Jan 28, 2025 · 0 comments

Comments

@PgBiel
Copy link
Contributor

PgBiel commented Jan 28, 2025

On each change to the stdlib indexer, I noticed a bunch of modules randomly changing their paths, which I assume is because those modules had their definitions spread out across multiple files and their information was stored in a hash map, and the ordering of a hash map is non-deterministic so the results of an iteration kept changing. Since the indexer uses a single map module name -> path string, there will need to be a way to store that a module may have more than one file system path for its definitions, perhaps switching that path string to a list, making the necessary changes.

I'm not sure if this is a problem outside of the stdlib indexer, but that's worth investigating as well.

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

1 participant