Code-server: Python extension fails to activate

Created on 25 Jun 2020  路  8Comments  路  Source: cdr/code-server

Edit: the error is

The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class

  • Web Browser: Chrome 83.0.4103.116 (Official Build) (64-bit)
  • Local OS: macOS 10.13.6
  • Remote OS: Clear Linux version 33420
  • Remote Architecture: x86_64
  • code-server --version: 3.4.1 48f7c2724827e526eeaa6c2c151c520f48a61259

I've loaded the Microsoft python extension. Syntax coloring works, but code completion does not. I also get the error "command 'python.setInterpreter' not found" when clicking on the python interpreter at the bottom of the window. Remote server python is 3.8.3.

upstream

Most helpful comment

This is actually an extension problem and this version works https://github.com/microsoft/vscode-python/releases/tag/2020.5.86806

Mine works after installing this one.

Source: Issue #1818

All 8 comments

I'm having the same issue. I've tried reinstalling the extension and rolling back to an older version. No luck :cry:

This is actually an extension problem and this version works https://github.com/microsoft/vscode-python/releases/tag/2020.5.86806

Mine works after installing this one.

Source: Issue #1818

@EzzPrograms that works for me. Reverting to an old version enables the intellisense. thanks

@EzzPrograms can you post the version of the code server and python version you are using. I have downgraded still pylint shows import error

@EzzPrograms can you post the version of the code server and python version you are using. I have downgraded still pylint shows import error

This is the python extension version I鈥檓 using: https://github.com/microsoft/vscode-python/releases/tag/2020.5.86806

For code-server, it should be the latest one.

@EzzPrograms can you post the version of the code server and python version you are using. I have downgraded still pylint shows import error

This is the python extension version I鈥檓 using: https://github.com/microsoft/vscode-python/releases/tag/2020.5.86806

For code-server, it should be the latest one.

finally I got the python extension to work by disabling Jedi (jediEnabled:false) and by setting PYTHONPATH env var . The PYTHONPATH was not getting picked up from the .env file by linter

Now both auto complete and linting works fine

@cmoog Lets revert this extension on the marketplace to the working version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

broady picture broady  路  3Comments

infogulch picture infogulch  路  3Comments

chrischabot picture chrischabot  路  3Comments

KSXGitHub picture KSXGitHub  路  3Comments

justmao945 picture justmao945  路  3Comments