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

WebStorm / IntelliJ support? #74

Closed
shirotech opened this issue May 8, 2020 · 9 comments
Closed

WebStorm / IntelliJ support? #74

shirotech opened this issue May 8, 2020 · 9 comments

Comments

@shirotech
Copy link

shirotech commented May 8, 2020

It seems like there is a plugin for LSP https://plugins.jetbrains.com/plugin/10209-lsp-support
https://github.com/gtache/intellij-lsp

I tried running the executable /usr/local/bin/svelteserver but nothing happens, can anyone point me to the right direction? Thanks.

Screen Shot 2020-05-09 at 2 37 10 am

Screen Shot 2020-05-09 at 2 48 00 am

@dummdidumm
Copy link
Member

I honestly don't know if the IntelliJ plugin even uses this language-server right here. Since this is a question related to that plugin, please ask the question over there.

@shirotech
Copy link
Author

I thought all LSP are standard, but anyways thanks for the quick response, I'll try asking over there. Cheers.

@dummdidumm
Copy link
Member

Maybe related #34

@jasonlyu123
Copy link
Member

I also tried it on vetur's vls. same result.

@benmccann
Copy link
Member

benmccann commented May 10, 2020

I thought all LSP are standard

I'm not sure, but the code seems to refer to VSCode specifically:

} from 'vscode-languageserver';

benmccann added a commit to benmccann/language-tools that referenced this issue May 10, 2020
It's hard to make your way from this repo to the plugin. We should make it easier to navigate by adding a link.

I originally was going to put the link in https://github.com/sveltejs/language-tools/blob/master/packages/svelte-vscode/README.md in sveltejs#76 but it appears that README is used directly in https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode so then I decided that wasn't the best place to put it

I also am clarifying in this PR that this repo is for a VSCode language server and that language servers aren't generic across IDEs. This was confusing to me and others. E.g. see sveltejs#74 (comment)
@benmccann
Copy link
Member

benmccann commented May 11, 2020

Actually, it does look like most IDEs support LSP. IDEA IntelliJ / WebStorm don't, but most others including Eclipse, Sublime Text, and Atom do.

https://microsoft.github.io/language-server-protocol/implementors/tools/

@orta
Copy link
Contributor

orta commented May 12, 2020

This should conform to the standard LSP interface (so it should work with any LSP compatible editor), though I'm afraid I have no advice on how to run the module as a standalone CLI tool. I don't know, I'd recommend digging into the source and seeing how it works.

@dummdidumm
Copy link
Member

From this comment it seems that it will work if you add the stdio flag.

@dummdidumm
Copy link
Member

Closing in favor of #361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants