Comments (17)
Thank you for your feedback. There are indeed bugs in version 0.8.5 of the language server, which have been fixed. We will release version 0.8.6 later.
cc @He1pa
from kcl.
@Peefy I'll give it go tomorrow and give you feedback.
from kcl.
@Peefy all looks great in all my kcl composition code on windows, so thank you and @He1pa
from kcl.
@Peefy I've added branch error2 and included one of my real compositions. Note, there seems to be a separate issue in regards to some schema complaints around
matchControllerRef
. You'll see assuming syntax highlighting works for you. I know the code compiles and is used by function-kcl so not sure what the complaint the compiler has here. Anyway, back to the main issue...What I've observed is that if I close any open files, close VSCode, reopen it and wait a few seconds then select main.k, syntax highlighting appears, and if I select each file in the project it'll show correct highlighting.
If I do the same but open the resources/notification.k file, or any of the files in resources actually, then the language errors start. Here's log output:
[Info - 12:10:30 PM] on did open file: AbsPathBuf("d:\\Dev\\github\\kcl-test\\resources\\notification.k") thread '<unnamed>' panicked at sema\src\core\global_state.rs:514:66: called `Option::unwrap()` on a `None` value note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace [Info - 12:10:32 PM] Compile failed: "Compile failed: Any { .. }" [Error - 12:10:32 PM] Request textDocument/documentSymbol failed. Message: Internal bug: Path d:\Dev\github\kcl-test\resources\notification.k analysisDatabase not found, maybe compile failed Code: -32603 [Error - 12:10:32 PM] Request textDocument/semanticTokens/full failed. Message: Internal bug: Path d:\Dev\github\kcl-test\resources\notification.k analysisDatabase not found, maybe compile failed Code: -32603 [Error - 12:10:34 PM] Request textDocument/semanticTokens/full failed. Message: Internal bug: Path d:\Dev\github\kcl-test\resources\notification.k analysisDatabase not found, maybe compile failed Code: -32603 [Error - 12:10:35 PM] Request textDocument/semanticTokens/full failed. Message: Internal bug: Path d:\Dev\github\kcl-test\resources\notification.k analysisDatabase not found, maybe compile failed Code: -32603 [Error - 12:10:36 PM] Request textDocument/semanticTokens/full failed. Message: Internal bug: Path d:\Dev\github\kcl-test\resources\notification.k analysisDatabase not found, maybe compile failed Code: -32603
I also fixed the issue you mentioned which falsely report error about schema config
from kcl.
Closed by #1247 and released kcl-language-server v0.8.6
from kcl.
@Peefy is this supposed to be fixed in kcl-language-server v0.8.6? I just bumped kcl to v0.8.7 and kcl-language-server to v0.8.6 and still seeing the same issue with my test repo (pull latest as I removed a file from the "language-error" branch.
from kcl.
cc @He1pa Can you help investigate it on the Windows platform. The code repo is here. https://github.com/markphillips100/kcllsp-test
I was unable to successfully reproduce the issue.
from kcl.
Just FYI @Peefy @He1pa , I got hold of a macbook briefly and tried my test repo and also my real compositions repo under the same conditions. No problem on the mac so appears this may be a windows OS only thing.
from kcl.
Thank you! @markphillips100 We will fix it soon. ❤
from kcl.
Closed by #1283, will release kcl-language-server v0.8.7 soon.
from kcl.
Hi @Peefy kcl-language-server v0.8.7 appears to fix the current test repo, however my real code is still throwing errors in the language server - usual "compile failed code: -32603". Something else causing a problem now I suspect.
I'll see if I can narrow it down and update the test repo.
from kcl.
Thank you @markphillips100 Could you please give more language server logs?
from kcl.
Yep. I'll copy code for one of my compositions into a new test repo, the smallest one that breaks, and reference here when available with logs attached.
from kcl.
@Peefy I've added branch error2 and included one of my real compositions. Note, there seems to be a separate issue in regards to some schema complaints around matchControllerRef
. You'll see assuming syntax highlighting works for you. I know the code compiles and is used by function-kcl so not sure what the complaint the compiler has here. Anyway, back to the main issue...
What I've observed is that if I close any open files, close VSCode, reopen it and wait a few seconds then select main.k, syntax highlighting appears, and if I select each file in the project it'll show correct highlighting.
If I do the same but open the resources/notification.k file, or any of the files in resources actually, then the language errors start. Here's log output:
[Info - 12:10:30 PM] on did open file: AbsPathBuf("d:\\Dev\\github\\kcl-test\\resources\\notification.k")
thread '<unnamed>' panicked at sema\src\core\global_state.rs:514:66:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info - 12:10:32 PM] Compile failed: "Compile failed: Any { .. }"
[Error - 12:10:32 PM] Request textDocument/documentSymbol failed.
Message: Internal bug: Path d:\Dev\github\kcl-test\resources\notification.k analysisDatabase not found, maybe compile failed
Code: -32603
[Error - 12:10:32 PM] Request textDocument/semanticTokens/full failed.
Message: Internal bug: Path d:\Dev\github\kcl-test\resources\notification.k analysisDatabase not found, maybe compile failed
Code: -32603
[Error - 12:10:34 PM] Request textDocument/semanticTokens/full failed.
Message: Internal bug: Path d:\Dev\github\kcl-test\resources\notification.k analysisDatabase not found, maybe compile failed
Code: -32603
[Error - 12:10:35 PM] Request textDocument/semanticTokens/full failed.
Message: Internal bug: Path d:\Dev\github\kcl-test\resources\notification.k analysisDatabase not found, maybe compile failed
Code: -32603
[Error - 12:10:36 PM] Request textDocument/semanticTokens/full failed.
Message: Internal bug: Path d:\Dev\github\kcl-test\resources\notification.k analysisDatabase not found, maybe compile failed
Code: -32603
from kcl.
cc @He1pa Can you help investigate this issue?
from kcl.
Closed by #1301 and release kcl-language-server v0.9.0-alpha.1
from kcl.
Yes thank you. I did notice that was working now too. Great work
from kcl.
Related Issues (20)
- Option to not sort keys within a json object HOT 3
- [Bug] Importing Dynatrace Config schema ends abruptly without a complete schema HOT 3
- [Bug] Import of modules containing "-" fails HOT 7
- [feature] Support for type arguments for convenient factory functions HOT 3
- [Discussion] Issue with importing "-" packages either on the same level or nested. HOT 2
- Extend file module functions (for smoother GitOps) HOT 3
- kcl executable missing from github releases HOT 1
- [Enhancement] Proposal for new language feature for the short hand property HOT 1
- [Bug] Import JsonSchema: all props converted to snake case HOT 1
- [Enhancement] Create a Sublime Text file with language support
- [FAQ] Read a file and crossplane function kcl in kcl example HOT 5
- [bug] file mkdir and delete don't seem to work HOT 3
- YAML comments HOT 2
- [bug] lsp hover content error HOT 1
- [LFX PreTest] pretest for LFX LSP hover content HOT 6
- [Enhancement] Is there a way to read values from environment variables?
- [Bug] Compile Cache causes lsp falsely report errors
- System Functions disallow use of line wrapping (newlines around params)
- Support hyphen on attribute name HOT 1
- [Enhancement] Enhance error messages when importing an empty folder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kcl.