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

Pylance is not working on my vscode #4747

Closed
007qr opened this issue Aug 23, 2023 · 3 comments
Closed

Pylance is not working on my vscode #4747

007qr opened this issue Aug 23, 2023 · 3 comments
Assignees

Comments

@007qr
Copy link

007qr commented Aug 23, 2023

Environment data

  • Language Server version: v2023.8.31
  • OS and version: Arch Linux x86_64
  • Python version: 3.11.3
  • Version: 1.82.0
  • Commit: 69b2435e14e5dbd442df58efcc72c28ad81e1ac2
  • Date: 2023-08-22T05:19:23.227Z
  • Electron: 25.5.0
  • ElectronBuildId: undefined
  • Chromium: 114.0.5735.289
  • Node.js: 18.15.0
  • V8: 11.4.183.29-electron.0
  • OS: Linux x64 6.1.39-3-lts

Code Snippet

image

Logs

2023-08-23 09:14:19.558 [info] (Client) You may install and use any number of copies of the software only with Microsoft Visual Studio, Visual Studio for Mac, Visual Studio Code, Azure DevOps, Team Foundation Server, and successor Microsoft products and services (collectively, the “Visual Studio Products and Services”) to develop and test your applications. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. You may not: work around any technical limitations in the software that only allow you to use it in certain ways; reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software, except and to the extent required by third party licensing terms governing use of certain open source components that may be included in the software; remove, minimize, block, or modify any notices of Microsoft or its suppliers in the software; use the software in any way that is against the law or to create or propagate malware; or share, publish, distribute, or lease the software (except for any distributable code, subject to the terms above), provide the software as a stand-alone offering for others to use, or transfer the software or this agreement to any third party.

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Aug 23, 2023
@debonte
Copy link
Contributor

debonte commented Aug 23, 2023

Are you using an official build of VS Code?

@debonte debonte added waiting for user response Requires more information from user and removed needs repro Issue has not been reproduced yet labels Aug 23, 2023
@007qr
Copy link
Author

007qr commented Aug 24, 2023

I build it locally on my linux system

@github-actions github-actions bot added user responded Was "waiting for user response" and they responded and removed waiting for user response Requires more information from user labels Aug 24, 2023
@debonte debonte added by design and removed user responded Was "waiting for user response" and they responded labels Aug 24, 2023
@debonte
Copy link
Contributor

debonte commented Aug 24, 2023

Ah, ok. That's the problem. Pylance only works in official builds of VS Code.

If using an official build isn't an option, you could try using Pyright instead. It doesn't have as many features as Pylance, but it works in any editor that supports LSP.

@debonte debonte closed this as completed Aug 24, 2023
@microsoft microsoft deleted a comment from awsms Sep 12, 2023
@microsoft microsoft deleted a comment from debonte Sep 12, 2023
@microsoft microsoft deleted a comment from 007qr Sep 12, 2023
@microsoft microsoft locked as resolved and limited conversation to collaborators Sep 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants