-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Milestone
Description
Enhancement
Sometimes users will edit the kcl.mod file in the IDE to update project dependencies. The integration between LSP and KPM needs to be strengthened
- When users update kcl.mod in the IDE, the required dependencies are automatically downloaded
- When users use the kpm tool to update dependencies, the IDE can be updated (recompiled). For example
import k8s # Error: Module not found
use kcl mod add k8s
kpm will download the k8s
package and then the IDE errors will be eliminated
Pretest:
Research the implementation of similar features in other languages (rust's cargo watch is recommended, but any other language is fine), provide research reports and design solutions (optional).
Any form of report is acceptable, but don't submit to this repository, use Google Doc or your own public repository
Peefy and sandptel
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Relationships
Development
Select code repository
Activity
Siddhi-agg commentedon Feb 3, 2025
Hi @He1pa !
I would like to contribute to this. From the description, I have determined the following objectives for the project:
To have these features in the project, we can try the following approach:
kcl.mod
file is detected.This way, the change in the 'kcl.mod' will be detected in both the cases (on updating the file or on using
kcl mod add
) and the file watching would trigger the download of the newly added dependencies. If there are any problems in resolving the new dependencies, we can also add some diagnostic features along with the logs to help solve the problems in downloading.literalEval commentedon Feb 12, 2025
Hi @He1pa
I have worked with language servers (Dart and Js) during my GSoC project and find myself comfortable working with the protocols. So, I would love to contribute to this project.
Can you please mention the pretest for this ?
He1pa commentedon Feb 12, 2025
@Gmin2 @Siddhi-agg @literalEval I have updated the pretest
literalEval commentedon Feb 12, 2025
@He1pa thanks.
I have prepared a report for Dart/Flutter since that's what I'm familiar with. Researching on Rust/Cargo ecosystem as it is preferred for the pretest.
He1pa commentedon Feb 14, 2025
@literalEval Dart/Futter is also fine. The reason for choosing rust/cargo is that other modules refer to their design and we are more familiar with it
literalEval commentedon Feb 19, 2025
@He1pa somehow forgot to submit the report and my application on time. The applications seem to be closed now. Will be on time in the next session.