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

[Enhancement] KCL Semantic model issues for config attribute #635

Closed
He1pa opened this issue Aug 1, 2023 · 0 comments · Fixed by #683
Closed

[Enhancement] KCL Semantic model issues for config attribute #635

He1pa opened this issue Aug 1, 2023 · 0 comments · Fixed by #683
Assignees
Labels
enhancement New feature or request ide Issues or PRs related to kcl LSP and IDE plugins semantic Issues or PRs related to kcl semantic and checker

Comments

@He1pa
Copy link
Contributor

He1pa commented Aug 1, 2023

Some issues about KCL semantic model(Scope and ScopeObject now)

  1. Missing connection of scope object and it child scope
m = {
    "a" : 1
}

b = m.a

Get a scope object m and a child scope {"a": 1}, but missing connect with them. When try to find definition of m.a:
, first, find the definition of m and get scope object m, and cannot search the child scope and search definition of a.

  1. attr scope object
schema Person:
    name?: str = "a"

scope object of name not contains information about optional and default value

@He1pa He1pa added enhancement New feature or request semantic Issues or PRs related to kcl semantic and checker ide Issues or PRs related to kcl LSP and IDE plugins labels Aug 2, 2023
@Peefy Peefy self-assigned this Aug 22, 2023
@Peefy Peefy changed the title [Enhancement] KCL Semantic model issues [Enhancement] KCL Semantic model issues for config attribute Aug 22, 2023
@Peefy Peefy added this to the v0.6.0 Release milestone Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ide Issues or PRs related to kcl LSP and IDE plugins semantic Issues or PRs related to kcl semantic and checker
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants