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

[Bug]: Code - OSS Launch Arguments Error #1322

Closed
SizzinSeal opened this issue Apr 16, 2024 · 6 comments
Closed

[Bug]: Code - OSS Launch Arguments Error #1322

SizzinSeal opened this issue Apr 16, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@SizzinSeal
Copy link

SizzinSeal commented Apr 16, 2024

Bug Report

Code - OSS does not parse launch arguments properly

Description

Code - OSS does not parse launch arguments properly. It thinks some arguments are files that need to be created

Steps to Reproduce

  1. Launch Code - OSS in the terminal thru code
  2. Observe warning Warning: 'ozone-platform-hint' is not in the list of known options, but still passed to Electron/Chromium.
  3. Observe 2 files opened with names that appear to be launch flags

Expected Behavior

Code - OSS does not try to create files on launch

Actual Behavior

Code - OSS launches and tries to create files with names resembling launch flags

Screenshots

image

Environment

  • Linux Distro: CachyOS (Arch based)
  • Linux Version: 6.8.6-2-cachyos
  • Code - OSS version: 1.88.1

Additional Information

Command used to launch code:

exec /usr/lib/electron28/electron /usr/lib/code/out/cli.js /usr/lib/code/code.js --ozone-platform-hint=wayland --disable-gpu

Code - OSS seems to be functioning as intended otherwise. Why are those flags necessary?

@SizzinSeal SizzinSeal added the bug Something isn't working label Apr 16, 2024
@AtnProjects
Copy link

imagen

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Apr 16, 2024

Dupe #1315

We can use the search filter BTW

@kRHYME7 kRHYME7 closed this as completed Apr 16, 2024
@SizzinSeal
Copy link
Author

The solution in #1315 did not fix it

@SizzinSeal
Copy link
Author

Also it outputs a warning when launched from the terminal: Warning: 'ozone-platform-hint' is not in the list of known options, but still passed to Electron/Chromium.

@SizzinSeal
Copy link
Author

I printed the command that was executed, this is what it after all variables have been substituted with their values:

 exec /usr/lib/electron28/electron /usr/lib/code/out/cli.js /usr/lib/code/code.js --ozone-platform-hint=wayland --disable-gpu

@SizzinSeal
Copy link
Author

Oh wait nevermind, I fixed it. I forgot that vscode will preserve unsaved files if you close it, so I thought it still wasn't working. The fix worked. This issue can stay closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants