-
Notifications
You must be signed in to change notification settings - Fork 218
Intellisense not working on Windows for some projects / setups (v0.12.x) #988
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
Same for me, I noticed not every project stopped working, but every monorepo project has stopped working. |
Just wasted 2 hours trying to figure this out... |
I have the same issue, it works in 0.10.5 but the latest one |
I have the same issue. It doesn't work in 0.12.0 on my window 11. |
I'm having the same issue with v0.12.0 on Windows. Rolling back to v0.10.5 worked for me. |
I experienced the same issue for the updated v0.12.0, at first, I thought it was a conflict from other extensions, Rolling back to v0.10.5 solved the problem. OS(windows 10) (VS Code version 1.90.2) |
Same for me: v0.12.0 does not work (Windows 10 + Dev containers), VS Code 1.90.2 Version 0.10.5 works |
Me too: v0.12.0 does not work on network drives. VS Code 1.90.2. v0.10.5 works fine |
Same for me with 0.12.0, had to downgrade to 0.10.5 to get it working again |
downgrade it an older version it worked for me. wasted like 5 hours of time figuring this bug out |
vscode 1.88.* not working |
Mine's also not working with version 0.12.0, downgrade to 0.10.5 solve the problem for now |
for me also its not working |
I have the same problem. 0.10.5 intellisense is working but only in the folder that contains the
|
Looking at the log output of v0.12.0 this seems like it's due to path normalization which should be fixed by #980. |
I'm working on pushing out a release with that fix right now |
v0.12.1 has been published please give it a test |
Added a note to try the update in the original issue/comment at the top |
@thecrypticace |
If you find you're still not getting IntelliSense on Windows with v0.12.1 double check that the folder path used when opening VSCode matches what's on disk. If those don't match then this extension, and many others probably, won't work correctly. When I first ran into this issue I was opening my workspace from GitHub Desktop which had a path casing that didn't match what was on disk. GitHub Desktop had I ran into this a second time with my pinned workspace in the task bar. Right click on the VSCode icon and hovering over my pinned workspace showed casing that also didn't match what was on disk. Un-pin, re-open, re-pin the workspace and everything worked again. |
@ndozhh I would've assumed it was a bug in v0.12.x that's causing it but given that you mentioned that it's also broken in v0.10.5 — maybe a VSCode update? I'm not sure. I would check what @xt0rted mentioned and see if you see anything different there. Any chance you can provide a reproduction repo that I can look at? Intellisense issues are notoriously complicated (and sometimes impossible) to debug without them. I'm going to look into this and see if I can figure out a workaround for the casing-difference behavior because it's rather unfortunate. Only problem is some filesystems are case-sensitive (kinda wish they all were tbh) and some are not so I can't just blindly lowercase everything. |
0.12.1 fixed it for me |
🙌 🙌 fantastic. I'll leave this issue open for another day and if more people report in that it's fixed I'll close it. |
same |
EDIT: alright so after some digging, i can confirm my settings still work for version 0.12.0. the most recent patch update to 0.12.1 stuffs it up. The key difference between the VSCode extension outputs between both versions is that they both attach watch processes to all the below patterns without issue, but only 0.12.0 recognizes the custom names root config and runs the follow-on initialization scripts...the below scripts are not run with the new 0.12.1 [tailwind-workspace-preset.ts] Initializing...
[tailwind-workspace-preset.ts] supported features: ["layer:base","separator:root","content-list","jit","css-at-config","relative-content-paths","transpiled-configs"]
[tailwind-workspace-preset.ts] Loaded tailwindcss v3.4.4: F:\[omitted]\node_modules\.pnpm\tailwindcss@3.4.4_ts-node@10.9.2_@swc+core@1.6.5_@swc+helpers@0.5.11__@types+node@20.14.8_typescript@5.5.2_\node_modules\tailwindcss
[tailwind-workspace-preset.ts] Loaded Tailwind CSS config file: f:/[omitted]/tailwind-workspace-preset.ts
[tailwind-workspace-preset.ts] Loaded postcss v8.4.38: F:\[omitted]\node_modules\.pnpm\postcss@8.4.38\node_modules\postcss
[tailwind-workspace-preset.ts] Building... mines cactus still. nx monorepo, been working smoothly all year till this new version. i have a root workspace config file that all app configs inherit from. i have a common ui folder that inherits from the workspace tailwind config, and any files within the apps or libs namespaced below have their appropriate tailwind configs. Im running a windows OS. vscode settings "tailwindCSS.experimental.configFile": {
"tailwind-workspace-preset.ts": ["libs/common/ui/**"],
"apps/app-1/app/tailwind.config.ts": ["apps/app-1/app/**", "libs/app-1/**"],
"apps/app-2/app/tailwind.config.ts": ["apps/app-2/app/**", "libs/app-2/**"],
"apps/app-3/tailwind.config.ts": ["apps/app-3/app/**", "libs/app-3/**"]
},
"tailwindCSS.classAttributes": ["class", "className", ".*Styles.*"],
"tailwindCSS.experimental.classRegex": [
["([\"'`][^\"'`]*.*?[\"'`])", "[\"'`]([^\"'`]*).*?[\"'`]"]
],
"tailwindCSS.files.exclude": [
"**/.git/**",
"**/dist/**",
"**/node_modules/**",
"**/.nx/**",
"**/.husky/**",
"**/pnpm-lock.yaml"
] prettier {
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"endOfLine": "auto",
"printWidth": 100,
"tabWidth": 2,
"singleQuote": false,
"trailingComma": "all",
"plugins": ["prettier-plugin-tailwindcss"],
"tailwindConfig": "tailwind-workspace-preset.ts",
"tailwindFunctions": ["tv"]
} |
@thecrypticace It's working now. The solution was to add an empty |
It's working, Thanks |
@thecrypticace this is on
|
Maybe you need to restart vscode? It's working fine here. The only difference in the two is some additional logging. Does your project folder have potential special characters in it? Like brackets, parents, curlies, spaces, etc? |
@thecrypticace yeah it has parentheses, is that an issue? |
Probably yeah — I should be able to fix that though! |
@thecrypticace I figured out why I can't install the latest version, I'm using Cursor (vscode fork) and they might be slightly behind so maybe the latest version of the extension is set to use a versions of vscode that Cursor hasn't updated to yet. I went back over to vscode and was able to get |
@thecrypticace I also just confirmed |
okay cool yeah. I bumped from micromatch to picomatch and I think parens are special there so that was something I missed during the upgrade. I'll see if I can take care of that today. 👍 |
I've released v0.12.4 which addresses some issues with matching documents to a project. Please update and report back. Thanks! |
@thecrypticace It still doesn't work, but it seems closer:
|
I'm also on Mac and 0.12 broke for me as well, rolled back to v0.10. I have tried 0.12.4, it did not make any difference that I can see. When loading, I see the following in output: This repeated many times:
Then this shows up in the middle - the remainder of the trace is all lines in the
Note that whatever error this is referencing, I'm not given a hint on where it's at in my source, assuming it's in my source. But it's also unlikely to be a valid parsing issue, as my linting all runs fine and my project doesn't have any errors. Then the original thing I pasted about matching project document prints a bunch more times. |
Mac: v0.12.4 not working |
@thecrypticace updated to prerelease, still not working. It would be really great to have more verbose logging in the output, I'm convinced multiple issues are occurring but that's tough to verify without logs. |
@erquhart Your issue is definitely separate — seems like maybe a syntax error in the config file or one of the required/imported files. The error is thrown by sucrase which we used in Mind opening a separate issue with details about your config file? |
@thecrypticace I think it's been broken this whole time for my use case (react native + twrnc), just not critically. "Building..." was always the last thing printed - unless that's expected, something was always a bit off. I can't put any more time into this, so don't have the necessary bits gathered to open a proper issue, so I'll just leave what I've found here in case it's useful for anyone, as it is indeed a project/setup issue that breaks with v0.12+.
I'm planning on riding with v0.10.5 until the wheels fall off. Pretty sure Tailwind v4 will change how all of this works anyway. |
@erquhart Ah! Okay the flow bit helps here I think. I'll look into it. Intellisense shouldn't totally break in the face of an invalid config — but your customizations won't show up of course and custom content paths won't necessarily be considered. |
@erquhart So I've reproduced this but in my testing it didn't work in v0.10.5 either. I might see if I can improve the status quo but the big problem here is that |
I've released v0.12.5 which should address a lot of issues around windows / linux / macOS with regards to symlinks, mapped drives of network shares, and mounts of virtual hard disks. |
@thecrypticace Success! Thank you! |
Thanks, It works perfect! |
I'm going to close this issue as all problems should be addressed. If you're still encountering issues please open another issue — thanks! |
@thecrypticace ah, I was including the |
There's a regression on my setup on Windows after updating 0.12.6 to 0.12.7. I get error in the Output |
Experiencing exactly the same (error and downgrade-solution). |
Me too, I'm getting that error on my VS Code. |
It is adding a |
Same issue here on MacOS: What version of VS Code are you using? What version of Tailwind CSS IntelliSense are you using? What version of Tailwind CSS are you using? What package manager are you using? What operating system are you using? |
Same here: Rolling back to 0.10.5 solves for now. |
Uh oh!
There was an error while loading. Please reload this page.
Maintainer's note:
v0.12.5 has been published please update and give it a test first
What version of VS Code are you using?
v1.90.2
What version of Tailwind CSS IntelliSense are you using?
v0.12.0
What version of Tailwind CSS are you using?
v3.4.4
What package manager are you using?
npm
What operating system are you using?
Windows
Tailwind config
VS Code settings
previous version works so I don't really wanna spend time to remove unrelated stuff from it.
Describe your issue
After last vscode extension update, it stoped working.
The text was updated successfully, but these errors were encountered: