4

This issue appears for some Modules I don't remember which other one I had issues with yesterday but for now the re module seems to have issues auto completing. Tried the same code with pycharm and had no issues. Not sure why.

vscode example.

enter image description here

Pycharm example.

enter image description here

2
  • Do you have the python exetnsion installed and if so what version Commented Dec 23, 2020 at 11:52
  • I do, its v2020.12.424452561. Commented Dec 23, 2020 at 18:33

1 Answer 1

2

This worked for me:

You can Install pylance language server for language support after reinstalling vscode

OR

In vs code open command palette Ctrl+Shift+p

There select Python:Select Interpreter from the command pallete Selecting python interpreter from the comman pallete

Close your vs code and then try.

Sign up to request clarification or add additional context in comments.

5 Comments

I plan on adding helpful pictures tommorow but dont have time now
Thanks for the reply, I had already selected my interpreter to be my venv folder Python 3.8.6 and still had issue. I tried the second suggestion you suggested and I got Command 'Python: Build Workspace Symbols' resulted in an error (command'python.buildWorkspaceSymbols' not found)
Although rebuilding the workspace symbols doesn't work, I reinstalled vscode from scratch and added pylance language server as suggested by vscode itself. It seems to have done the trick as now the methods show for re.
The workspace symbols is a problem I couldnt find a solution to so I updated my answer to incorporate pylance
Marked as answer hopefully this will help others. Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.