-
Notifications
You must be signed in to change notification settings - Fork 179
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
Version ^3 not working on Mac #130
Comments
Hey @JamesCollardDigitonomy. Please could you share some more details about your project? Which package manager are you using (npm, yarn, or something else?) and what does your directory structure look like (in particular where is your tailwind config located)? If you could share a repo that would be even better. |
Hey @bradlc . The repo is private so I can't share but I'm using npm. Small thing is that I use NVM to switch between node versions. I'm currently using 14.4.0 but as you can see above vscode is saying 12.8.1. It is a Laravel project using webpack, laravel-mix and tailwind. So my directory structure is... My tailwind config hasn't been changed that much since the npx init tailwind. Just added some colors. If there is any other way I can give more info or help debug, let me know. Thanks |
I've also updated everything and found a curious anomaly... When using
the tailwind intellisense plugin stops providing suggestions. What's more... when you revert purge back to an empty array (i.e. what you started with), it takes a VS Code reload/restart for intellisense to start providing suggestions again. Curious! Hope that helps to debug. |
Facing the same issue on Mac. Downgrading to v2 works. |
@gavinworks I had a little look at the purge option in the tailwind config to try and see whether tweaking that would make any difference but I'm still having no luck with getting v3 working at all. I'm just running v2 now Thanks |
@datrinh @JamesCollardDigitonomy I'll try downgrading for now then. I see that @bradlc has pushed to the repo a few changes to ignore the purge option. Perhaps an update is imminent? #131 PS Congrats @bradlc on your new Tailwind Appointment! Good to see a Yorkshireman taking the world by storm! Hello from Selby! :) |
Haha thanks @gavinworks! I’m actually from Lancashire originally 😄 Which version of |
@bradlc v1.4.6 |
If you get chance @JamesCollardDigitonomy please could you clone this repo, run |
Thanks @bradlc, No change on that so I assume it's something to do with my setup generally. Same thing on that repo. v3 doesn't work. v2 is fine. Doing reloads in between installed just to double check. |
Same for me, version 0.3x all my previous intellisense fails in all files, 0.2 works fine. What changed? I have multiple projects some where it's lerna and only 1 of them has tailwind, in a child folder, and others where it's the root. |
Version 0.4 now causes: (node:87811) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'classNames' of undefined
at Object.t.getClassNameParts (/Users/xxx/.vscode/extensions/bradlc.vscode-tailwindcss-0.4.0/dist/server/index.js:31:35152)
at Object.t.getClassNameDecls (/Users/xxx/.vscode/extensions/bradlc.vscode-tailwindcss-0.4.0/dist/server/index.js:45:620)
at /Users/xxx/.vscode/extensions/bradlc.vscode-tailwindcss-0.4.0/dist/server/index.js:13:71022
at Array.forEach (<anonymous>)
at /Users/xxx/.vscode/extensions/bradlc.vscode-tailwindcss-0.4.0/dist/server/index.js:13:70998
at Array.forEach (<anonymous>)
at Object.t.getCssConflictDiagnostics (/Users/xxx/.vscode/extensions/bradlc.vscode-tailwindcss-0.4.0/dist/server/index.js:13:70946)
at /Users/xxx/.vscode/extensions/bradlc.vscode-tailwindcss-0.4.0/dist/server/index.js:1:163263
at Generator.next (<anonymous>)
at s (/Users/xxx/.vscode/extensions/bradlc.vscode-tailwindcss-0.4.0/dist/server/index.js:1:162562) |
Here's my info:
|
Would love to get to the bottom of this! If any of you get chance please could you install this version of the extension and take a look in the There's instructions here that explain how to install a VSIX file: https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix |
Very well could be wrong...but here's what I got when attempting to start up with your vsix above.
|
Same
I wish there was a way to set in vscode the path to where it lived though. For me, I have a lerna project and only 1 of those packages has tailwind. So I have to symlink it to the root for the 0.2 plugin to work. |
Thanks @followbl @mbulfair that is super helpful! Here's a new version that I think might fix the issue: https://send.firefox.com/download/740ed91851cd0f04/#8xpnGX9wooO1HxO3ElV5iA |
working...get auto-complete but am not getting the new tw lint errors. could be doing something wrong - but whatever you did in this latest build has fixed the functionality for me |
@bradlc I lied to you - it's working and awesome - thanks for the hookup! 🪂 |
@bradlc Everything is working on that debug version. I get nothing in the output but everything is perfect. Thanks |
Great, thanks @followbl @JamesCollardDigitonomy! There's a new version in the marketplace now ( |
The official 0.4.1 works for me, thank you for the quick work and fix :) |
@bradlc The new marketplace 0.4.1 is working perfectly. Thanks for your help. It's a really helpful extension. Really noticed when it wasn't working 😂 |
0.4.1 didn't solve my issue. Mac OS Catalina 10.15 |
@datrinh If you get chance please could you install this version of the extension and take a look in the There's instructions here that explain how to install a VSIX file: https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix |
@bradlc I followed your instructions, but I get no Output at all. |
@datrinh Sorry, that was the wrong package, without the debug stuff 😅 Please could you try this one ( |
@bradlc Oddly enough, it has the same result. EDIT: Turns out I didn't have the latest VSCode installed. It works now that I moved VSCode into the programs folder. Sorry for the inconvinience... |
I'd used v1.4 vscode. After I updated vscode v1.5, everything works fine! |
Hi,
I updated all of my extensions yesterday and noticed that this extension has been broken since.
If I downgrade to a ^2 version then everything is fine and I'll continue with that for now.
When on version 3, the only output for the extension that I get in vscode is...
Node#before is deprecated. Use Node#raws.before
And I have not autocompletion anywhere (from what I can tell)
My versions are below
Version: 1.46.0
Commit: a5d1cc28bb5da32ec67e86cc50f84c67cc690321
Date: 2020-06-10T08:59:06.977Z
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.5.0
The text was updated successfully, but these errors were encountered: