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
/tmp
CannotFindModule
Please answer these questions before submitting your issue. Thanks!
Under /tmp on macos, create the kcl program as below:
-- /tmp | -- a.k | -- pkg | -- a.k
The tmp/pkg/a.k.
tmp/pkg/a.k
a=1
The /tmp/a.k
/tmp/a.k
import .pkg a = pkg.a
Use the following command compile the /tmp/a.k
kcl /tmp/a.k
Compile successfully.
a: 1
An error raised.
error[E2F04]: CannotFindModule --> /tmp/a.k:1:1 | 1 | import .pkg | Cannot find the module .pkg from //tmp/pkg | error[E2G22]: TypeError --> /tmp/a.k:3:5 | 3 | a = pkg.a | ^ module '..tmp.pkg' has no attribute a |
I build the KCL compiler from the main branch.
main
The text was updated successfully, but these errors were encountered:
zong-zhe
Successfully merging a pull request may close this issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Under
/tmp
on macos, create the kcl program as below:The
tmp/pkg/a.k
.The
/tmp/a.k
Use the following command compile the
/tmp/a.k
2. What did you expect to see? (Required)
Compile successfully.
3. What did you see instead (Required)
An error raised.
4. What is your KCL components version? (Required)
I build the KCL compiler from the
main
branch.The text was updated successfully, but these errors were encountered: