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

Add compatibility with LSP Support plugin (CLion, IntelliJ and other) #52

Closed
Zymlex opened this issue Jan 2, 2021 · 5 comments
Closed
Labels
enhancement New feature or request

Comments

@Zymlex
Copy link
Member

Zymlex commented Jan 2, 2021

https://plugins.jetbrains.com/plugin/10209-lsp-support

изображение
изображение
изображение

@nedpals
Copy link
Member

nedpals commented Jan 2, 2021

Other editors aside from VSCode will be supported right after the basic features have been implemented.

@nedpals
Copy link
Member

nedpals commented Sep 3, 2021

Not really a priority ATM but I just want to check it out how it goes in the latest update. So far it is now working with the warning message appearing:
Screenshot from 2021-09-03 11-51-11

Unfortunately, the client immediately shutdown the communication for some reason (maybe it didn't like the response from the server

[Trace - 11:55:41] Sending notification 'window/showMessage'.
Params: {"jsonrpc":"2.0","method":"window/showMessage","params":{"type":2,"message":"VLS is a work-in-progress, pre-alpha language server. It may not be guaranteed to work reliably due to memory issues and other related factors. We encourage you to submit an issue if you encounter any problems."}}

[Trace - 11:55:41] Received request 'initialize - (0)'.
Params: {"jsonrpc":"2.0","id":"1","method":"initialize","params":{"processId":null,"rootUri":"file:///<home>/vlang/v-scope-inspector/","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true},"didChangeConfiguration":{},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{},"executeCommand":{},"workspaceFolders":false,"configuration":true},"textDocument":{"synchronization":{"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"completionItem":{"snippetSupport":true}},"hover":{},"signatureHelp":{},"references":{},"documentHighlight":{},"formatting":{},"rangeFormatting":{},"onTypeFormatting":{},"definition":{},"codeAction":{},"rename":{"prepareSupport":true,"dynamicRegistration":false},"semanticHighlightingCapabilities":{"semanticHighlighting":false}}}}}

[Trace - 11:55:41] Sending notification 'window/logMessage'.
Params: {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"VLS Version: 0.0.1, OS: linux 64"}}

[Trace - 11:55:41] Sending notification 'window/logMessage'.
Params: {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Client / Editor: Unknown"}}

[Trace - 11:55:41] Sending notification 'window/logMessage'.
Params: {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Using V path (VROOT): /home/ned/Downloads/v"}}

[Trace - 11:55:42] Sending response 'initialize - (0)' took 174ms
Result: {"jsonrpc":"2.0","id":"1","result":{"capabilities":{"textDocumentSync":2,"hoverProvider":true,"completionProvider":{"resolveProvider":false,"triggerCharacters":["=",".",":","{",",","("," "]},"signatureHelpProvider":{"triggerCharacters":["("],"retriggerCharacters":[","," "]},"definitionProvider":true,"typeDefinitionProvider":false,"implementationProvider":true,"referencesProvider":false,"documentHightlightProvider":false,"documentSymbolProvider":true,"workspaceSymbolProvider":true,"codeActionProvider":false,"codeLensProvider":{"resolveProvider":false},"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"","moreTriggerCharacter":[]},"renameProvider":false,"documentLinkProvider":false,"colorProvider":false,"declarationProvider":false,"executeCommandProvider":"","foldingRangeProvider":true,"experimental":{}}}}

[Trace - 11:55:42] Received request 'shutdown - (0)'.
Params: {"jsonrpc":"2.0","id":"2","method":"shutdown","params":null}

Anyways, we are now one step closer to making it compatible with Jetbrains.

@Zymlex
Copy link
Member Author

Zymlex commented Sep 3, 2021

Good news. Need a bigger compatibility with the IDE, not just notepads.

@nedpals
Copy link
Member

nedpals commented Jun 9, 2022

June 2022 update: still the same lol we'll just need to wait for Jetbrain Fleet then
image

@JalonSolov
Copy link

Intellij has had a plugin for a little while now, and JetBrain announced they are adding LSP support to Intellij in the next release.

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

No branches or pull requests

3 participants