redhat-developer / vscode-extension-tester

ExTester: Your Essential UI Testing Companion for Visual Studio Code Extensions! Seamlessly execute UI tests with Selenium WebDriver, ensuring robustness and reliability in your extension development journey. Simplify UI testing for your VS Code extensions and elevate the quality of your user interface effortlessly.
Apache License 2.0
264 stars 71 forks source link

[🚫 Bug] install-vsix fails on windows when file pattern like ./**.vsix is provided #1354

Open jiri-skrivanek opened 5 months ago

jiri-skrivanek commented 5 months ago

Describe the bug

install-vsix fails on windows when file pattern like ./**.vsix is provided. It works on unix. Related code in node_modules/vscode-extension-tester/out/extester.js is

   const uri = new url_1.URL(vsixFile);
            if (!(process.platform === 'win32' && /^\w:/.test(uri.protocol))) {
                target = path.basename(vsixFile);
            }

Steps to reproduce

node node_modules/vscode-extension-tester/out/cli.js install-vsix --vsix_file ./**.vsix

Logs

Error: File ./**.vsix does not exist
    at ExTester.installVsix (D:\repo\myextension\node_modules\vscode-extension-tester\out\extester.js:87:27)
    at D:\repo\myextension\node_modules\vscode-extension-tester\out\cli.js:41:18

Operating System

Windows11

Visual Studio Code

1.90.0

vscode-extension-tester

7.3.2

NodeJS

20.12.2

npm

No response

jiri-skrivanek commented 4 months ago

Any ideas abut this?

djelinek commented 3 months ago

Any ideas abut this?

Hello, I am starting to investigate this issue. I will let you know with my findings ASAP 🙂

Thank you for your patience.

jiri-skrivanek commented 3 months ago

Any new observations?

djelinek commented 2 months ago

Any new observations?

hello, I was on a PTO last week, so I will continue on that ASAP.

At the moment I was able to reproduce on Windows VM, so I will take a look more closely into current implementation and options how to improve it