-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Semantic highlighting for Python: Pylance issue 2023 #1556
Comments
Link to the last working version: Works perfectly as of writing. Just install it manually by going to extensions, click on the 3 dots and click on Install from VSIX, and select the downloaded file. |
It works for me too! |
Do we have any other options?We can't use old version for ever. 😢 |
You can replace the version of the extension in the provided link with the latest one. |
I've tested the 5 most recent versions (2023.8.21, 2023.8.20, 2023.8.11, 2023.8.10, 2023.7.43) and none work. Until someone finds a workaround, the last known working version (2023.6.40) will have to do. A screenshot of the latest VSCodium running the latest Pylance, notice that the color highlighting does not work. Edit: @burritosoftware this might be of interest to you. Cheers! |
You're right! I downloaded and installed the latest version but never tested it. I'm sorry for misleading you guys. |
Thanks so much for the link @EndlessFractal, I tried everything, assuming it was an issue on my end. 🥲 |
It is very possible, as they have taken measures in preventing its usage on the later versions, #935 shows this, as the previous trick of modifying the product.json no longer works. |
Hoping some another |
I tried all the builds (2023.6.x up to 2023.8.x), and 2023.8.10 is the last build that works for me. Wondering why it didn't work for you @EndlessFractal |
Have you tried it on a fresh installation? As you can see below, I'm not able to get it fully working. I have not done any other changes beside installing Codium and the Python and the Pylance extensions. Codium 1.82.0 with Pylance v2023.8.10Codium 1.82.0 with Pylance v2023.6.40Cheers! |
I wrote a solution to run Pylance in its latest version (I postponed as BUG without doing it on purpose): #1640 |
@felix9743 This worked for me with |
works with v2023.8.20 |
works also with v2023.10.10 |
version 2023.11.10 ,still works! method: |
It seems like it does for me as well. |
I updated codium and suddenly the extension host stopped working. Extension bisect did not help, but I manually removed this version of pylance and it stopped crashing. Then, attempting to reinstall pylance from the VSIX package yields "Corrupt ZIP: end of central directory record signature not found". Has anyone faced this? Any workarounds? |
Sorry @alecov, I can't be of much help. I'm on the latest version and it hasn't crashed a single time. Have you tried reinstalling VSCodium? If it's still giving you issues, you can try this method and install a more recent version. #1641 Cheers! |
Hi, if that helps you a little, try to remove Pylance, Python and Jupyter from your extension list. Restart and close VSCodium and Then check that you no longer have the folders of its extension in your folder Once all this is done, either you have define the custom value of the After that, normally Pylance and Jupyter (if you use) should work properly. PS: There was a version or 2 or this trick didn't work anymore but strangely, it's reworking now.... For information, it works for me with the latest versions:
|
Do we need PyLance to work with Python? I do not want Pylance. Are there any other options? |
You do not. Pylance is just to make the Python code more legible by adding colors, also known as, semantic highlighting. |
By the way @EndlessFractal there is a set of utils by ms-python for mypy/isort/black/pylint that work very good. For some cases (maybe I misconfigured) mypy has accurate semantic highlighting if you specify types. I changed a type to str and worked immediately. What mypy finds, it is reported. Works fine with latest mypy and vscodium pointing to the worksapce mypy. What does not work is the "quick fix" |
@EndlessFractal @felix9743 Thanks mates, the tip from @felix9743 actually worked, although I'm pretty sure I have tried it before posting here. |
after several tries, confirming that this method does not work with |
Hi!
I have a problem with semantic highlighting in VSCodium (screenshot: VSCodium is on the left, VSCode is on the right). I have the same issue on MacOS and Linux Mint. After research, I found out that it has to do with the fact that Microsoft prevents PyLance language server from running in unofficial builds. In this thread there is a solution; however, it seems outdated because it doesn't work anymore.
Has anyone encountered this issue and managed to find a solution?
The text was updated successfully, but these errors were encountered: