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

Imports of files in subdirectory not handled correctly #16

Open
kiedtl opened this issue Sep 11, 2024 · 0 comments
Open

Imports of files in subdirectory not handled correctly #16

kiedtl opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kiedtl
Copy link
Owner

kiedtl commented Sep 11, 2024

(use subdir/file) doesn't actually make the stuff in that file accessible. I assume this is because it's imported in the name "subdir/file" rather than "file", and trying to do subdir/file/foo results in the resolver looking for a module name subdir, which doesn't exist.

Expected behaviour is for the file to be imported under the name file -- i.e. the path stem. Seems to be a trivial fix.

Admittedly this was before the path resolving changes, and I haven't tested that this bug still exists afterwards. There's no obvious behaviour for it to have been fixed, though.

@kiedtl kiedtl added the bug Something isn't working label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant