-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
python: IntelliCode won't work on VSCodium #1646
Comments
Did you have a look at https://github.com/VSCodium/vscodium/wiki/Extensions-Compatibility? |
Hi, Thanks for the link. Although I don't quite understand why suddenly it does not work anymore as I did not have any issue in the past year using codium |
It depends on the goodwill of those extensions. Sometime times it works, some others it doesn't. |
+1 here. That's weird, as regular logs in vscodium don't provide much intel (I mean Python Extension logs in the Output window) about anything being wrong ! However, I just found that in the settings > Python > Language Server, if you change that from default (Pylance) to the usual fallback LServer (Jedi), then at least autocompletion seems to start working again. Probably some more troubleshooting is required on the Pylance side (?). [Edit] : hum sorry, the LSP error was dully noted in the first part of the issue, and I just flew over it without noticing 🥲 |
Same issue, even Jedi does not give autocomplete in my case |
Sadly same here, Version: 1.85.1 (user setup) Latest python extension installed in vscodium. Installed vscode with python addon and does in fact work |
Bump I get an error in the VS Intellicode output (in the output tab, selected
|
Pylance is proprietary, according to the setting definition it should only be chosen if available, which isn't the case.
I'm not sure if there's anything more we can do, so consider to close this issue. Note: I've just just current VSCodium and opened a python file, got LSP features in general (highlighting, syntax checks, structures) and a note "Starting Jedi language server for default." in the logs - but other than pylance possibly would have there is no fancy IntelliCode (the completion is "dumb"). |
https://marketplace.visualstudio.com/items?itemName=ms-pyright.pyright |
If you use all the ms-python extensions on VSCodium 1.9.0 @cdhainaut (of course select black (I use it) or autopep8 for formatters), cli tools like mypy/pywright/.... and jedi language server on 3.12.3 python on windows, not only everything works fine but it also enforces good programming practices. I'm on Windows x64 10 Pro. I was very pleasantly surprised that all worked that good (some colorization is not there TBH). I also have VSCode for my main work on Python but the experience was day and night vs one year before. I have not yet used python test runner on VSCodium, but I will test more thoroughly. |
Rolling back Pylance to 2023.6.40 seems to work fine (if you would rather run a year old version of the extension). |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, and we'll keep it open. If you have any new additional information, please include it with your comment! |
Since August I work exlusively with VScodium and jedi server for all my professional work. No issues. MS extensions, jlatest Jedi server, Python 3.13 on windows 10 x64 and ruff plugin. |
Can you please outline what you had to do? for this setup (apart from the python binaries). Also, what is that plugin for/where it is used (and how installed)? |
OK @GitMensch . First of all I am on Windows 10 x64. I installed Python 3.13.1 in c:]winoss\python3 and allowed it to be on the path (during installation) In Python I installed
I removed any remnants of previous vscodium extensions (I erased in my user folder the vscodium folder I open VScodium and install ms-python => Python, Python Debugger , Mypy type checker And now after close and restart (maybe not required) File > Preferences > Settings extensions > Python Language Server > Jedi File > Preferences > Settings extensions > Ruff Enable > tick it. Close VScodium and open it. Now load your project folder. Did it work for you? |
That works fine on "modern" systems (if you don't need mypy you can drop pip3 and any packages from it, as you use the ruff-lsp). For everything that is part of the RedHat8 family (which only distributes python 3.6.8), this setup currently doesn't work. (ref: astral-sh/ruff-vscode#660) The best option if you want to support these kind of environments is to et ms-python.python 2022.2.1924087327 (providing the internal "python" debugger which works fine). ... and to let this run with current environments, adjust $HOME/.vscodium/extensions/ms-python.python-2022.2.1924087327/pythonFiles/lib/jedilsp/pydantic/utils.py # TODO: replace annotation with actual expected types once #1055 solved
- kwargs = {'default': field.default} if not field.required else {}
- merged_params[param_name] = Parameter(
- param_name, Parameter.KEYWORD_ONLY, annotation=field.outer_type_, **kwargs
- )
+ try: # added to work around "from is not a valid parameter name"
+ kwargs = {'default': field.default} if not field.required else {}
+ merged_params[param_name] = Parameter(
+ param_name, Parameter.KEYWORD_ONLY, annotation=field.outer_type_, **kwargs
+ )
+ except:
+ pass |
@GitMensch that is unfortunate. |
Hi,
I am not able to use IntelliCode inside VSCodium. I checked with VSCode and it works perfectly.
I have same release version on VSCodium and VSCode (1.82.2)
The extensions I have are:
On both VSCodium and VSCode
I run a laptop with Linux Mint 21.2 on it
The error I get on VSCodium is:
Thank you
The text was updated successfully, but these errors were encountered: