microsoft / microsoft/vscode-html-languageservice
TypeError: Cannot read properties of null (reading 'validProperties') when using LSP with Zed
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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