pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

IntelliSense not working in Python after August 2025 VS Code update (Pylance)

Open Omshree3 opened this issue 1 year ago • 16 comments

Environment data

  • Pylance version: 2025.10.1
  • Python version: 3.13.2 (from python.org)
  • VS Code version: 1.102.3 (User Setup)
  • OS and version: Windows 11 Home Single Language Version 24H2 (OS Build 26100.4770)

Code Snippet

def greet(name):
    return f"Hello, {name}"

greet("World")

Problem

After the VS Code August 2025 update, IntelliSense stopped working for Python files using Pylance.

  • Hover documentation doesn’t appear
  • No auto-completion
  • No parameter hints
  • No suggestions while typing

Expected Behavior

  • Function names and suggestions should auto-complete
  • Hovering should show documentation
  • IntelliSense should work normally

Actual Behavior

  • IntelliSense doesn’t appear at all
  • No error shown in the Output panel
  • Python is detected correctly as the language

Troubleshooting Tried

  • Reinstalled Python extension
  • Reinstalled Pylance extension
  • Disabled all other extensions
  • Ran Help → Start Extension Bisect → Identified Pylance as the cause

Screenshot

Image

References

Omshree3 avatar Aug 05 '25 07:08 Omshree3

Hi @Omshree3, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.


Potential Duplicate Issues – These issues may be duplicates of your report, but may differ in some of the details.

  • Autocomplete stopped working on local class members – similar lack of auto-completion after Pylance update. https://github.com/microsoft/pylance-release/issues/4658
  • No IntelliSense or Syntax Highlighting – Pylance v2023.10.50 on Windows 11 lost intellisense after update, fixed by switching to pre-release. https://github.com/microsoft/pylance-release/issues/5046

The team will respond to your issue shortly. Please note this is a trial feature and may not be fully accurate. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or was incorrect, please give it a 👎. Your feedback helps us improve!

github-actions[bot] avatar Aug 05 '25 07:08 github-actions[bot]

Suggested Comment for GitHub (Issue or PR)

Hi maintainers

I'm submitting a report related to IntelliSense not working with Pylance after the VS Code August 2025 update. I’ve included full environment details, a reproducible code snippet, and the troubleshooting steps I tried.

Additionally, I’ve compiled a list of commonly misunderstood Python behaviors that might appear like bugs but are actually expected (e.g., silent execution without print()).

I hope this helps improve the developer experience — especially for beginners.

Please let me know if you'd like me to split this into separate issues. Thanks for your time!


The "Invisible Output" Problem

Code Snippet Why Nothing Appears
greet("World") Function is called but return value is not shown
len("hello") Returns a value but doesn't display it
x = 5 + 3 Assignment works silently
import os Successful import does not show output
x = open("file.txt") File is opened, no output shown
def add(a, b): return a + b Function is defined, not executed
add(2, 3) Called, returns value, but not printed
list = [1, 2, 3] Variable assignment only
class Person: pass Class defined silently
if True:\n pass Condition evaluated, does nothing
for i in [1, 2, 3]: pass Loop runs, but body is empty
[], {} Creates objects, but not printed
lambda x: x * 2 Lambda is defined, not called
assert 2 + 2 == 4 Assertion passes silently
print Refers to function, doesn't call it (print() needed)
True, False, None Literals evaluated but not displayed
@decorator Decorator applied silently
yield Used in generator, but not iterated
return Works inside a function, no output on its own
del x Deletes variable, no output
global x Declares variable, no output
raise ValueError("error") Only visible if caught or crashes
pass Does nothing, silently
continue / break Control flow keywords, not shown
... Ellipsis object, not printed
from math import * Imports silently
try: ... except: pass Swallows errors silently
exec("x = 10") Executes code silently
compile("x = 10", "", "exec") Returns code object, not shown
enumerate([]) Returns object, not shown
re.match(...) Returns Match object, not printed
filter(...), map(...) Return iterators, not shown

Project Goals

  • Help beginners understand why Python code often runs "silently"
  • Reduce false bug reports in VS Code, Pylance, and Python extension
  • Promote better debugging practices (e.g., print(), breakpoints, REPL)
  • Optionally suggest improvements to IDEs and linters

Contribute

  • PRs welcome: Add misunderstood examples
  • Submit real bugs separately (these are not IDE or Python bugs)
  • Discuss improvements in tooling and education

Related Ideas

  • VS Code extension that warns: “You called a function but didn’t print the result.”
  • Linters that detect top-level ignored return values
  • Built-in educational tips in VS Code's Python extension

Resources

