robocorp / robotframework-lsp

Robocorp extensions for VS Code: Robocorp Code and RFW LSP
https://robocorp.com/docs/developer-tools/visual-studio-code
Apache License 2.0
206 stars 93 forks source link

VS Code doesn't have the correct environment after creating a robot template, autocompletion doesn't work #583

Closed vincentmathis closed 2 years ago

vincentmathis commented 2 years ago

Describe the bug After creating a new Robot, the development environment isn't set up correctly.

Error in "import robot".
It seems that Robot Framework is not installed in C:\Users\xxxxx\scoop\apps\python\current\python.exe.
Please install it in your environment and restart the Robot Framework Language Server
or set: "robot.language-server.python" or "robot.python.executable"
to point to a python installation that has Robot Framework installed.
Hint: with pip it can be installed with:
C:\Users\xxxxx\scoop\apps\python\current\python.exe -m pip install robotframework

No keyword autocompletion, no "Load in Interactive Console" appears in the editor.

To Reproduce Steps to reproduce the behavior:

  1. Install Robocorp Code and Robotframework Language Server extensions for VS Code
  2. Robocorp: Create Robot
  3. Standard Robot Framework template
  4. Use workspace folder

Expected behavior Automatical creation of a environment with robotframework installed. If the robot contains conda.yaml file, the environment is created according to the config given. Where is this environment, why isn't the environment selected for vs code?

Versions:

fabioz commented 2 years ago

@kariharju I believe that the issue is that rcc is providing the wrong python executable to the language server.

So, this wasn't fully resolved with: https://github.com/robocorp/rcc/commit/9581710c199b470df261c0d6436535bde168382d

I think the implementation in RCC should always make sure that it considers/provides the paths inside of the holotree first so that this kind of issue doesn't happen...

@vincentmathis can you provide the contents of OUTPUT > Robot Framework and OUTPUT > Robocorp Code to make sure that this is actually what's happening?

vincentmathis commented 2 years ago

Robot Framework output:

Plugins dir: C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robocorp-code-0.27.1\src\robocorp_code\plugins.
Getting language server Python executable.
Waiting for RobotFramework (python) Language Server to finish activating...
Language server Python executable gotten from robocorp.getLanguageServerPython.
Starting RobotFramework Language Server with args: C:\Users\mathis\scoop\apps\python\current\python.exe,-u,C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\__main__.py,-v
lsp: 2022-02-22 16:56:50 UTC pid: 4636 - MainThread - INFO - robotframework_ls.__main__
Arguments: ['-v']

lsp: 2022-02-22 16:56:50 UTC pid: 4636 - MainThread - INFO - robotframework_ls.__main__
Python: 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] - lsp: 0.40.1 (<module 'robotframework_ls' from 'C:\\Users\\mathis\\scoop\\persist\\vscode\\data\\extensions\\robocorp.robotframework-lsp-0.40.1\\src\\robotframework_ls\\__init__.py'>) - platform: win32 - sys.prefix: C:\Users\mathis\scoop\apps\python\current - sys.executable: C:\Users\mathis\scoop\apps\python\current\python.exe

lsp: 2022-02-22 16:56:50 UTC pid: 4636 - MainThread - INFO - robocorp_ls_core.python_ls
Starting RobotFrameworkLanguageServer IO language server. pid: 4636

lsp: 2022-02-22 16:56:50 UTC pid: 4636 - MainThread - INFO - robotframework_ls.robotframework_ls_impl
Using watch implementation: watchdog (customize with ROBOTFRAMEWORK_LS_WATCH_IMPL environment variable)

lsp: 2022-02-22 16:56:50 UTC pid: 4636 - MainThread - INFO - robocorp_ls_core.remote_fs_observer_impl
Initializing Remote FS Observer with the following args: ['C:\\Users\\mathis\\scoop\\apps\\python\\current\\python.exe', '-u', 'C:\\Users\\mathis\\scoop\\persist\\vscode\\data\\extensions\\robocorp.robotframework-lsp-0.40.1\\src\\robotframework_ls\\vendored\\robocorp_ls_core\\remote_fs_observer__main__.py', '-v']

remote_fs_observer: 2022-02-22 16:56:50 UTC pid: 12116 - MainThread - INFO - robocorp_ls_core.remote_fs_observer__main__

Arguments: ['-v']

remote_fs_observer: 2022-02-22 16:56:50 UTC pid: 12116 - MainThread - INFO - robocorp_ls_core.remote_fs_observer__main__

Python: 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] - lsp: <unable to get __version__> (<module 'robocorp_ls_core' from 'C:\\Users\\mathis\\scoop\\persist\\vscode\\data\\extensions\\robocorp.robotframework-lsp-0.40.1\\src\\robotframework_ls\\vendored\\robocorp_ls_core\\__init__.py'>) - platform: win32 - sys.prefix: C:\Users\mathis\scoop\apps\python\current - sys.executable: C:\Users\mathis\scoop\apps\python\current\python.exe

server-api: 2022-02-22 16:56:53 UTC pid: 16156 - MainThread - INFO - robotframework_ls.__main__
Arguments: ['-v']

server-api: 2022-02-22 16:56:53 UTC pid: 16156 - MainThread - INFO - robotframework_ls.__main__
Python: 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] - lsp: 0.40.1 (<module 'robotframework_ls' from 'C:\\Users\\mathis\\scoop\\persist\\vscode\\data\\extensions\\robocorp.robotframework-lsp-0.40.1\\src\\robotframework_ls\\__init__.py'>) - platform: win32 - sys.prefix: C:\Users\mathis\scoop\apps\python\current - sys.executable: C:\Users\mathis\scoop\apps\python\current\python.exe

server-api: 2022-02-22 16:56:53 UTC pid: 16156 - MainThread - INFO - robocorp_ls_core.python_ls
Starting RobotFrameworkServerApiWithObserver IO language server. pid: 16156

server-api: 2022-02-22 16:56:53 UTC pid: 16156 - MainThread - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:53 UTC pid: 16156 - MainThread - INFO - robotframework_ls.impl.libspec_manager
User libspec dir: C:\Users\mathis\.robotframework-ls\specs\v2\9b5dc39d_unknown\user

server-api: 2022-02-22 16:56:53 UTC pid: 16156 - MainThread - INFO - robotframework_ls.impl.libspec_manager
Builtins libspec dir: C:\Users\mathis\.robotframework-ls\specs\v2\9b5dc39d_unknown\builtins

server-api: 2022-02-22 16:56:53 UTC pid: 16156 - ThreadPoolExecutor-1_1 - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:53 UTC pid: 16156 - ThreadPoolExecutor-1_0 - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:53 UTC pid: 16156 - ThreadPoolExecutor-1_6 - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:53 UTC pid: 16156 - ThreadPoolExecutor-1_7 - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:53 UTC pid: 16156 - ThreadPoolExecutor-1_8 - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:53 UTC pid: 16156 - ThreadPoolExecutor-1_4 - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:54 UTC pid: 16156 - ThreadPoolExecutor-1_3 - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:54 UTC pid: 16156 - ThreadPoolExecutor-1_5 - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:54 UTC pid: 16156 - ThreadPoolExecutor-1_2 - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:54 UTC pid: 16156 - ThreadPoolExecutor-1_9 - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:55 UTC pid: 16156 - ThreadPoolExecutor-1_7 - EXCEPTION - robotframework_ls.impl.libspec_manager
Error creating libspec: String.
Return code: 1
Output:
C:\Users\mathis\scoop\apps\python\current\python.exe: Error while finding module specification for 'robot.libdoc' (ModuleNotFoundError: No module named 'robot')

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 914, in _cached_create_libspec
    self._subprocess_check_output(
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 800, in _subprocess_check_output
    return subprocess.check_output(*args, **kwargs)
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\mathis\\scoop\\apps\\python\\current\\python.exe', '-m', 'robot.libdoc', 'String', 'C:\\Users\\mathis\\.robotframework-ls\\specs\\v2\\9b5dc39d_unknown\\builtins\\String.libspec']' returned non-zero exit status 1.
server-api: 2022-02-22 16:56:55 UTC pid: 16156 - ThreadPoolExecutor-1_7 - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:55 UTC pid: 16156 - ThreadPoolExecutor-1_1 - EXCEPTION - robotframework_ls.impl.libspec_manager
Error creating libspec: BuiltIn.
Return code: 1
Output:
C:\Users\mathis\scoop\apps\python\current\python.exe: Error while finding module specification for 'robot.libdoc' (ModuleNotFoundError: No module named 'robot')

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 914, in _cached_create_libspec
    self._subprocess_check_output(
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 800, in _subprocess_check_output
    return subprocess.check_output(*args, **kwargs)
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\mathis\\scoop\\apps\\python\\current\\python.exe', '-m', 'robot.libdoc', 'BuiltIn', 'C:\\Users\\mathis\\.robotframework-ls\\specs\\v2\\9b5dc39d_unknown\\builtins\\BuiltIn.libspec']' returned non-zero exit status 1.
server-api: 2022-02-22 16:56:55 UTC pid: 16156 - ThreadPoolExecutor-1_0 - EXCEPTION - robotframework_ls.impl.libspec_manager
Error creating libspec: Dialogs.
Return code: 1
Output:
C:\Users\mathis\scoop\apps\python\current\python.exe: Error while finding module specification for 'robot.libdoc' (ModuleNotFoundError: No module named 'robot')

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 914, in _cached_create_libspec
    self._subprocess_check_output(
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 800, in _subprocess_check_output
    return subprocess.check_output(*args, **kwargs)
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\mathis\\scoop\\apps\\python\\current\\python.exe', '-m', 'robot.libdoc', 'Dialogs', 'C:\\Users\\mathis\\.robotframework-ls\\specs\\v2\\9b5dc39d_unknown\\builtins\\Dialogs.libspec']' returned non-zero exit status 1.
server-api: 2022-02-22 16:56:55 UTC pid: 16156 - ThreadPoolExecutor-1_3 - EXCEPTION - robotframework_ls.impl.libspec_manager
Error creating libspec: Easter.
Return code: 1
Output:
C:\Users\mathis\scoop\apps\python\current\python.exe: Error while finding module specification for 'robot.libdoc' (ModuleNotFoundError: No module named 'robot')

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 914, in _cached_create_libspec
    self._subprocess_check_output(
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 800, in _subprocess_check_output
    return subprocess.check_output(*args, **kwargs)
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\mathis\\scoop\\apps\\python\\current\\python.exe', '-m', 'robot.libdoc', 'Easter', 'C:\\Users\\mathis\\.robotframework-ls\\specs\\v2\\9b5dc39d_unknown\\builtins\\Easter.libspec']' returned non-zero exit status 1.
server-api: 2022-02-22 16:56:55 UTC pid: 16156 - ThreadPoolExecutor-1_2 - EXCEPTION - robotframework_ls.impl.libspec_manager
Error creating libspec: Screenshot.
Return code: 1
Output:
C:\Users\mathis\scoop\apps\python\current\python.exe: Error while finding module specification for 'robot.libdoc' (ModuleNotFoundError: No module named 'robot')

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 914, in _cached_create_libspec
    self._subprocess_check_output(
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 800, in _subprocess_check_output
    return subprocess.check_output(*args, **kwargs)
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\mathis\\scoop\\apps\\python\\current\\python.exe', '-m', 'robot.libdoc', 'Screenshot', 'C:\\Users\\mathis\\.robotframework-ls\\specs\\v2\\9b5dc39d_unknown\\builtins\\Screenshot.libspec']' returned non-zero exit status 1.
server-api: 2022-02-22 16:56:55 UTC pid: 16156 - ThreadPoolExecutor-1_8 - EXCEPTION - robotframework_ls.impl.libspec_manager
Error creating libspec: XML.
Return code: 1
Output:
C:\Users\mathis\scoop\apps\python\current\python.exe: Error while finding module specification for 'robot.libdoc' (ModuleNotFoundError: No module named 'robot')

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 914, in _cached_create_libspec
    self._subprocess_check_output(
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 800, in _subprocess_check_output
    return subprocess.check_output(*args, **kwargs)
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\mathis\\scoop\\apps\\python\\current\\python.exe', '-m', 'robot.libdoc', 'XML', 'C:\\Users\\mathis\\.robotframework-ls\\specs\\v2\\9b5dc39d_unknown\\builtins\\XML.libspec']' returned non-zero exit status 1.
server-api: 2022-02-22 16:56:55 UTC pid: 16156 - ThreadPoolExecutor-1_6 - EXCEPTION - robotframework_ls.impl.libspec_manager
Error creating libspec: Collections.
Return code: 1
Output:
C:\Users\mathis\scoop\apps\python\current\python.exe: Error while finding module specification for 'robot.libdoc' (ModuleNotFoundError: No module named 'robot')

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 914, in _cached_create_libspec
    self._subprocess_check_output(
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 800, in _subprocess_check_output
    return subprocess.check_output(*args, **kwargs)
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\mathis\\scoop\\apps\\python\\current\\python.exe', '-m', 'robot.libdoc', 'Collections', 'C:\\Users\\mathis\\.robotframework-ls\\specs\\v2\\9b5dc39d_unknown\\builtins\\Collections.libspec']' returned non-zero exit status 1.
server-api: 2022-02-22 16:56:55 UTC pid: 16156 - ThreadPoolExecutor-1_5 - EXCEPTION - robotframework_ls.impl.libspec_manager
Error creating libspec: OperatingSystem.
Return code: 1
Output:
C:\Users\mathis\scoop\apps\python\current\python.exe: Error while finding module specification for 'robot.libdoc' (ModuleNotFoundError: No module named 'robot')

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 914, in _cached_create_libspec
    self._subprocess_check_output(
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 800, in _subprocess_check_output
    return subprocess.check_output(*args, **kwargs)
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\mathis\\scoop\\apps\\python\\current\\python.exe', '-m', 'robot.libdoc', 'OperatingSystem', 'C:\\Users\\mathis\\.robotframework-ls\\specs\\v2\\9b5dc39d_unknown\\builtins\\OperatingSystem.libspec']' returned non-zero exit status 1.
server-api: 2022-02-22 16:56:55 UTC pid: 16156 - ThreadPoolExecutor-1_4 - EXCEPTION - robotframework_ls.impl.libspec_manager
Error creating libspec: Telnet.
Return code: 1
Output:
C:\Users\mathis\scoop\apps\python\current\python.exe: Error while finding module specification for 'robot.libdoc' (ModuleNotFoundError: No module named 'robot')

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 914, in _cached_create_libspec
    self._subprocess_check_output(
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 800, in _subprocess_check_output
    return subprocess.check_output(*args, **kwargs)
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\mathis\\scoop\\apps\\python\\current\\python.exe', '-m', 'robot.libdoc', 'Telnet', 'C:\\Users\\mathis\\.robotframework-ls\\specs\\v2\\9b5dc39d_unknown\\builtins\\Telnet.libspec']' returned non-zero exit status 1.
server-api: 2022-02-22 16:56:55 UTC pid: 16156 - ThreadPoolExecutor-1_9 - EXCEPTION - robotframework_ls.impl.libspec_manager
Error creating libspec: Process.
Return code: 1
Output:
C:\Users\mathis\scoop\apps\python\current\python.exe: Error while finding module specification for 'robot.libdoc' (ModuleNotFoundError: No module named 'robot')

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 914, in _cached_create_libspec
    self._subprocess_check_output(
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 800, in _subprocess_check_output
    return subprocess.check_output(*args, **kwargs)
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\mathis\\scoop\\apps\\python\\current\\python.exe', '-m', 'robot.libdoc', 'Process', 'C:\\Users\\mathis\\.robotframework-ls\\specs\\v2\\9b5dc39d_unknown\\builtins\\Process.libspec']' returned non-zero exit status 1.
server-api: 2022-02-22 16:56:56 UTC pid: 16156 - ThreadPoolExecutor-1_7 - EXCEPTION - robotframework_ls.impl.libspec_manager
Error creating libspec: DateTime.
Return code: 1
Output:
C:\Users\mathis\scoop\apps\python\current\python.exe: Error while finding module specification for 'robot.libdoc' (ModuleNotFoundError: No module named 'robot')

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 914, in _cached_create_libspec
    self._subprocess_check_output(
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\libspec_manager.py", line 800, in _subprocess_check_output
    return subprocess.check_output(*args, **kwargs)
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\mathis\scoop\apps\python\current\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\mathis\\scoop\\apps\\python\\current\\python.exe', '-m', 'robot.libdoc', 'DateTime', 'C:\\Users\\mathis\\.robotframework-ls\\specs\\v2\\9b5dc39d_unknown\\builtins\\DateTime.libspec']' returned non-zero exit status 1.
server-api: 2022-02-22 16:56:56 UTC pid: 16156 - MainThread - EXCEPTION - robotframework_ls.server_api.server
Error in "import robot".
It seems that Robot Framework is not installed in C:\Users\mathis\scoop\apps\python\current\python.exe.
Please install it in your environment and restart the Robot Framework Language Server
or set: "robot.language-server.python" or "robot.python.executable"
to point to a python installation that has Robot Framework installed.
Hint: with pip it can be installed with:
C:\Users\mathis\scoop\apps\python\current\python.exe -m pip install robotframework

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\server_api\server.py", line 78, in m_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:56 UTC pid: 16156 - MainThread - INFO - robotframework_ls.server_api.server
Error in "import robot".
It seems that Robot Framework is not installed in C:\Users\mathis\scoop\apps\python\current\python.exe.
Please install it in your environment and restart the Robot Framework Language Server
or set: "robot.language-server.python" or "robot.python.executable"
to point to a python installation that has Robot Framework installed.
Hint: with pip it can be installed with:
C:\Users\mathis\scoop\apps\python\current\python.exe -m pip install robotframework

server-api: 2022-02-22 16:56:57 UTC pid: 17152 - MainThread - INFO - robotframework_ls.__main__
Arguments: ['-v']

server-api: 2022-02-22 16:56:57 UTC pid: 17152 - MainThread - INFO - robotframework_ls.__main__
Python: 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] - lsp: 0.40.1 (<module 'robotframework_ls' from 'C:\\Users\\mathis\\scoop\\persist\\vscode\\data\\extensions\\robocorp.robotframework-lsp-0.40.1\\src\\robotframework_ls\\__init__.py'>) - platform: win32 - sys.prefix: C:\Users\mathis\scoop\apps\python\current - sys.executable: C:\Users\mathis\scoop\apps\python\current\python.exe

server-api: 2022-02-22 16:56:57 UTC pid: 17152 - MainThread - INFO - robocorp_ls_core.python_ls
Starting RobotFrameworkServerApiWithObserver IO language server. pid: 17152

server-api: 2022-02-22 16:56:57 UTC pid: 17152 - MainThread - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:56:57 UTC pid: 17152 - MainThread - INFO - robotframework_ls.impl.libspec_manager
User libspec dir: C:\Users\mathis\.robotframework-ls\specs\v2\9b5dc39d_unknown\user

server-api: 2022-02-22 16:56:57 UTC pid: 17152 - MainThread - INFO - robotframework_ls.impl.libspec_manager
Builtins libspec dir: C:\Users\mathis\.robotframework-ls\specs\v2\9b5dc39d_unknown\builtins

RobotFramework Language Server ready. Took: 32.7s
Exception in thread Thread-4 (_on_thread):
Traceback (most recent call last):
  File "C:\Users\mathis\scoop\apps\python\current\lib\threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "C:\Users\mathis\scoop\apps\python\current\lib\threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_workspace.py", line 294, in _on_thread
    for uri, symbols_cache in self.iter_uri_and_symbols_cache():
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_workspace.py", line 457, in iter_uri_and_symbols_cache
    symbols_cache = _compute_symbols_from_ast(ctx)
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_workspace.py", line 97, in _compute_symbols_from_ast
    ast = completion_context.get_ast()
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\vendored\robocorp_ls_core\cache.py", line 68, in new_func
    ret = func(self, *args, **kwargs)
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\completion_context.py", line 212, in get_ast
    return self.doc.get_ast()
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\vendored\robocorp_ls_core\cache.py", line 68, in new_func
    ret = func(self, *args, **kwargs)
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_workspace.py", line 615, in get_ast
    from robot.api import get_model, get_resource_model, get_init_model  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:57:00 UTC pid: 11940 - MainThread - INFO - robotframework_ls.__main__
Arguments: ['-v']

server-api: 2022-02-22 16:57:00 UTC pid: 11940 - MainThread - INFO - robotframework_ls.__main__
Python: 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] - lsp: 0.40.1 (<module 'robotframework_ls' from 'C:\\Users\\mathis\\scoop\\persist\\vscode\\data\\extensions\\robocorp.robotframework-lsp-0.40.1\\src\\robotframework_ls\\__init__.py'>) - platform: win32 - sys.prefix: C:\Users\mathis\scoop\apps\python\current - sys.executable: C:\Users\mathis\scoop\apps\python\current\python.exe

server-api: 2022-02-22 16:57:00 UTC pid: 11940 - MainThread - INFO - robocorp_ls_core.python_ls
Starting RobotFrameworkServerApiWithObserver IO language server. pid: 11940

server-api: 2022-02-22 16:57:00 UTC pid: 11940 - MainThread - EXCEPTION - robotframework_ls.impl.robot_version
Unable to get robot version.

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\impl\robot_version.py", line 8, in get_robot_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:57:00 UTC pid: 11940 - MainThread - INFO - robotframework_ls.impl.libspec_manager
User libspec dir: C:\Users\mathis\.robotframework-ls\specs\v2\9b5dc39d_unknown\user

server-api: 2022-02-22 16:57:00 UTC pid: 11940 - MainThread - INFO - robotframework_ls.impl.libspec_manager
Builtins libspec dir: C:\Users\mathis\.robotframework-ls\specs\v2\9b5dc39d_unknown\builtins

server-api: 2022-02-22 16:57:00 UTC pid: 11940 - ThreadPoolExecutor-0_0 - EXCEPTION - robotframework_ls.server_api.server
Error in "import robot".
It seems that Robot Framework is not installed in C:\Users\mathis\scoop\apps\python\current\python.exe.
Please install it in your environment and restart the Robot Framework Language Server
or set: "robot.language-server.python" or "robot.python.executable"
to point to a python installation that has Robot Framework installed.
Hint: with pip it can be installed with:
C:\Users\mathis\scoop\apps\python\current\python.exe -m pip install robotframework

Traceback (most recent call last):
  File "C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robotframework-lsp-0.40.1\src\robotframework_ls\server_api\server.py", line 78, in m_version
    import robot  # noqa
ModuleNotFoundError: No module named 'robot'
server-api: 2022-02-22 16:57:00 UTC pid: 11940 - ThreadPoolExecutor-0_0 - INFO - robotframework_ls.server_api.server
robotframework version too old.

server-api: 2022-02-22 16:57:00 UTC pid: 11940 - ThreadPoolExecutor-0_1 - INFO - robotframework_ls.server_api.server
robotframework version too old.

server-api: 2022-02-22 16:57:00 UTC pid: 11940 - ThreadPoolExecutor-0_0 - INFO - robotframework_ls.server_api.server
robotframework version too old.

server-api: 2022-02-22 16:57:00 UTC pid: 11940 - ThreadPoolExecutor-0_1 - INFO - robotframework_ls.server_api.server
robotframework version too old.

server-api: 2022-02-22 16:57:08 UTC pid: 11940 - ThreadPoolExecutor-0_0 - INFO - robotframework_ls.server_api.server
robotframework version too old.

server-api: 2022-02-22 16:57:08 UTC pid: 11940 - ThreadPoolExecutor-0_0 - INFO - robotframework_ls.server_api.server
robotframework version too old.

server-api: 2022-02-22 16:57:18 UTC pid: 11940 - ThreadPoolExecutor-0_1 - INFO - robotframework_ls.server_api.server
robotframework version too old.

Robocorp output:

Activating Robocorp Code extension.
Executing: C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robocorp-code-0.27.1\bin\rcc.exe,configure,longpaths
Windows long paths support enabled
ROBOCORP_HOME: C:\Users\mathis\AppData\Local\robocorp
Executing: C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robocorp-code-0.27.1\bin\rcc.exe,configure,diagnostics,-j,--controller,RobocorpCode
RCC Diagnostics:
Stdout:
{
  "details": {
    "RCC_VERBOSE_ENVIRONMENT_BUILDING": "false",
    "ROBOCORP_HOME": "C:\\Users\\mathis\\AppData\\Local\\robocorp",
    "ROBOCORP_OVERRIDE_SYSTEM_REQUIREMENTS": "false",
    "controller": "rcc.robocorpcode",
    "cpus": "8",
    "executable": "C:\\Users\\mathis\\scoop\\persist\\vscode\\data\\extensions\\robocorp.robocorp-code-0.27.1\\bin\\rcc.exe",
    "installationId": "dd1a4cfc-905c-a58e-896f-d324e16c4d80",
    "micromamba": "0.19.0",
    "os": "windows_amd64",
    "rcc": "v11.6.3",
    "stats": "2 requests, 0 merges, 0 hits, 0 dirty, 2 misses, 0 failures | dd1a4cfc-905c-a58e-896f-d324e16c4d80",
    "telemetry-enabled": "true",
    "tempdir": "C:\\Users\\mathis\\AppData\\Local\\Temp",
    "uid:gid": "S-1-5-21-4045125846-2727825638-2781775964-77073:S-1-5-21-4045125846-2727825638-2781775964-513",
    "user-agent": "rcc/v11.6.3 (windows amd64) rcc.robocorpcode",
    "user-cache-dir": "C:\\Users\\mathis\\AppData\\Local",
    "user-config-dir": "C:\\Users\\mathis\\AppData\\Roaming",
    "user-home-dir": "C:\\Users\\mathis",
    "when": "2022-02-22T16:56:29+01:00 (CET)",
    "working-dir": "C:\\Users\\mathis\\scoop\\persist\\vscode\\data\\extensions\\robocorp.robocorp-code-0.27.1\\bin"
  },
  "checks": [
    {
      "type": "RPA",
      "status": "ok",
      "message": "ROBOCORP_HOME (C:\\Users\\mathis\\AppData\\Local\\robocorp) is good enough.",
      "url": "https://robocorp.com/docs/troubleshooting"
    },
    {
      "type": "OS",
      "status": "ok",
      "message": "PYTHONPATH is not set, which is good.",
      "url": "https://robocorp.com/docs/troubleshooting"
    },
    {
      "type": "OS",
      "status": "ok",
      "message": "PLAYWRIGHT_BROWSERS_PATH is not set, which is good.",
      "url": "https://robocorp.com/docs/troubleshooting"
    },
    {
      "type": "OS",
      "status": "ok",
      "message": "NODE_OPTIONS is not set, which is good.",
      "url": "https://robocorp.com/docs/troubleshooting"
    },
    {
      "type": "OS",
      "status": "ok",
      "message": "NODE_PATH is not set, which is good.",
      "url": "https://robocorp.com/docs/troubleshooting"
    },
    {
      "type": "OS",
      "status": "ok",
      "message": "Supports long enough paths.",
      "url": "https://robocorp.com/docs/troubleshooting/windows-long-path"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "api.eu1.robocorp.com found: [34.243.184.71 54.75.248.4 54.171.38.104 34.247.1.128 52.215.231.141 34.254.137.100]",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "cloud.robocorp.com found: [54.194.165.182 54.155.209.223 63.33.13.5]",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "conda.anaconda.org found: [104.17.92.24 104.17.93.24]",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "downloads.robocorp.com found: [52.222.214.19 52.222.214.93 52.222.214.71 52.222.214.109]",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "files.pythonhosted.org found: [151.101.113.63]",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "github.com found: [140.82.121.4]",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "id.robocorp.com found: [13.224.195.61 13.224.195.11 13.224.195.29 13.224.195.124]",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "pypi.org found: [151.101.128.223 151.101.0.223 151.101.192.223 151.101.64.223]",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "robocorp.com found: [172.67.7.153 104.22.41.65 104.22.40.65]",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "telemetry.robocorp.com found: [104.22.41.65 104.22.40.65 172.67.7.153]",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "Canary download successful: https://downloads.robocorp.com/canary.txt",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "PyPI canary download successful: https://pypi.org/jupyterlab-pygments/",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "network",
      "status": "ok",
      "message": "Conda canary download successful: https://conda.anaconda.org/conda-forge/linux-64/repodata.json",
      "url": "https://robocorp.com/docs/troubleshooting/firewall-and-proxies"
    },
    {
      "type": "Settings",
      "status": "ok",
      "message": "Toplevel settings are ok.",
      "url": ""
    }
  ]
}

Stderr:
OK.

Took 6.0s to obtain diagnostics.
Executing: C:\Users\mathis\scoop\shims\python3.exe,-c,import threading;print("OK")
Loading base environment from: C:\Users\mathis\AppData\Local\robocorp\.robocorp_code\vscode-base-v01-adcdd7\rcc_env_info.json
Took: 2.1s to update conda env.
Executing: C:\Users\mathis\scoop\shims\python3.exe,C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robocorp-code-0.27.1\bin\create_env\get_env_info.py
Took: 8.4s to collect python info.
Python executable: C:\Users\mathis\scoop\apps\python\current\python.exe
Python version: 3,10,2,final,0
Robot Version: N/A
Environment:
    PYTHONPATH: undefined
    APPDATA: C:\Users\mathis\AppData\Roaming
    HOMEDRIVE: C:
    HOMEPATH: \Users\mathis
    HOME: undefined
    ROBOT_ROOT: undefined
    ROBOT_ARTIFACTS: undefined
    RCC_INSTALLATION_ID: dd1a4cfc-905c-a58e-896f-d324e16c4d80
    ROBOCORP_HOME: C:\Users\mathis\AppData\Local\robocorp
    PROCESSOR_ARCHITECTURE: AMD64
    OS: Windows_NT
    PATH: C:\Users\mathis\AppData\Local\robocorp\holotree\b1f3c244e_9679c063;C:\Users\mathis\AppData\Local\robocorp\holotree\b1f3c244e_9679c063\Library\mingw-w64\bin;C:\Users\mathis\AppData\Local\robocorp\holotree\b1f3c244e_9679c063\Library\usr\bin;C:\Users\mathis\AppData\Local\robocorp\holotree\b1f3c244e_9679c063\Library\bin;C:\Users\mathis\AppData\Local\robocorp\holotree\b1f3c244e_9679c063\Scripts;C:\Users\mathis\AppData\Local\robocorp\holotree\b1f3c244e_9679c063\bin;C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robocorp-code-0.27.1\bin;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.5.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Users\mathis\scoop\apps\vscode\current\bin;C:\Users\mathis\scoop\apps\nodejs\current\bin;C:\Users\mathis\scoop\apps\nodejs\current;C:\Users\mathis\scoop\apps\openjdk8-redhat\current\bin;C:\Users\mathis\scoop\apps\openjdk\current\bin;C:\Users\mathis\scoop\apps\maven\current\bin;C:\Users\mathis\scoop\apps\openjdk11\current\bin;C:\Users\mathis\.poetry\bin;C:\Users\mathis\scoop\shims;C:\Users\mathis\AppData\Local\Microsoft\WindowsApps;C:\Users\mathis\scoop\persist\vscode\data\extensions\robocorp.robocorp-code-0.27.1\bin\C:\Users\mathis\AppData\Local\Microsoft\WindowsApps
Using python executable: C:\Users\mathis\scoop\apps\python\current\python.exe
Waiting for Robocorp Code (python) language server to finish activating...
robocorp code: 2022-02-22 16:56:47 UTC pid: 10096 - MainThread - INFO - robocorp_code.__main__
Arguments: ['-v']

robocorp code: 2022-02-22 16:56:47 UTC pid: 10096 - MainThread - INFO - robocorp_code.__main__
Python: 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] - lsp: 0.27.1 (<module 'robocorp_code' from 'C:\\Users\\mathis\\scoop\\persist\\vscode\\data\\extensions\\robocorp.robocorp-code-0.27.1\\src\\robocorp_code\\__init__.py'>) - platform: win32 - sys.prefix: C:\Users\mathis\scoop\apps\python\current - sys.executable: C:\Users\mathis\scoop\apps\python\current\python.exe

robocorp code: 2022-02-22 16:56:48 UTC pid: 10096 - MainThread - INFO - robocorp_ls_core.python_ls
Starting RobocorpLanguageServer IO language server. pid: 10096

robocorp code: 2022-02-22 16:56:48 UTC pid: 10096 - MainThread - INFO - robocorp_code.robocorp_language_server
Cache dir: C:\Users\mathis\.robocorp-code\.cache

Took: 3.5s to initialize Robocorp Code Language Server.
Robocorp Code initialization finished. Took: 21.9s
fabioz commented 2 years ago

Ok, so, the issue is that RCC is finding a C:\Users\mathis\scoop\shims\python3.exe because it searches first for python3 and only afterwards for python.

In general this isn't a problem (because windows installations don't usually have a python3 in the path), but it seems that you're using https://scoop.sh/ and it installed it for you.

A fix will need to be done on RCC for this use case. Until then, do you think it'd be reasonable for you to remove or rename that python3.exe to something else?

vincentmathis commented 2 years ago

I can confirm that uninstalling python3 resolved the issue. I only had it for some backward compability in another project so just uninstalling it is fine for now.

fabioz commented 2 years ago

This is now fixed.

As a note, it's available in a pre-release if you want to check it (see: https://code.visualstudio.com/updates/v1_63#_pre-release-extensions on how to use pre-releases).