-
Notifications
You must be signed in to change notification settings - Fork 13
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
Bug: KCL Extension is not able to see package imports and relative imports beyond repo root (at least for Path based kcl mod add
and for Git based too)
#64
Comments
Same issue persists when i create main.k or any other named file in fl-darkstat repo at any level except root. Also i tried using Path based |
kcl mod add
and for Git based too)
I will note, that vscode extension is able to see things correctly if code is imported by relative or absolute paths within same repository I tend to open different repositories as
|
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
wget -q https://kcl-lang.io/script/install-kcl-lsp.sh -O - | /bin/bash
kcl-language-server version
showsVersion: 0.11.0-c020ab3eb4b9179219d6837a57f5d323, Platform: x86_64-unknown-linux-gnu, GitCommit: bc74f86d4af33d0e3591c7dcda748535ab436469
[email protected]:darklab8/fl-darkstat.git
kcl mod add git://github.com/kcl-lang/konfig --tag v0.4.0
import of my own package, and of test package konfig installed via
kcl mod add git://github.com/kcl-lang/konfig --tag v0.4.0
and of relative imports, all not recognizing. Red lines in vscode with error
pkgpath konfig.models.commons.resource not found in the program(CannotFindModule)
At the same time i am able to build file correctly with command
kcl kcls/workflows/test.k
2. What did you expect to see? (Required)
i expectex to see syntax colored package imports and recognized type si use from it.
3. What did you see instead (Required)
errors like
pkgpath konfig.models.commons.resource not found in the program(CannotFindModule)
in all imported packages4. What is your KCL components version? (Required)
kcl-language-server version
is 0.11.0-c020ab3eb4b9179219d6837a57f5d323kcl itself is installed by go as
go install kcl-lang.io/cli/cmd/kcl@latest
, kcl version 0.11.0-linux-amd645. Extra info.
Imports at the level of extension look to me working only if u use absolute and relative imports for the code in the same repository.
it is not working only for installed git based packages so far, and for relative imports to go travel further than from root repo.
The text was updated successfully, but these errors were encountered: