#๐ im new to python, and i had like autocomplete text option when i type something out now i dont
44 messages ยท Page 1 of 1 (latest)
@static pilot
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
This kind of thing is usually an artifact of your IDE. What are you using to write your Python code?
vsc
Have you got the "python extension" installed?
Did it ... stop working at some point?
Disclaimer: I don't use VSCode so my advice will be pretty generic.
i have python extension installed yes, and it was working a some point a couple weeks ago, but i unistalled everything
Try putting the extension back. Maybe it's missing.
https://marketplace.visualstudio.com/items?itemName=ms-python.python
ive got it, this is frustrating as it seems i have everything i need
Oh. Frustrating.
Have pinged #python-discussion , see if anyone else has useful advice.
Does it have an on/off "enable" switch somewhere? Just speculating.
thanks, yeah at the top of the image it says disable so im assuming its enabled
Try toggling it. "disable" aand test, then reenable and test (just in case it means the opposite of what you think).
Have you selected a python interpreter?
i have but i may have the wrong one selected
DanS said :
Turn it off and on again? (Uninstall and reinstall...)
Generic advice ๐
My recommendation is to get rid of Microsoft bs completely. Uninstall the full open source version of VS Code.
Free/Libre Open Source Software Binaries of VSCode
It's exactly the same but without telemetry, if the only solution y'all got was to reinstall, maybe this is better?
Well, worth fiddling with. Also maybe check what Pylance is configured with (for some reason it's own "what python" stuff is distinct from the interpreter you pick, leading to much confusion).
Pylance link: https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance
I get the impression it's bundled with the python extension.
Pylance is what sticks those coloured highlights in your code I think.
Wasn't there also another one of those besides Pylance?
ill have a look
I expect so. I'm not a VSCode person so my advice here is vague, and gleaned from discussions like this one ๐
Their problem is just syntax highlighting not working?
yes
The initial symptom was autocomplete not working, but I can imagine both come from the same LSP thingy.
You can try another syntax highlighting extensions, eg, pyright
alrr one second
BTW, the pylance page says:
Under the hood, Pylance is powered by Pyright, Microsoft's static type checking tool.
FWIW.
Oh, also in the quick start:
Note: If you've previously set a language server and want to try Pylance, make sure you've set "python.languageServer": "Default" or "Pylance" in your settings.json file using the text editor, or using the Settings Editor UI.
It worked before, so I think the problem is something else
Yeah, the thing is that Pylance isn't working, maybe Pyright does for some reason.
I was wondering if it had just been "turned off" somehow. Misconfigured, whatever.
Worth a try.
Also, Pyright is completely Open Source, unlike Pylance. Not relevant but I like open source.

I sent one
VS Codium is a fully open source version of VS Code, without any microsoft bundled telemetry or other stuff
Aside from telemetry and some microsoft exclusive extensions, everything is the same
alr is it easy to navigate?
Its exactly the same as VS code
but without microsoft added stuff
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.