Tailwind inteli in not working(
Answered
Please sign in to leave a comment.
Have you installed the language server globally? E.g. please try
npm install -g @tailwindcss/language-server
and restart Fleet. If the problem remains, please attach Fleet logs (please use Help | Collect Logs... action to collect them) after reproducing. Thank you.For uploading you can use https://uploads.jetbrains.com or any file sharing service.
Hi Andrey, would that also work with other language servers like the Svelte language server? I suppose the current Svelte plugin in Fleet is Jetbrains custom implementation instead of Svelte's official, which does not work for me.
Svelte support in Fleet indeed is implemented via our own solution, that comes from WebStorm Svelte integration. We have added initial such support in Fleet.
Could you clarify, please, what kind of Svelte integration support ideally you would like to see? Thank you.
Hi Andrey,
First of all, thank you for your work and for the hands on approach regarding customer feedback. Keep in mind I do not build language servers like you do at Jetbrains, so please don't take this as an insult or as my trying to lecture you. I am solely providing my opinion because I really want to use Fleet for my Svelte development and ditch other IDEs.
In my opinion there are two important factors that make good Svelte support via a third party (Jetbrains) language server unfeasible if not impossible:
Firstly, Svelte is a compiler, so no Javascript but a language that closely resembles JS and transpiles to it. This Javascript fork has its own features, behaviour and characteristics throughout the whole language. Think about how the Svelte language handles reactivity, export variables, computed values and the templating system with all its behaviour with type handling and other features. The language is constantly evolving especially with Svelte 5 well on it's way. Other, non-compiler, frameworks like Vue or React may be more easily supported in a custom language server due to them using Javascript and sometimes JSX, so a lot of heavy lifting can be handled by the generic JS/TS language server. Making an own implementation of the Svelte language server means constantly adapting to this rapidly changing language or the IDE becomes unusable for the language.
Secondly, SvelteKit is a very aggressive, opinionated meta framework that evolves in an even higher pace. A good example is the recently introduced zero-effort type safety. The language server recognises the exported variable name and in combination with the type of Svelte/ +*.ts file and automatically fills in the function parameters and return type. Plenty of other tricks and QOL improvements are made every week. Keeping up seems impossible to me, or at least with a big delay.
I am positive these are also some of the considerations made by the Webstorm team in their choice to support the official Svelte language server in their latest EAP: https://blog.jetbrains.com/webstorm/2023/06/webstorm-2023-2-eap5/#svelte_lsp_support
Corresponding YouTrack issue: https://youtrack.jetbrains.com/issue/WEB-58397
Thank you for your time and attention, I'd love you hear your thoughts on this.
Thank you very much for your feedback! I've filled the request for the team to investigate and consider this approach: FL-20398 Svelte support over LSP
Please feel free to vote/leave your feedback there. Thanks!