-
Notifications
You must be signed in to change notification settings - Fork 144
(v2) Triggering intellisense in VS Code crashes the Tailwind extension when working on gluestack components #2382
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
Hey @resticker, Regarding the VS Code crashing issue, it seems to be related to the Tailwind plugin or a system issue. We don’t manipulate anything concerning VS Code extensions, and we have followed all the standards while creating a Tailwind config for gluestack.
|
@Viraj-10 I think the issue stems from the gluestack tooling setup for intellisense. If I remove this regex from my Since this code is related to tailwind variants, I figured that there are likely issues over on that project. And, yep, here's a "intellisense in tv config hangs" issue If you scroll through those comments, you'll see that Tailwind Variants updated the regex (pull request), and it's been updated in the Tailwind Variants docs You can also comb through the Tailwind extension issue related to Tailwind Variants here Basically, regex is the issue. We might want to consider changing the gluestack intellisense setup docs to match the new Tailwind Variants regex:
instead of the current regex:
I just tried it, and I'm getting intellisense in gluestack components, and no hanging. (A con to this, is that it looks like if you activate intellisense in any string, it offers tailwind class suggestions 😂.. but that's not all bad) |
I was facing the same issue, found the same solution but, doing another fresh research on TV issues, I found this #903 (comment) |
Uh oh!
There was an error while loading. Please reload this page.
Description
Showing intellisense options via the "Trigger Suggest" in the Command Palette (I use a keyboard shortcut like most of us probably do) causes the Tailwind extension to go to 100% CPU usage and become unresponsive
CodeSandbox/Snack link
N/A
Steps to reproduce
<directory with gluestack components>/button/index.tsx
Trigger Suggest
from the Command PaletteLoading...
(see screenshot)Developer: Open Process Explorer
from the Command Palette and seeelectron-nodejs (tailwindServer.js)
at 99 (% CPU)Showing intellisense just gets stuck "Loading..."

Process Explorer:

gluestack-ui Version
Latest
Platform
Other Platform
No response
Additional Information
The extension needs to be manually restarted to get intellisense working again. No intellisense of any kind works in any file (even my personal files) while the extension is unresponsive
I'm using v0.12.6 of the official Tailwind CSS IntelliSense extension.
Visual Studio Code Version: 1.92.1
I'm posting this issue here because it seems to be more of a gluestack issue than an extension issue.
The text was updated successfully, but these errors were encountered: