Open leoyhk opened 11 months ago
Currently having the same issue, I checked the LspLog and when starting the lsp server I get this error: [ERROR][2024-02-05 19:02:38] ...lsp/handlers.lua:535 "Unhandled exception: Bad file descriptor\nError: Bad file descriptor"
same here with django (htmldjango)
...lsp/handlers.lua:535 "Unhandled exception: Bad file descriptor\nError: Bad file descriptor"
I came across the same thing while working on my project. The application is wrapped in Docker, the database container saves files to a local volume. I cloned the repository onto 2 machines and downloaded identical nvim configurations and tailwind LSPs. The tailwind LSP works correctly only where docker has not yet created the volume. On another machine, a line appears in the logs:
[ERROR][2024-05-14 18:21:02] ...lsp/handlers.lua:535 "Unhandled exception: Bad file descriptor\nError: Bad file descriptor"
The local volume folder definitely has special file permissions; repro in #815 shows how, due to some file permissions, the server receives an unhandled exception
Thoughts on this: perhaps the tailwind server should not look in directories ignored by git? I did not open files in volume on purpose - maybe the server is trying to get a list of files available to it?
latest updates broke it for me as well, I use Neovim btw.
@leoyhk Have you found a solution?
What version of VS Code are you using?
LazyVim
What version of Tailwind CSS IntelliSense are you using?
LSP version is 0.0.14 (installed with Mason)
What version of Tailwind CSS are you using?
3.3.5
What package manager are you using?
pnpm
What operating system are you using?
MacOS Sonoma 14.2
Tailwind config
VS Code settings
Reproduction URL https://github.com/leoyhk/tailwind-lsp-not-working/tree/main
Describe your issue IDE: Lazyvim
LSP Version: 0.0.14 (Installed with Mason)
Bug observed: LSP does not work when "tailwindCSS.experimental.configFile": "./packages/config/tailwind/index.ts", is active in .vscode/setting.json
Expected behavior: LSP provides suggestions and auto completion
How to Recreate:
LspInfo shows tailwindcss is up and running, but no suggestions are given while typing