microsoft / microsoft/vscode-css-languageservice

Validation fails when LSP used with Kate on Arch

Open
#468 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
384
Forks
217
Avg merge
3d 16h
Merged PRs (30d)
14

Description

LSP Log (from Kate)
[12:57:03  LSP Server Log] scss@/home/zsolt
[Error] Error while validating file:///<...>/app/layout/user/user-layout.component.scss: Cannot read properties of null (reading 'validProperties')
TypeError: Cannot read properties of null (reading 'validProperties')
    at LintConfigurationSettings.getSetting (/usr/lib/node_modules/vscode-css-languageserver/node_modules/vscode-css-languageservice/lib/umd/services/lintRules.js:78:29)
    at new LintVisitor (/usr/lib/node_modules/vscode-css-languageserver/node_modules/vscode-css-languageservice/lib/umd/services/lint.js:53:41)
    at LintVisitor.entries (/usr/lib/node_modules/vscode-css-languageserver/node_modules/vscode-css-languageservice/lib/umd/services/lint.js:41:29)
    at CSSValidation.doValidation (/usr/lib/node_modules/vscode-css-languageserver/node_modules/vscode-css-languageservice/lib/umd/services/cssValidation.js:34:60)
    at validateTextDocument (/usr/lib/node_modules/vscode-css-languageserver/out/cssServer.js:151:49)
    at async Timeout._onTimeout (/usr/lib/node_modules/vscode-css-languageserver/out/utils/validation.js:37:41)
System

Kernel

  • 6.18.1-arch1-2

Used packages

  • nodejs 25.2.1-1
  • kate 25.12.0-1
  • vscode-css-languageserver 1.107.0-1

Edit: I've found this, might be related.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing SCSS validation with the listed Node.js, vscode-css-languageserver, and Kate versions. Trace the stack through lib/umd/services/lintRules.js, lint.js, cssValidation.js, and out/cssServer.js, focusing on the null configuration reached by getSetting. Done means the same document validates without the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, scss, typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.