Replies: 31 comments 51 replies
-
On macOS |
Beta Was this translation helpful? Give feedback.
-
Thanks very much for this, it worked like a charm! Until they'll do something else to prevent it 😁 |
Beta Was this translation helpful? Give feedback.
-
It works! Thank you folks! |
Beta Was this translation helpful? Give feedback.
-
thanks so much OP, wish it was that easy to get the C# debugger to work 🤣 |
Beta Was this translation helpful? Give feedback.
-
Seems like they patched this workaround in version 2023.10.31 |
Beta Was this translation helpful? Give feedback.
-
Now to make pylance work: Extensions -> pylance -> disable -> press "reload required". |
Beta Was this translation helpful? Give feedback.
-
To make 2023.10.50 work:
In
Repack |
Beta Was this translation helpful? Give feedback.
-
@skbeh any tips for 2023.11.10? |
Beta Was this translation helpful? Give feedback.
-
Hello, for information, this solution works for me with the latest versions:
PS: There were 1 or 2 versions where this tips no longer worked but strangely, it works again now.... |
Beta Was this translation helpful? Give feedback.
-
Worked for VSCodium 1.84.2 | Pylance v2023.11.10 |
Beta Was this translation helpful? Give feedback.
-
Seems like it doesn't work anymore on the new Pylance version 2023.12.1 😢 |
Beta Was this translation helpful? Give feedback.
-
One observation I had is that the contents of the extensions folder for VSCode [on Windows this is usually in C:\Users[YOUR USERNAME].vscode\extensions can be copied (wholesale) and used in VSCodium/Cursor. I have only tested this in Cursor (based on VSCode 1.85), but feel like it should work for VSCodium as well:
Hope this helps someone as I accidentally deleted those newly downloaded versions of the extensions, since I had no idea where they came from, and spent the rest of the afternoon trying to figure out how I broke my Pylance in Cursor. |
Beta Was this translation helpful? Give feedback.
-
Has anyone managed to make v2024.2 work? |
Beta Was this translation helpful? Give feedback.
-
Tested to Work on 2024.2.103; Windows
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Does anyone have tested https://open-vsx.org/extension/detachhead/basedpyright? Thx |
Beta Was this translation helpful? Give feedback.
-
I wrote a Rust script that automatically finds the Save the file, give it executable permissions ( disclaimer: I've only tested it on my machine, and only on macOS (feedback welcome) |
Beta Was this translation helpful? Give feedback.
-
@pickx |
Beta Was this translation helpful? Give feedback.
-
on mac, version 2024.4.1 |
Beta Was this translation helpful? Give feedback.
-
Arch Linux 2024.4, unless a meteor falls to Earth, then I'd be using other distros too :p
Search for: In my case, there are two occurrences (i choose second). Comment out the occurrence with an "if" statement later and comment out all if statements (comment before the ';' at the end). |
Beta Was this translation helpful? Give feedback.
-
Warning: Pre-Release 2024.4.104 has added a few checks or changed the method, commenting the part we usually did doesn't work anymore |
Beta Was this translation helpful? Give feedback.
-
I know it's less then ideal, but downloading 2024.4.102, installing it, and patching it (following #1641 (comment), or using #1641 (comment)) still works until the latest version can get figured out. |
Beta Was this translation helpful? Give feedback.
-
The fixes above do not work with newer versions of pylance (tested using ms-python.vscode-pylance-2024.5.103), but using a newer version of vscodium and applying these fixes while using version 2024.4.102 do work well. |
Beta Was this translation helpful? Give feedback.
-
Not sure if it's relevant, but I came across this post discussing a problem in the open-source version (of the extension, though in isort): microsoft/vscode-isort#316 (comment) |
Beta Was this translation helpful? Give feedback.
-
Any news for the newest version of Pylance? |
Beta Was this translation helpful? Give feedback.
-
It looks like basedpyright is trying to reimplement Pylance's features and also provide better typechecking. If you just want a Pylance alternative, you can install the basedpyright extension and set |
Beta Was this translation helpful? Give feedback.
-
To disable type output in basedpyright, how should one proceed? Already installed. |
Beta Was this translation helpful? Give feedback.
-
Thank you all for your help. "basedpyright.analysis.typeCheckingMode": "off", |
Beta Was this translation helpful? Give feedback.
-
I don't really like Based Pyright. According to it, my entire codebase is a giant error, but actually I've been using it in production for a few months. |
Beta Was this translation helpful? Give feedback.
-
I’ve tried both Pylance and Based Pyright, but I couldn’t get them to work as expected with Jupyter Notebooks. For instance, unused modules are not flagged as such, and other expected hints seem to be missing. Has anyone else experienced similar issues or found a reliable workaround? |
Beta Was this translation helpful? Give feedback.
-
Hi everybody, like you, when version 2023.8.20 of Pylance was released, the bypass trick no longer worked and 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 rolled up my sleeves and I tested 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 3 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):
Edit the
C:\Program Files\VSCodium\resources\app\product.json
or create aproduct.json
inC:\Users\YOUR_USERNAME\AppData\Roaming\VSCodium
Set the values of
extensionsGallery
with:Install the
Pylance
andPython
extension. Close the VSCodium when finished.Open this path
C:\Users\YOUR_USERNAME\.vscode-oss\extensions\ms-python.vscode-pylance-2023.X.XX\dist\
Rename
extension.bundle.js
toextension.bundle.js.bak
(backup).Recreate a empty file
extension.bundle.js
(to make work the Jupyter extension).Here, I hope it'll be useful to you. If someone wants to modify DOCS.md to put the explanations or highlight this discussion, it would be cool for the others users ^^
PS: Sorry for my english, I not have habitude to write in english.
Beta Was this translation helpful? Give feedback.
All reactions