-
Notifications
You must be signed in to change notification settings - Fork 4.5k
CLI Watch never end 2 CPU cores at 100% #17246
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 encounter the same problem with:
|
With DEBUG=1, there is no output and 2 cores at 100%. |
I got the same result with Node.js v22.14.0 (npm 10.9.2). |
I tried on another windows (v10). It works |
Tailwind CSS seems to be incompatible with the Watchman (Meta) software.
If I delete the shim-generated file: This suggests that Tailwind CSS is likely using Watchman in the background for file watching. When it launches the 2025 version found in the PATH (the one installed via Chocolatey), it may trigger unexpected behavior (infinite loop?). |
I see on @parcel/watcher:
A log about the watcher used or a compatibility check on the version could be a plus to facilitate problem identification. |
@deguich Hey! Thanks for digging into it. Are you able to reproduce the problem when using |
I'm experiencing same problem on Mac M2 using Node v22.14.0 and Yarn 1.22.22. When running I get the same issue when running on host OS using Node v23.7.0 (different than dockerized), yarn 1.22.22. |
I can confirm that locking version at npm install @tailwindcss/[email protected]
npx @tailwindcss/cli -i app.scss -o app.css # builds |
I can reproduce what seems to be this issue when I have watchman installed; and it goes away when I uninstall watchman. With watchman installed, on a Linux x86_64 GNU libc system (native, not in a container) running with
The initial startup takes 81 seconds. After that startup, everything seems responsive and changes to files result in:
Without watchman installed, though, startup is 1000x faster:
|
This was happening to me on Node |
This is happening to me in 22.14.0 too. 197% CPU usage always. I use mac m1 |
What version of Tailwind CSS are you using?
v4.0.14
What version of Node.js are you using?
v20.18.0
What operating system are you using?
Windows 11
Reproduction URL
I just use the Tailwind4 directory of https://github.com/pinzonjulian/tailwind_css_cli_watch_bug.git
Describe your issue
Command never end, there is no output, 2 cores at 100%.
If I remove output.css, the process don't create it.
When I remove --watch.
It works :
Could a global configuration be the cause of the problem?
The text was updated successfully, but these errors were encountered: