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.

Provide better error message if Python 3.6 or older is used to start the language server

See original GitHub issue

Describe the problem I am not able to get it to work at all.

To Reproduce

  1. Connect vscode to a remote vscode.
  2. Install plugin remote
  3. config settings like bellow
  4. open .robot file and the keywords are not recognized
  5. Plugin Output log 3 files: https://gist.github.com/axi92/72b0b4d9df40da18c5012a9b75652447

Screenshots image

Versions:

  • OS: Local Ubuntu 20.04 Remote Ubuntu 18.04
  • Robot Framework Version: 4.1.3
  • Robot Framework Language Server Version: 0.40.1
  • Client Version: VSCode 1.64.2

Logs

settings.json

{
  "[robot]": {
    "editor.tabSize": 4,
    "editor.insertSpaces": true
  },
  "files.watcherExclude": {
    "**/.git/objects/**": true,
    "**/.git/subtree-cache/**": true,
    "**/node_modules/*/**": true,
    "**/libspecs/**": true,
    "**/Log/**": true
  },
  "terminal.integrated.fontFamily": "monospace",
  "robot.language-server.python": "/usr/bin/python3.8",
  "robot.python.executable": "/usr/bin/python2.7",
  "robot.language-server.args": ["-vv", "--log-file=/home/user/repo/system-life-cycle/looog/robotframework_ls.log"],
  "robot.completions.keywords.format": "Title Case",
  "robot.editor.4spacesTab": true,
  "robot.codeFormatter": "builtinTidy",
  "robot.libraries.libdoc.preGenerate": [
    "BuiltIn",
    "Collections",
    "DateTime",
    "Dialogs",
    "Easter",
    "OperatingSystem",
    "Process",
    "Reserved",
    "Screenshot",
    "String",
    "Telnet",
    "XML",
    "AppiumLibrary",
    "DatabaseLibrary",
    "Selenium2Library",
    "SSHLibrary",
    "JSONLibrary",
    "MQTTLibrary",
    "WebSocketClient"
  ]
}

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
fabiozcommented, Feb 21, 2022

You can leave it open (as I repurposed it to provide a better error in this case in the future…).

1reaction
fabiozcommented, Feb 16, 2022

As a note, the docs aren’t entirely correct. You can use the following variables:

${workspace}, ${workspaceRoot}, ${workspaceFolder} and ${env.ENV_NAME_VARIABLE} or ${env:ENV_NAME_VARIABLE} for the value of robot variables (this was added but docs still don’t reflect that).

I’ll update the docs to address shortly…

Read more comments on GitHub >

github_iconTop Results From Across the Web

vscode python jedi client: couldn't create connection to server
I met this issue on Ubuntu 18.04 LTS with python interpreter python3.6.9 + VS code python extension 2022.14.
Read more >
VS Code Debugger not working for python - Microsoft Q&A
It seems when I do Run->"start Debugging' no command comes to terminal. Any VS Code log file that I can look at to...
Read more >
regular python needed for RPM package to install
I'm a DoD contractor trying to install s/w which is a .rpm file. When trying to run the program I get the following...
Read more >
What's New In Python 3.6 — Python 3.11.1 documentation
Starting with Python 3.6 the asyncio module is no longer provisional and its API is ... as well as provide better diagnostics for...
Read more >
codecs — Codec registry and base classes — Python 3.11.1 ...
Source code: Lib/codecs.py This module defines base classes for standard Python codecs (encoders and decoders) and provides access to the internal Python ......
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