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

Command line don't work as specified in the docs #174283

Closed
justanotheranonymoususer opened this issue Feb 13, 2023 · 4 comments
Closed

Command line don't work as specified in the docs #174283

justanotheranonymoususer opened this issue Feb 13, 2023 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders verified Verification succeeded workbench-cli VS Code Command line issues
Milestone

Comments

@justanotheranonymoususer
Copy link
Contributor

Does this issue occur when all extensions are disabled?: Yes/No

Version: 1.75.1 (user setup)
Commit: 441438a
Date: 2023-02-08T21:32:34.589Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No

Steps to Reproduce:

  1. Look at the command-line docs, which say to run as: code.exe [options][paths...]
  2. Run code.exe --disable-gpu-sandbox C:\test
  3. Observe that the folder doesn't open
  4. Close editor
  5. Run code.exe C:\test --disable-gpu-sandbox
  6. Observe that the folder opens
@joaomoreno
Copy link
Member

Where is --disable-gpu-sandbox documented, exactly?

@joaomoreno joaomoreno added the info-needed Issue requires more information from poster label Feb 22, 2023
@justanotheranonymoususer
Copy link
Contributor Author

Here:
https://code.visualstudio.com/docs/setup/windows#_unable-to-run-as-admin-when-applocker-is-enabled

With the introduction of process sandboxing (discussed in this blog post) running as administrator is currently unsupported when AppLocker is configured due to a limitation of the runtime sandbox. If your work requires that you run VS Code from an elevated terminal, you can launch code with --no-sandbox --disable-gpu-sandbox as a workaround.

@joaomoreno
Copy link
Member

From microsoft/vscode-docs@5153a91, cc @bpasero. I can't find ourselves handling --disable-gpu-sandbox anywhere... I bet minimist thinks it's a string option and is allowing it to eat up the folder path.

@joaomoreno joaomoreno assigned bpasero and unassigned joaomoreno Feb 22, 2023
@joaomoreno joaomoreno removed the info-needed Issue requires more information from poster label Feb 22, 2023
@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug workbench-cli VS Code Command line issues labels Feb 22, 2023
@bpasero bpasero added this to the February 2023 milestone Feb 22, 2023
@bpasero
Copy link
Member

bpasero commented Feb 22, 2023

cc @deepak1556

@VSCodeTriageBot VSCodeTriageBot added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Feb 22, 2023
@meganrogge meganrogge added the verified Verification succeeded label Feb 23, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders verified Verification succeeded workbench-cli VS Code Command line issues
Projects
None yet
Development

No branches or pull requests

6 participants