https://bugs.kde.org/show_bug.cgi?id=522413
Bug ID: 522413
Summary: javascript (Node.js) LSP works but doesn't highlight
errors
Classification: Applications
Product: kate
Version First Git
Reported In:
Platform: Other
OS: Other
Status: REPORTED
Severity: normal
Priority: NOR
Component: application
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
DESCRIPTION
I have a JavaScript app using strict JSDoc types, and rely on LSP with
typescript-language-server for good developer experience. Kate has good LSP
feature, but it only works partially for apps written in JavaScript not
TypeScript. At least on Windows 11. For example, it doesn't highlight errors,
despite showing proper information in Diagnostics tab.
STEPS TO REPRODUCE
1. Install Kate 26.4 from chocolatey or a nightly version
2. git clone https://codeberg.org/nykula/lanquiz && cd lanquiz && git checkout
7a42633a68 && npm i
3. Open lanquiz folder in Kate, open src/routes/play/[id]/page.js
4. Add a line with a mistake, for example console.log(undefinedVariable)
OBSERVED RESULT
The line isn't highlighted in red, and the variable name isn't underlined.
However, there's an orange diagnostic rectangle next to the line.
EXPECTED RESULT
The line should be highlighted in red, and the variable name is underlined.
(Like in TypeScript codebases.) The orange diagnostic rectangle next to the
line is also present.
SOFTWARE/OS VERSIONS
Kate: 26.07.70
KDE Frameworks: 6.27.0
Qt: Використано 6.11.1 і зібрано з 6.11.1
Windows 11 Version 25H2
Build ABI: x86_64-little_endian-llp64
Kernel: winnt 10.0.26200
> node --version
v26.4.0
> typescript-language-server --version
5.3.0
> .\node_modules\.bin\tsc --version
Version 6.0.3
ADDITIONAL INFORMATION
In GNU Emacs 30.1 (build 2, x86_64-w64-mingw32), the error is correctly
highlighted, given same node, language server and tsc versions.
Issue https://bugs.kde.org/show_bug.cgi?id=509085 about Deno might be related.
--
You are receiving this mail because:
You are watching all bug changes.