tjx666 / open-in-external-app

Open file with external application in VSCode
https://marketplace.visualstudio.com/items?itemName=YuTengjing.open-in-external-app
MIT License
55 stars 9 forks source link

Error with illegible file path #43

Open 4Urban opened 1 year ago

4Urban commented 1 year ago

Description

Hello, I'm glad to have such an awesome extension, but I'm having trouble with it.

When I try to use it (i.e. click the context menu Open in External App), the error message below comes up in the log of output panel.

2022-11-06 22:46:01.017 [error] [uncaught exception in main]: Error: Failed to open: ������ ������ ã�� �� �����ϴ�. (0x2)
2022-11-06 22:46:01.018 [error] Error: Failed to open: ������ ������ ã�� �� �����ϴ�. (0x2)

Extension Version

0.8.3

VS Code Version

Version: 1.73.0 (user setup) Commit: 8fa188b2b301d36553cbc9ce1b0a146ccb93351f Date: 2022-11-01T15:34:06.111Z Electron: 19.0.17 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Windows_NT x64 10.0.22621 Sandboxed: No

Extension Settings

"openInExternalApp.openMapper": []

Logs, Screenshots, Screen Recording etc

image

tjx666 commented 1 year ago

Please try the latest version, and provide a screenshot of extension output:

image

Would be better with the chrome devtools log:

image

4Urban commented 1 year ago

Below is the content of output image

Below is the developer tool image

tjx666 commented 1 year ago

Maybe same as https://github.com/tjx666/open-in-external-app/issues/41. Can you try to disable the python extension, and test open again?

4Urban commented 1 year ago

Though I disabled all the extension related to python (including jupyter), it still fails...

image

image

tjx666 commented 1 year ago

Which application is Your system app to open xlsx file? If have not set, you need to set it. Can you open xlsx file by double click in file explorer?

4Urban commented 1 year ago

I set it as MS excel, and clicking the file in explorer links directly to opening MS excel program.

2022년 11월 8일 오전 3:24, 오전 3:24, "余腾靖" @.***> 작성:

Which application is Your system app to open xlsx file? If have not set, you need to set it. Can you open xlsx file by double click in file explorer?

-- Reply to this email directly or view it on GitHub: https://github.com/tjx666/open-in-external-app/issues/43#issuecomment-1306015049 You are receiving this because you authored the thread.

Message ID: @.***>

tjx666 commented 1 year ago

@4Urban please try latest version

4Urban commented 1 year ago

@4Urban please try latest version

Thank you for the update!

I tried some cases and found that it does not work with the file path which includes non-English.

For example,

Extension was not worked with both cases (same for .png, .csv, and .xlsx)

In contrast, files with only English path worked well for .png, .csv, and .xlsx.

tjx666 commented 1 year ago

check here: https://github.com/microsoft/vscode/issues/85930#issuecomment-1364571443

4Urban commented 1 year ago

Ok, I'll subscribe it and wait for solution.