microsoft / microsoft/vscode-html-languageservice

TypeError: Cannot read properties of null (reading 'validProperties') when using LSP with Zed

Open
#227 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
284
Forks
138
Avg merge
19h 11m
Merged PRs (30d)
5

Description

Hello. The Zed editor allows using this as an LSP (relevant docs). When using it with html files that have style tags/attributes, the error TypeError: Cannot read properties of null (reading 'validProperties') is thrown by the LSP. I've documented steps to recreate the issue (in Zed), a full log and workaround fix here. Other Neovim users have also faced this issue and used similar workarounds:

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 with the linked Zed reproduction and full log, then compare the documented workaround with the HTML language service behavior for files containing style tags or attributes. Reproduce the TypeError and verify that the LSP handles those HTML inputs without reading validProperties from null.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, typescript
Domain
devtools, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.