-
Notifications
You must be signed in to change notification settings - Fork 219
Duplicated semicolon in CSS file causes Tailwind CSS language server to not work #1382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I couldn't reproduce this in a Vite (6.3.5) setup. When running the Vite dev server, it correctly logs |
@functasti Would you like to try the suggested steps to reproduce? A sample project with two small files. |
@alexander-doroshko I'm not questioning the validity of your report, just pointing out that this doesn't seem to affect a Vite setup, which might be helpful for the team to take into account. |
This is a duplicate of #1121 It's a known issue right now. I have plans on how to improve this generally but it's going to require changes to Tailwind CSS itself. |
I'm gonna close this issue in favor of that one but I'm gonna do some thinking about this one because this is a pretty big DX pain point right now that I really need to solve. |
That's true. Thanks for taking a look |
Uh oh!
There was an error while loading. Please reload this page.
I'll give very specific steps to reproduce the problem. At the same time I'd suggest treating this issue as a more general problem: the Tailwind CSS language server is too sensitive to the contents of the CSS file at the moment of the server initialization. See below for more thoughts on this. Thank you.
Steps: create a trivial project with two files, run
npm install
, open the project in the IDE (WebStorm or VS Code):package.json
style.css
Problems:
@apply
in this CSS fileThis example with a duplicated semicolon is only one of the examples that make the Tailwind server unhappy. So I wonder if a general solution of such kind of problems is possible. What I would expect in an ideal scenario:
The text was updated successfully, but these errors were encountered: