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

Enabled windows build #460

Open
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

aparnamichael
Copy link
Contributor

Fixes #451 and #265

The GHA build failures on Windows OS were resolved in the latest version of the VS Code extension tester. Following the update, the Windows build started functioning correctly.

SuparnaSuresh
SuparnaSuresh previously approved these changes Jan 7, 2025
SuparnaSuresh
SuparnaSuresh previously approved these changes Jan 15, 2025
@@ -8,7 +8,8 @@
],
"sourceMap": true,
"rootDir": "src",
"strict": true /* enable all strict type-checking options */
"strict": true, /* enable all strict type-checking options */
"skipLibCheck": true /* ignoring type checking for third-party libraries */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it required to skip checking the types in third-party libraries? What would be the purpose of skipping type safety in third-party libraries? Kindly provide a comment explaining the purpose if this is a necessity.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After updating the TypeScript version in package-lock.json, the Mac and Linux builds started failing, while the Windows build is working fine. The failure is due to a ‘WebSocket’ error in index.ts in selenium-driver library. We are excluding 'node_modules', it seems the compiler is still processing files within that folder. The error occurs during the TypeScript compilation process. Although we are excluding 'node_modules', it seems the compiler is still processing files within that folder. The 'skipLibCheck' parameter skips the compilation of third-party libraries in the node_modules directory. After adding this change, all the builds across different environments started working.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The skipLibCheck parameter does not necessarily skips the compilation of third-party libraries in the node_modules directory. Instead it skips type safety check in third-party libraries. Can we upgrade selenium-webdriver library?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, I meant to say that 'skipLibCheck' bypasses type checking for declaration files during compilation. I had attempted to upgrade 'selenium-webdriver', but it resulted in dependency conflicts within node_modules. As a work around I enabled 'skipLibCheck' to avoid this type conflicts.

Copy link
Contributor

@gilbysunil14 gilbysunil14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aparnamichael I have a comment. Please check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update vscode-extension-tester to the latest
3 participants