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

I added template.render.ingress.app import, and kcl run reported an error. If not, the ide plug-in reported an error. #1620

Open
riven-blade opened this issue Sep 3, 2024 · 3 comments
Assignees
Labels
bug Something isn't working lsp

Comments

@riven-blade
Copy link

General Question

Hello
image

ide plug-in error

failed to compile the kcl package
error[E2F04]: CannotFindModule
 --> /Users/doudou/Desktop/hose-ops/saas-kcl/resources/ingress/base/base.k:1:1
  |
1 | import template.render.ingress.app
  | ^ the `template.render.ingress.app` is found multiple times in the current package and vendor package
@He1pa
Copy link
Contributor

He1pa commented Sep 3, 2024

do you have defined kcl.mod ?

@riven-blade
Copy link
Author

Yes,
But I have no definition in the base directory. The base directory also requires a mod file. It seems that I have a configuration that does not define a mod file. It can, but this one cannot, which is very strange.

@He1pa
Copy link
Contributor

He1pa commented Sep 3, 2024

Can you provide the complete code, or the directory structure and code snippets?
The compilation error message may be that there is a pkg with the same name in kcl.mod and locally, and they conflict.

@Peefy Peefy added bug Something isn't working lsp labels Oct 10, 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 lsp
Projects
None yet
Development

No branches or pull requests

3 participants