Closed sceee closed 6 months ago
This was happening because we detected the path for tailwindcss
but didn't convert it to a file url first before loading. This breaks on Windows because absolute paths contain a colon that looks like a protocol. Then the extension was falling back to built-in, default Tailwind v3 settings.
I've merged a fix for this. I'm gonna do a double check test against our insiders build and then tag a release.
I've released v0.5.14 which fixes this problem. 👍
npm install prettier-plugin-tailwindcss@latest
Interesting. Great, thanks @thecrypticace !
Discussed in https://github.com/tailwindlabs/tailwindcss/discussions/13510
Reproduction URL https://github.com/sceee/tailwindcss-repro
Action run that demonstrates the issue on Windows and Linux: https://github.com/sceee/tailwindcss-repro/actions/runs/8663153843
On the Ubuntu job, eslint emits the lint warning (to swap the class order) whereas on Windows, no warning is emitted.
I opened this issue here in the
tailwindcss
repository as I think the issue lies in thecompileCandidates
code that is in this repository (instead of prettier-plugin-tailwindcss)