nvimdev / nvimdev/lspsaga.nvim

Illegal character <]> when scrolling on lines that have `]` in class attribute in svelte files.

Open
#1,461 0 comments 0 reactions 0 assignees View on GitHub

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

2024-06-10_12-42

Steps to reproduce
  1. setup svelte and tailwindcss lsps.
  2. 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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.