-
Notifications
You must be signed in to change notification settings - Fork 196
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
Custom @import breaks Intellisense on v4 beta #1103
Comments
I've try to add an index.html and the result is the same: no suggestions. |
Today I've try:
|
I've try v4 beta 4 + Intellisense (pre-release) in Statamic CMS, it works except for colors classes like |
@ denishsharma on Discord identified the problem: custom @import breaks autocomplete https://discord.com/channels/486935104384532500/486935104384532502/1313785857739849798 /CC @thecrypticace (hope you can fix that issue or help us) |
@florianbouvot could you provide a link to your project? (or a smaller project that also reproduces the problem) Give's me something to worth with while I figure out the problems and potential solutions |
to me this simple css will break Intellisense @import "tailwindcss";
@import "#resolveThisCss";
|
@thecrypticace I made a video of the issue and I will share you the repo ;) tw4-issue-import.mp4EDIT: invitation send ;) |
Can confirm this is happening on v0.13.61 (pre-release) using tailwind 4.0.0-beta.6. Happy to provide additional details if needed. The issue seems to occur when using vite aliases but also if there is a bad utility being used in an @apply. |
I have the same problem. I am importing css files from node bundles (pnpm) which lead to breaking the Intellisense plugin. Strangely it seems to work on some css files but on others it does not. I can confirm that using @imports with vite aliasing (svelte5) definitely breaks it as well. |
Facing the same problem here (v0.13.61) |
@thecrypticace Do you know how soon you'll be able to study this problem? |
@florianbouvot I'm working on it in #1106. Doing this correctly is a bit more complicated than I expected. I was hoping to have it in a pre-release this week but I don't think I will unfortunately. Gonna spend some time over the weekend on it too tho. |
Caused by using CSS @import, see: - bug: tailwindlabs/tailwindcss-intellisense#1103 - pr: tailwindlabs/tailwindcss-intellisense#1106
What version of VS Code are you using?
v1.95.3
What version of Tailwind CSS IntelliSense are you using?
v0.12.15
What version of Tailwind CSS are you using?
v4.0.0-beta.4
What package manager are you using?
pnpm
What operating system are you using?
macOS
Tailwind config
Config via main CSS file
VS Code settings
Intellisense output
Reproduction URL
I can share my project if needed.
Describe your issue
I'm working on PHP project views are powered by twig (.html.twig) and I'm using vite with postcss for Tailwind CSS.
Since Tailwind CSS v4 beta, intellisense doesn't provide any suggestions.
I've try with stable en pre-release version, same results.
Is there something wrong in my config or is it an issue with Intellisense / v4 and twig?
Enregistrement.de.l.ecran.2024-12-01.a.01.54.20.mp4
The text was updated successfully, but these errors were encountered: