sindresorhus / open

Open stuff like URLs, files, executables. Cross-platform.
MIT License
3.2k stars 224 forks source link

Unexpected stderr when trying to open a link #348

Open Parasaran-Python opened 1 month ago

Parasaran-Python commented 1 month ago

As we know VSCode IDE has capability to open external links in configured browser, when "workbench.externalBrowser" config is set to a value, the IDE uses this (open) library to open the external link

image

This way.

Though the link opens fine in the configured browser, we encounter an stderr, for some unknown reason.

image

Tried grabbing the system command thats generated over here thats eventually executed and the browser is opened, ran the same on a cmd instance.

To my surprise I dont see any error being thrown on, the stack is clean, the browser opens fine.

Please help us understand the reason for the stderr. 🙂

This is the data in the stderr stream

< CLIXML

System.Management.Autom# ation.PSCustomObjectSystem.Object1Preparing modules for first use.0-1-1Completed-1 2Preparing modules for first use.0-1-1Completed-1 2Preparing modules for first use.0-1-1Completed-1

PS: System.Management.Automation.PSCustomObject does seem like it has been thrown from a power shell instance, not sure whats exactly happening

Parasaran-Python commented 1 month ago

Attaching the issue opened in Code-OSS repo: https://github.com/microsoft/vscode/issues/230636