We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To import a file A/B.C.lean, import «A».«B.C» instead tries to find a file called A/B.lean.
A/B.C.lean
import «A».«B.C»
A/B.lean
The workaround was to use import «A».«B.C.lean» instead.
import «A».«B.C.lean»
Bug described here
Expected behavior: Import works
Actual behavior:
`/home/vscode/.elan/toolchains/leanprover--lean4---v4.2.0/bin/lake print-paths Init «A».«B.C» --no-build` failed: stderr: error: '«A».«B.C»': no such file or directory (error code: 2) file: ./././A/B.lean
Lean v4.2.0
[Additional information, configuration or data that might be necessary to reproduce the issue]
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered:
fix: do not strip dotted components from lean module names (#2994)
4169cac
This introduces `FilePath.addExtension` to take a path that we know has no prior extension, and append a new extension to it. As this function is simpler than `FilePath.withExtension`, this change eagerly replaces uses of the latter with the former, except in a few cases where stripping the extension really is the right thing to do. This should fix the bug described at https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Import.20file.20with.20multiple.20dots.20in.20file.20name/near/404508048, where `import «A.B».«C.D.lean»` is needed to import `A.B/C.D.lean`. Closes #2999 --------- Co-authored-by: Mac Malone <[email protected]> Co-authored-by: Sebastian Ullrich <[email protected]>
Successfully merging a pull request may close this issue.
Prerequisites
Description
To import a file
A/B.C.lean
,import «A».«B.C»
instead tries to find a file calledA/B.lean
.The workaround was to use
import «A».«B.C.lean»
instead.Context
Bug described here
Steps to Reproduce
A/B.C.lean
import «A».«B.C»
Expected behavior: Import works
Actual behavior:
Versions
Lean v4.2.0
Additional Information
[Additional information, configuration or data that might be necessary to reproduce the issue]
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: