nvimdev / nvimdev/lspsaga.nvim
Illegal character <]> when scrolling on lines that have `]` in class attribute in svelte files.
Open
Nobody has claimed this yet.
bug
- Dominant language
- Lua
- Stars
- 3.8k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
There an error the constantly popup when I scroll on lines with [ in css class name
Steps to reproduce
- setup svelte and tailwindcss lsps.
- open a svelte file and scroll over lines with
]in class attributes (tailwind style). e.g:
<div class="... w-[600px] max-w-[90%] flex-col ...">
Expected behavior
There should be no error
Neovim version (nvim -v)
0.10.0
lspsaga commit
343b717
Terminal name/version
st 0.8.4
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
Reproduce the issue in a Svelte file using Tailwind CSS classes such as w-[600px], with Neovim 0.10.0 and lspsaga commit 343b717, then inspect the error triggered while scrolling. The payload names no source file or test; done means scrolling over bracketed class attributes no longer produces the illegal-character error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, tailwindcss
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100