Skip to content
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

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

Open
rchiodo opened this issue Jan 24, 2024 · 10 comments
Open
Assignees

Comments

@rchiodo
Copy link
Contributor

rchiodo commented Jan 24, 2024

  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 rchiodo self-assigned this Jan 24, 2024
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Jan 24, 2024
@rchiodo rchiodo added sync-server and removed needs repro Issue has not been reproduced yet labels Jan 24, 2024
@rchiodo
Copy link
Contributor Author

rchiodo commented Jan 26, 2024

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
Copy link
Contributor Author

rchiodo commented Jan 26, 2024

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

@rchiodo
Copy link
Contributor Author

rchiodo commented Jan 26, 2024

Same with add extra paths:
image

@StellaHuang95
Copy link
Contributor

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

@StellaHuang95
Copy link
Contributor

Also inlay hints feature is not working.

@rchiodo
Copy link
Contributor Author

rchiodo commented Feb 29, 2024

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
Copy link
Contributor Author

rchiodo commented Mar 28, 2024

Move file doesn't seem to work either

@rchiodo
Copy link
Contributor Author

rchiodo commented Jul 24, 2024

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 

@Morriz
Copy link

Morriz commented Nov 25, 2024

any updates here?

@rchiodo
Copy link
Contributor Author

rchiodo commented Nov 25, 2024

Virtual workspaces require the enableSyncServer setting. That work was postponed because it slowed everything down. The tentative solution was to detect virtual workspaces and restart the server in sync mode, but that's a lot of work. The general lack of people using virtual workspaces makes this not a super high priority at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants