Closed x-ji closed 1 year ago
The logs during the installation:
LSP :: Download tailwindcss started.
LSP :: Starting to download https://github.com/tailwindlabs/tailwindcss-intellisense/releases/download/v0.9.1/vscode-tailwindcss-0.9.1.vsix to /Users/jx/.emacs.d/.cache/lsp/tailwindcss/server.zip...
Contacting host: github.com:443
Wrote /Users/jx/.emacs.d/.cache/lsp/tailwindcss/server.zip
LSP :: Finished downloading /Users/jx/.emacs.d/.cache/lsp/tailwindcss/server.zip...
LSP :: Decompressing /Users/jx/.emacs.d/.cache/lsp/tailwindcss/server.zip...
(Shell command succeeded with no output)
LSP :: Decompressed /Users/jx/.emacs.d/.cache/lsp/tailwindcss/server...
LSP :: Server tailwindcss downloaded, auto-starting in 0 buffers.
When I run lsp-uninstall-server
, I see npm
also being an option available. Not sure if that is related to the tailwind server in any way though.
yeah, this error log did look like an environment issue... which node is in your path?
you can try M-x execute-extended-command and run (executable-find "node")
in the buffer you are trying to use the language server to see which node got used.
Weird. Now that I uninstalled the server and installed it again with lsp-install-server
, it worked this time. (executable-find "node")
returned "~/.asdf/shims/node" which seems to make sense.
glad it worked out :tada:
For some reason the tailwind language server errors and exits after I installed it via
M-x lsp-install-server
and tried to start it up. Here is the trace fromtailwindcss::stderr
:(The plugin in my VSCode works fine in the meanwhile.)
I suspect it might be a permission issue? Or maybe it's a mismatch between node versions in different places (I use asdf to manage my node version). Though I have no idea.
I'm using Spacemacs though I'm not sure if that's relevant to this error, since the installation is directly via
lsp-install-server
.