Omshree3 avatar Aug 05 '25 15:08 Omshree3

Thanks for the issue. Can you include the logs for pylance as described here?

https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue

The output panel named Python Language Server should describe what the problem is. If this panel doesn't exist, please check that you're actually using Pylance in the language server setting:

Image

rchiodo avatar Aug 05 '25 16:08 rchiodo

I'm experiencing an issue where IntelliSense fails silently when using:

  • Python extension: v2025.10.1

  • Pylance extension: v2025.7.1

IntelliSense Not Working in VS Code (August 2025 Update)

Problem Summary

After updating to the Python extension v2025.10.1, IntelliSense completely stops working in VS Code when paired with the older Pylance extension v2025.7.1. No autocomplete, hover tips, or signature help is available — yet no errors are shown in the editor or Problems panel.


Why This Is a Bug

  • Version Mismatch

    The Python extension is newer (2025.10.1) than the Pylance extension (2025.7.1).
    This creates compatibility issues because internal APIs may no longer align.

  • Silent Failure

    The Pylance language server starts without errors, but IntelliSense fails.
    No crash, no error in logs — just missing functionality.

  • Hidden Log Error

    A key line from the logs explains the root problem:

    2025-08-05 23:59:11.950 [error] [Python Language Server] File or directory "<default workspace root>" does not exist.
    
    

Python Language Server.log

  • Python: 3.13.2

  • VS Code: 1.102.3

  • OS: Windows 11 (24H2)

There are no hover tips, autocompletions, or suggestions, and yet no errors are shown in the Problems panel or Output (Python Language Server).

Omshree3 avatar Aug 05 '25 19:08 Omshree3

The log sure makes it look like it's working. What happens when you hover over say greet in your example? Do you get anything showing up?

Python Extension and Pylance extension don't ship on the same schedule so their version numbers don't need to match.

rchiodo avatar Aug 05 '25 19:08 rchiodo

It should show something like this:

Image

rchiodo avatar Aug 05 '25 19:08 rchiodo

Are you expecting your code to output something on the command line? Hence your table above?

That code isn't writing to stdout, so it would output nothing. Pylance wouldn't be involved with execution though.

rchiodo avatar Aug 05 '25 19:08 rchiodo

Thanks for the clarification!

Yes — I understand that my code doesn't print anything without print().
My issue is not related to terminal output, but rather with IntelliSense (Pylance features):

  • No hover documentation on function names
  • No auto-completion or parameter hints while typing
  • No error or warning, despite logs showing Pylance is running and indexing

I confirmed this through:

  • Using the latest Pylance (2025.10.1) + Python extension (2025.10.1)
  • Reinstalling both extensions
  • Disabling all other extensions
  • Running Extension Bisect → it isolated Pylance as the source

The language server logs show successful indexing, but nothing appears in the editor (hover, completion, etc.).

Let me know if there’s a deeper setting I should try — or if you’d like a screen recording / clean logs attached.

Omshree3 avatar Aug 05 '25 20:08 Omshree3

What does this code give you?

import sys
sys.

It should cause completions to come up after you hit the .

rchiodo avatar Aug 05 '25 20:08 rchiodo

Additionally, you can turn on hidden trace settings:

Modify your settings.json to have:

"python.trace.server": "compact"

And then set Developer Log Level to Trace:

Image

That should add to our trace log all of the requests from VS code.

rchiodo avatar Aug 05 '25 20:08 rchiodo

Thank you so much for your help! I was stuck with IntelliSense not working in Python after the August 2025 VS Code update, and your solution really saved me. Everything is working perfectly now. I appreciate the quick and clear explanation — much respect!

Omshree3 avatar Aug 06 '25 10:08 Omshree3

Do you have more information @Omshree3? I'm not sure why you reopened this.

rchiodo avatar Aug 07 '25 16:08 rchiodo

Yes sir... Because in vs code auto suggestion is not working

Omshree3 avatar Aug 07 '25 16:08 Omshree3

What happens when you do this?

import sys
sys.

I'm not entirely sure what you mean by auto suggestion.

Can you share a GIF of what isn't working?

rchiodo avatar Aug 07 '25 16:08 rchiodo

now its working. thank you

Omshree3 avatar Aug 07 '25 16:08 Omshree3

After September 2025 update everything related to python was broken, no method or variables recognition (Ctrl+O), no "Find all references" or related options.

After several hours of research and testing, I finally was able to fix it after Ctrl+P -> Pyhton: Clear cache and reload window

ddominguezb avatar Oct 01 '25 00:10 ddominguezb