Skip to content
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

Jetbrains support #361

Closed
maraisr opened this issue Jul 25, 2020 · 7 comments
Closed

Jetbrains support #361

maraisr opened this issue Jul 25, 2020 · 7 comments
Labels
feature request New feature or request help wanted Extra attention is needed

Comments

@maraisr
Copy link

maraisr commented Jul 25, 2020

Is your feature request related to a problem? Please describe.
I can see there is an official plugin for vscode, but not the Jetbrains?

Describe the solution you'd like
I can see that https://github.com/tomblachut/svelte-intellij already has a plugin, but this doesnt work. The plugin has been marked as broken, so when you install it—it specifically asks to opt into beta code. That and, if i do there is no TypeScript support.

Describe alternatives you've considered
Moving to vscode... But that is a much bigger ask.

How important is this feature to you?
Extremely. So much so that I'd try find some Java developers to help me with this.

Additional context
na

@daarxwalker
Copy link

@maraisr
I share your mindset with this. I contacted JB plugin author and he promised, he will work on that, it was maybe 3-4 weeks before, offering him help too with tests, no response since that time. Btw. nowadays Kotlin is better option for JB plugins.

@dummdidumm
Copy link
Member

Collaborator from the language tools repo here: Sadly intellij does not support the language server protocol which the extension for VSCode is based on. So this is out of scope for us right now. As you said, your best chance right now is helping the author of the intellij plugin.

@orta
Copy link
Contributor

orta commented Jul 25, 2020

Yeah, it may be easier for all folks involved to look into making a new plugin which explicitly uses the LSP from svelte-language-server - I imagine there must be existing patterns for this in the jet brains ecosystem

@orta orta transferred this issue from sveltejs/svelte Jul 25, 2020
@dummdidumm
Copy link
Member

Related #74

@dummdidumm dummdidumm added feature request New feature or request help wanted Extra attention is needed labels Jul 25, 2020
@lingster
Copy link

lingster commented Aug 11, 2020

Hi,
Sorry please ignore the below, it was not quite working as expected..will post an update once I have it working...

hope this will help, but you can get intellij support by installing the intellij-lsp from here:
https://plugins.jetbrains.com/plugin/10209-lsp-support
then in command line run:
npm install -g svelte-language-server
then in intellij preferences for the language server add the settings as follows:
note, you can run which sveltesever to find the full path of the server and replace, screenshot shows path on my mac, you milage may vary depending on your OS version:

Screenshot 2020-08-11 at 10 45 22

@g5becks
Copy link

g5becks commented Dec 12, 2020

@lingster This solution actually works on my end, I didn't use raw command though, I used the executable option and added --stdio as an arg.

@vatro
Copy link
Contributor

vatro commented Mar 17, 2021

@lingster @g5becks @dummdidumm

can confirm @lingster's solution works on Windows10 + WebStorm 2020.3.3 + LSP Support Plugin ! 👍

image

Autocomplete / typechecking behavior is (almost?) the same as with "Svelte for VSCode", but without syntax highlighting and some other features ( auto-import, component JSX attributes autocomplete ... etc. )

@maraisr maraisr closed this as completed Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants