question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Language server 0.6.x does not anymore work with PyCHarm

See original GitHub issue

Describe the bug Language server 0.6.0 and 0.6.1 does not anymore work with PyCharm, but the 0.5.0 works normally.

To Reproduce Configure LSP with with RF Forum instructions. Open PyCharm and wait it start up properly. Open existing .robot file and then automatic completion does not work.

Expected behavior Did expect automatic keyword completion wot work, but example SeleniumLibrary or BuiltIn keywords are not visible:

Screenshots image

Versions:

  • OS: Windows 10
  • Robot Framework Version 3.2.2
  • Robot Framework Language Server Version 0.6.0 and 0.6.1
  • Client Version PyCharm 2020.2.4

Logs In the logs I see this:

lsp: 2020-11-30 23:14:12 UTC pid: 3496 - MainThread - DEBUG - robotframework_ls.__main__
Arguments: ['-vv', '--log-file=C:\\workspace\\advanced-seleniumlibrary-workshop\\lsp\\debug\\robotframework_ls.log']

lsp: 2020-11-30 23:14:12 UTC pid: 3496 - MainThread - DEBUG - robotframework_ls.__main__
Python: 3.9.0 (tags/v3.9.0:9cf6752, Oct  5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] - lsp: 0.6.1 - platform: win32 - sys.prefix: c:\workspace\advanced-seleniumlibrary-workshop\.venv - sys.executable: c:\workspace\advanced-seleniumlibrary-workshop\.venv\scripts\python.exe

lsp: 2020-11-30 23:14:12 UTC pid: 3496 - MainThread - INFO - robocorp_ls_core.python_ls
Starting RobotFrameworkLanguageServer IO language server. pid: 3496

lsp: 2020-11-30 23:14:12 UTC pid: 3496 - MainThread - DEBUG - robotframework_ls.robotframework_ls_impl
Cache dir: C:\Users\gtn-admin\.robotframework-ls\.cache

