sublimelsp / LSP-tailwindcss

Tailwind css support for Sublime's LSP plugin
MIT License
55 stars 6 forks source link

Unable to start LSP (exit code 1) #41

Closed stoneC0der closed 2 years ago

stoneC0der commented 2 years ago

Environment: Pop_OS! 20.04 Node: V14 Sublime Text 4: Latest version

Here is the LSP log:

LSP-tailwindcss: TypeError: Object.fromEntries is not a function

Additional logs:

LSP-tailwindcss: at cloneDeep (/home/stonecoder/.cache/sublime-text/Package Storage/LSP-tailwindcss/10.19.0/language-server/node_modules/@tailwindcss/language-server/bin/tailwindcss-language-server:51:168202) LSP-tailwindcss: at Object.fromEntries.Object.entries.map (/home/stonecoder/.cache/sublime-text/Package Storage/LSP-tailwindcss/10.19.0/language-server/node_modules/@tailwindcss/language-server/bin/tailwindcss-language-server:51:168249) LSP-tailwindcss: at Array.map () LSP-tailwindcss: at Object.cloneDeep (/home/stonecoder/.cache/sublime-text/Package Storage/LSP-tailwindcss/10.19.0/language-server/node_modules/@tailwindcss/language-server/bin/tailwindcss-language-server:51:168232) LSP-tailwindcss: at Object.26332 (/home/stonecoder/.cache/sublime-text/Package Storage/LSP-tailwindcss/10.19.0/language-server/node_modules/@tailwindcss/language-server/bin/tailwindcss-language-server:51:167109) LSP-tailwindcss: at nccwpck_require (/home/stonecoder/.cache/sublime-text/Package Storage/LSP-tailwindcss/10.19.0/language-server/node_modules/@tailwindcss/language-server/bin/tailwindcss-language-server:57:326058) LSP-tailwindcss: at Object.71343 (/home/stonecoder/.cache/sublime-text/Package Storage/LSP-tailwindcss/10.19.0/language-server/node_modules/@tailwindcss/language-server/bin/tailwindcss-language-server:51:65344) LSP-tailwindcss: at nccwpck_require (/home/stonecoder/.cache/sublime-text/Package Storage/LSP-tailwindcss/10.19.0/language-server/node_modules/@tailwindcss/language-server/bin/tailwindcss-language-server:57:326058) LSP-tailwindcss: at Object.64179 (/home/stonecoder/.cache/sublime-text/Package Storage/LSP-tailwindcss/10.19.0/language-server/node_modules/@tailwindcss/language-server/bin/tailwindcss-language-server:2:16881) LSP-tailwindcss: at __nccwpck_require__ (/home/stonecoder/.cache/sublime-text/Package Storage/LSP-tailwindcss/10.19.0/language-server/node_modules/@tailwindcss/language-server/bin/tailwindcss-language-server:57:326058)

stoneC0der commented 2 years ago

I find out what was problem, I am using nvm I believe that I have reach my max startup speed with nvm tweak in .zshrc

I have seen some workaround but right now I solve it by opening Sublime Text from the Terminal