microsoft / pylance-release

Documentation and issues for Pylance
Creative Commons Attribution 4.0 International
1.71k stars 765 forks source link

Virtual workspaces seem to have limited setting set (like the browser version) #5394

Open rchiodo opened 9 months ago

rchiodo commented 9 months ago
  1. Open /pylance-release using Open Remote Repository
  2. Navigate to the diagnostics.py file

Expected result: A bunch of errors.

Actual result: Only syntax errors show up. It looks like all the other errors are set to limited mode.

rchiodo commented 9 months ago

It also seems that auto import doesn't work with limited settings?

The codeactions.py file doesn't show any code actions for things like this:

os
rchiodo commented 9 months ago

And this doesn't show the auto import completions: image

rchiodo commented 9 months ago

Same with add extra paths: image

StellaHuang95 commented 9 months ago

Move symbols doesn't work either. Request workspace/executeCommand failed with message: Cannot read properties of undefined (reading 'startsWith')

StellaHuang95 commented 9 months ago

Also inlay hints feature is not working.

rchiodo commented 8 months ago

Anything that needs to apply an edit also fails. You get this error message:

2024-02-29 13:07:25.442 [info] [Error - 1:07:25 PM] Request workspace/executeCommand failed.
2024-02-29 13:07:25.442 [info]   Message: Request workspace/executeCommand failed with message: applyEditSync failed with error 0
  Code: -32603 
rchiodo commented 7 months ago

Move file doesn't seem to work either

rchiodo commented 3 months ago

Internally it seems it doesn't pick up the environment. I keep seeing this:

2024-07-24 14:22:31.583 [info] [Info  - 2:22:31 PM] (26556)   Executing interpreter: 'python'
2024-07-24 14:22:31.583 [info] [Info  - 2:22:31 PM] (26556)   Skipping 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\python311.zip' because it is