Skip to content

pylance can not work in code-server #6749

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

Closed
2 tasks done
lingyueling opened this issue Apr 9, 2024 · 2 comments
Closed
2 tasks done

pylance can not work in code-server #6749

lingyueling opened this issue Apr 9, 2024 · 2 comments
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@lingyueling
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser:Chrome
  • Local OS:macOS
  • Remote OS:5.10.134-008.ali5000.al8.x86_64
  • Remote Architecture:x86_64
  • code-server --version:4.18

Steps to Reproduce

1.sh code-server --install-extension /home/lingyue.ly/ms-python.vscode-pylance-2024.3.100.vsix
2.enable the pylance extension in the workspace
3.reload workspace

Expected

the pylance should work with the code-server

Actual

pylance client couldn't create connection to server

Logs

[Info  - 10:13:52 AM] (950006) Pylance language server 2024.3.100 (pyright version 1.1.354, commit 6c4b3291) starting
[Info  - 10:13:52 AM] (950006) Server root directory: file:///home/lingyue.ly/.local/share/code-server/extensions/ms-python.vscode-pylance-2024.3.100/dist
[Error - 10:13:52 AM] Server initialization failed.
  Message: Request initialize failed with message: 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.


  Code: -32603 
[Error - 10:13:52 AM] Pylance client: couldn't create connection to server.
  Message: Request initialize failed with message: 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.


  Code: -32603

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

No, this works as expected in native VS Code

Does this bug reproduce in GitHub Codespaces?

Yes, this is also broken in GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

@lingyueling lingyueling added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Apr 9, 2024
@benz0li
Copy link
Contributor

benz0li commented Apr 9, 2024

@lingyueling Use Jedi.

See also #6323.

@code-asher
Copy link
Member

Yeah, unfortunate that Pylance does not support open source builds. Closing since there is nothing we can do.

@code-asher code-asher closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants