Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Solution to Pylance not working with VSCodium #1640

Closed
felix9743 opened this issue Sep 15, 2023 · 0 comments
Closed

Solution to Pylance not working with VSCodium #1640

felix9743 opened this issue Sep 15, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@felix9743
Copy link

Hi everybody, like you, when version 2023.8.20 of Pylance was released, the bypass trick no longer worked and well given that I was on vacation, I had thought that someone would find a new solution. But today, we are at version 2023.9.10 (and VSCodium 1.82.2) and it seems to me that there is still no reliable solution to solve the problem...

So I pulled my sleeves back and I did the tests again and again... Until when fiddle the files of the extension itself, I managed to make it work again! This method is terribly stupid and not the most convenient, but it worked on 2 of my computers with different configurations and it has the advantage of not need to change the name of the application anymore.

So to make it simple, here are the changes to be made to be able to install the extension and remove the verification (I only have Windows, but it should be the same under Linux and I don't know for MAC):

  1. Edit the C:\Program Files\VSCodium\resources\app\product.json or create a product.json in C:\Users\YOUR_USERNAME\AppData\Roaming\VSCodium

  2. Set the extensionsGallery value:

	"extensionsGallery": {
		"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
		"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
		"itemUrl": "https://marketplace.visualstudio.com/items"
	},
  1. Install the Pylance and Python extension. Close the VSCodium when finished.

  2. Open this path C:\Users\YOUR_USERNAME\.vscode-oss\extensions\ms-python.vscode-pylance-2023.X.XX\dist\

  3. Rename extension.bundle.js to extension.bundle.js.bak (backup).


Here, I hope it'll be useful to you. If someone wants to modify DOCS.md to put the explanations or pointed this issue, it would be cool for the others users ^^

PS: Sorry for my english, I not have habitude to create Issue.

@felix9743 felix9743 added the bug Something isn't working label Sep 15, 2023
@VSCodium VSCodium locked and limited conversation to collaborators Sep 15, 2023
@daiyam daiyam converted this issue into discussion #1641 Sep 15, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant