KCL is a constraint-based record and functional language hosted by Cloud Native Computing Foundation(CNCF) that enhances the writing of complex configurations, including those for cloud-native scenarios. With its advanced programming language technology and practices, KCL is dedicated to promoting better modularity, scalability, and stability for configurations. It enables simpler logic writing and offers ease of automation APIs and integration with homegrown systems.
This section will update the KCL language community's latest developments every two weeks, including features, website updates, and the latest community news, helping everyone better understand the KCL community!
KCL Website: https://kcl-lang.io
Thank you to all contributors for their outstanding work over the past two weeks (10.12 - 10.25 2023). Here is an overview of the key content:
🔧 Language and Toolchain Updates
- KCL IDE Updates - Supports for symbol find-references and rename; Optimized the formatting output for import statements and union types; Fixed the bug where file changes caused the language server to crash.
- KCL Package Management Tool KPM Updates - kpm is integrating with ArtifactHub, enabling KCL packages publishing to ArtifactHub.
- KCL Language Updates - Optimized error messages for mismatched parameter types in methods, providing clearer indications of the mismatch.
- Unified Interface of KCL Command-Line - Redesigned the command-line interface and workflow for KCL tools to achieve a unified experience.
The following are listed in no particular order:
- Thanks to @jakezhu9 for enhancing the KCL syntax parsing unit tests, migrating some test cases to the snaptest framework 🙌 https://github.com/kcl-lang/kcl/pull/794
- Thanks to @opsnull for correcting code examples in kcl-lang.io website 🙌 https://github.com/kcl-lang/kcl-lang.io/pull/182
- Thanks to @prahaladramji for fixing and optimizing the formatting functionality in the KCL IntelliJ plugin 🙌 https://github.com/kcl-lang/intellij-kcl/pull/15, etc.
- Thanks to @steeling, @prahaladramji, @liangyuanpen, @Kory Taborn, and others for valuable feedback and discussions while using KCL and the toolchain 🙌
IDE Extension Updates
In the upcoming release, the KCL IDE extension will support find/go-to references navigation, symbol renaming, and some optimizations for formatting import statements and union types. Additionally, virtual file system-related bugs causing language service crashes have been fixed.
Formatting improvements for import statements and union types: optimized behavior for newlines between reference statements and other code blocks (formatted as a single newline) and spacing between union types (formatted with
| as separators):
KCL Package Manager Updates
In the upcoming release, KPM will support integration with ArtifactHub. You can now submit a PR to the kcl-lang Registry repository to publish your KCL packages on ArtifactHub. The pre-uploaded KCL Kubernetes package can be seen on the ArtifactHub staging page. The functionality will be released in version v0.6.1:
KCL Language Updates
The compilation command of KCL continues to improve error message output, aiming to provide clear and understandable guidance to help developers quickly identify and fix errors while writing correct code. Recently, error messages related to method parameter type mismatches have been optimized, clearly indicating parameter type mismatches:
Additionally, a fix addressed the issue of lazy evaluation in property assignments, deferring the computation and constraint validation of property assignments until after configuration merging to avoid unnecessary compilation errors.
Unified Interface of KCL Command-Line
We are redesigning the command-line interface of KCL tools to achieve a unified user workflow, seamless integration with related tools and multi-language APIs, and command-line tool extensibility. Welcome to join the discussion if anyone are insterested: https://github.com/kcl-lang/kcl/issues/756.
With the inclusion in CNCF Sandbox, we are glad to announce that the CNCF KCL Slack channel is now available for KCL-related discussions. Feel free to join:
- Join the CNCF workspace by providing your email address: https://communityinviter.com/apps/cloud-native/cncf
- Join the CNCF KCL channel: https://cloud-native.slack.com/archives/C05TC96NWN8
❤️ Thanks to all KCL users and community members for their valuable feedback and suggestions in the community.
For more resources, please refer to