lsp: 2020-11-30 23:14:13 UTC pid: 3496 - MainThread - DEBUG - robocorp_ls_core.jsonrpc.streams
Read: {"jsonrpc":"2.0","id":"1","method":"initialize","params":{"processId":null,"rootUri":"file:///C:/workspace/advanced-seleniumlibrary-workshop/","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}}}}}

lsp: 2020-11-30 23:14:13 UTC pid: 3496 - MainThread - DEBUG - robocorp_ls_core.jsonrpc.endpoint
Handling request from client {'jsonrpc': '2.0', 'id': '1', 'method': 'initialize', 'params': {'processId': None, 'rootUri': 'file:///C:/workspace/advanced-seleniumlibrary-workshop/', '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}}}}}

lsp: 2020-11-30 23:14:13 UTC pid: 3496 - MainThread - DEBUG - robocorp_ls_core.python_ls
Language server initialized with:
    processId: None
    rootUri: file:///C:/workspace/advanced-seleniumlibrary-workshop/
    rootPath: None
    initializationOptions: None
    workspaceFolders: None

lsp: 2020-11-30 23:14:13 UTC pid: 3496 - MainThread - INFO - robotframework_ls.robotframework_ls_impl
Server capabilities: {'codeActionProvider': False, 'completionProvider': {'resolveProvider': False}, 'documentFormattingProvider': True, 'documentHighlightProvider': False, 'documentRangeFormattingProvider': False, 'documentSymbolProvider': False, 'definitionProvider': True, 'executeCommandProvider': {'commands': ['robot.addPluginsDir', 'robot.resolveInterpreter']}, 'hoverProvider': False, 'referencesProvider': False, 'renameProvider': False, 'foldingRangeProvider': False, 'signatureHelpProvider': {'triggerCharacters': []}, 'textDocumentSync': {'change': 2, 'save': {'includeText': False}, 'openClose': True}, 'workspace': {'workspaceFolders': {'supported': True, 'changeNotifications': True}}, 'workspaceSymbolProvider': {'workDoneProgress': False}}

lsp: 2020-11-30 23:14:13 UTC pid: 3496 - MainThread - DEBUG - robocorp_ls_core.jsonrpc.endpoint
Got result from synchronous request handler (in 0.00s): {'capabilities': {'codeActionProvider': False, 'completionProvider': {'resolveProvider': False}, 'documentFormattingProvider': True, 'documentHighlightProvider': False, 'documentRangeFormattingProvider': False, 'documentSymbolProvider': False, 'definitionProvider': True, 'executeCommandProvider': {'commands': ['robot.addPluginsDir', 'robot.resolveInterpreter']}, 'hoverProvider': False, 'referencesProvider': False, 'renameProvider': False, 'foldingRangeProvider': False, 'signatureHelpProvider': {'triggerCharacters': []}, 'textDocumentSync': {'change': 2, 'save': {'includeText': False}, 'openClose': True}, 'workspace': {'workspaceFolders': {'supported': True, 'changeNotifications': True}}, 'workspaceSymbolProvider': {'workDoneProgress': False}}}

lsp: 2020-11-30 23:14:13 UTC pid: 3496 - MainThread - DEBUG - robocorp_ls_core.jsonrpc.streams
Writing: {'jsonrpc': '2.0', 'id': '1', 'result': {'capabilities': {'codeActionProvider': False, 'completionProvider': {'resolveProvider': False}, 'documentFormattingProvider': True, 'documentHighlightProvider': False, 'documentRangeFormattingProvider': False, 'documentSymbolProvider': False, 'definitionProvider': True, 'executeCommandProvider': {'commands': ['robot.addPluginsDir', 'robot.resolveInterpreter']}, 'hoverProvider': False, 'referencesProvider': False, 'renameProvider': False, 'foldingRangeProvider': False, 'signatureHelpProvider': {'triggerCharacters': []}, 'textDocumentSync': {'change': 2, 'save': {'includeText': False}, 'openClose': True}, 'workspace': {'workspaceFolders': {'supported': True, 'changeNotifications': True}}, 'workspaceSymbolProvider': {'workDoneProgress': False}}}}

lsp: 2020-11-30 23:14:13 UTC pid: 3496 - MainThread - DEBUG - robocorp_ls_core.jsonrpc.streams
Read: {"jsonrpc":"2.0","id":"2","method":"shutdown","params":null}

lsp: 2020-11-30 23:14:13 UTC pid: 3496 - MainThread - DEBUG - robocorp_ls_core.jsonrpc.endpoint
Handling request from client {'jsonrpc': '2.0', 'id': '2', 'method': 'shutdown', 'params': None}

lsp: 2020-11-30 23:14:13 UTC pid: 3496 - MainThread - DEBUG - robocorp_ls_core.jsonrpc.endpoint
Got result from synchronous request handler (in 0.00s): None

lsp: 2020-11-30 23:14:13 UTC pid: 3496 - MainThread - DEBUG - robocorp_ls_core.jsonrpc.streams
Writing: {'jsonrpc': '2.0', 'id': '2', 'result': None}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
fabiozcommented, Feb 10, 2021

We now have a plugin setup for the language server integration for Intellij.

See: https://github.com/robocorp/robotframework-lsp/blob/master/robotframework-intellij/README.md

0reactions
aaltatcommented, Feb 10, 2021

Thank you for great work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IntelliJ support for Language Server Protocol (as a client)?
We're looking at creating a new IDE for Coq, a proof assistant (https://coq.inria.fr/). IntelliJ seems like a possible candidate for the...
Read more >
Pycharm suddenly not detecting ANY Django tags in template
I have invalidated cache, triple-checked my INSTALLED_APPS and my settings.py in general. Again, it's working fine. Just throwing warnings that ...
Read more >
Unable to start a fresh new plugin
* I created an IntelliJ Platform Plugin project, and ran it, while the project was still empty. IntelliJ opens a window with a...
Read more >
Angular CLI 6.0.0 and Karma: Karma server don't rebuild code ...
If I try to test changed code, the karma server doesn't rebuild the source and its currently testing the code it built first....
Read more >
unable to save settings – IDEs Support (IntelliJ Platform)
(I have added the folder 'idea' as a guess attempt to fix but still doesn't work...) Thanks. 0.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found