Skip to content

Fix type check of the kcl-language-server of missing required attributes - #1928

Open
liorfr-monday wants to merge 6 commits into
kcl-lang:mainfrom
liorfranko:main
Open

Fix type check of the kcl-language-server of missing required attributes#1928
liorfr-monday wants to merge 6 commits into
kcl-lang:mainfrom
liorfranko:main

Conversation

@liorfr-monday

Copy link
Copy Markdown

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

No

2. What is the scope of this PR (e.g. component or file name):

kcl/kclvm/tools/src/LSP/src/validator.rs

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

Improve the type check when working from IDE.

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

N

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

  • Unit test

Before:
Screenshot 2025-04-23 at 20 35 03

After

Screenshot 2025-04-23 at 20 24 18 Screenshot 2025-04-23 at 20 24 11

@liorfr-monday
liorfr-monday force-pushed the main branch 5 times, most recently from 856a452 to af3e97f Compare April 23, 2025 19:54
@Peefy

Peefy commented Apr 24, 2025

Copy link
Copy Markdown
Contributor

Thanks for the contribution.

The CI failed, and you can format all your rust code.

@liorfr-monday

liorfr-monday commented Apr 24, 2025

Copy link
Copy Markdown
Author

Thanks for the contribution.

The CI failed, and you can format all your rust code.

Formatted.
And also I added m
Screenshot 2025-04-24 at 15 33 54
ore validations of nested schema and nested inside function.

Signed-off-by: Lior Franko <liorfr@monday.com>
Signed-off-by: Lior Franko <liorfr@monday.com>
Signed-off-by: Lior Franko <liorfr@monday.com>
Signed-off-by: Lior Franko <liorfr@monday.com>
@liorfr-monday

Copy link
Copy Markdown
Author

I fixed the error print and moved it to the nested item.
Screenshot 2025-04-24 at 21 43 50

@Peefy

Peefy commented May 9, 2025

Copy link
Copy Markdown
Contributor

The unit test CI still failed. : (

@Peefy

Peefy commented May 11, 2025

Copy link
Copy Markdown
Contributor

The CI still failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants