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

Python extension fails to activate #1837

Closed
davegaulke opened this issue Jun 25, 2020 · 14 comments
Closed

Python extension fails to activate #1837

davegaulke opened this issue Jun 25, 2020 · 14 comments
Labels
bug Something isn't working upstream Needs to be fixed upstream
Milestone

Comments

@davegaulke
Copy link

davegaulke commented Jun 25, 2020

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.

@Anjum48
Copy link

Anjum48 commented Jul 3, 2020

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

@ProgrammingPleb
Copy link

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

@szho42
Copy link

szho42 commented Jul 28, 2020

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

@code-asher
Copy link
Member

Upstream issue: microsoft/vscode-python#12465

@code-asher code-asher added the upstream Needs to be fixed upstream label Jul 29, 2020
@vumaasha
Copy link

vumaasha commented Aug 2, 2020

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

@ProgrammingPleb
Copy link

@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’m using: https://github.com/microsoft/vscode-python/releases/tag/2020.5.86806

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

@vumaasha
Copy link

vumaasha commented Aug 3, 2020

@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’m 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

@nhooyr
Copy link
Contributor

nhooyr commented Aug 17, 2020

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

@ducalpha
Copy link

On code-server 3.8.0 I have to downgrade Python extension to version 2020.10 (the latest version is 2020.12) to make it work.

@blaylockbk
Copy link

Same on code-server 3.8.1, have to downgrade to 2020.10. (Also the now latest 2021.1 still doesn't work).

@MaxG-Git
Copy link

On code-server 3.8.0 I have to downgrade Python extension to version 2020.10 (the latest version is 2020.12) to make it work.

I have the same issue, Have been looking everywhere for a solution, This finally fixed it for me ~ Thank You!

@jsjoeio jsjoeio added this to the Backlog milestone Apr 29, 2021
@oxy
Copy link

oxy commented Jun 18, 2021

Hey there - this issue is stale and the latest versions of Python/Jupyter work as of v3.10.2; closing.

@oxy oxy closed this as completed Jun 18, 2021
@jingw222
Copy link

Still an issue here. Activating the extension via the command Python: Select Interpreter does not show the window wherein I can select different Python executables. The status bar shows "Activating Extensions.." for a few seconds and disappears, but nothing happens after that.

code-server: v3.10.2
VS Code: v1.56.1
Commit: 387b12ef4ca404ffd39d84834e1f0776e9e3c005
Date: 2021-05-21T23:13:00Z
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36

@jsjoeio
Copy link
Contributor

jsjoeio commented Jun 28, 2021

@jingw222 please open a new bug report issue with repro steps. Thanks!

@coder coder locked as resolved and limited conversation to collaborators Jun 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working upstream Needs to be fixed upstream
Projects
None yet
Development

No branches or pull requests