Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: invalid ESM module path on Windows #7162

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

Merged
code-asher merged 2 commits into coder:main from ChenPi11:main
Feb 11, 2025
Merged

Conversation

Copy link
Contributor

@ChenPi11 ChenPi11 commented Jan 11, 2025

Fixes #7089

On Windows, ESM loader only accept a valid file:// URLs when it's a absolute path.
So add file:// prefix and replace \ to '/' to make it a valid URL.

@ChenPi11 ChenPi11 requested a review from a team as a code owner January 11, 2025 04:41
Copy link

codecov bot commented Jan 13, 2025
edited
Loading

Codecov Report

Attention: Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@f4f0265). Learn more about missing BASE report.
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
src/node/main.ts 25.00% 2 Missing and 1 partial ⚠️
src/node/routes/vscode.ts 25.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@ Coverage Diff @@
## main #7162 +/- ##
=======================================
 Coverage ? 72.39% 
=======================================
 Files ? 31 
 Lines ? 1913 
 Branches ? 414 
=======================================
 Hits ? 1385 
 Misses ? 446 
 Partials ? 82 
Files with missing lines Coverage Δ
src/node/main.ts 48.18% <25.00%> (ø)
src/node/routes/vscode.ts 24.75% <25.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f4f0265...7a86738. Read the comment docs.

Copy link
Member

Interesting! We probably want to do the same in src/node/routes/vscode.ts I imagine? (line 61)

fix: invalid ESM module path on Windows.
Copy link
Contributor Author

Right. This exception may thrown by vscode.js on Windows.

Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Sorry for the delay. Thank you for doing this! The next release of code-server should be out soon, and will include this fix.

@code-asher code-asher merged commit 18cd97d into coder:main Feb 11, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@code-asher code-asher code-asher approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

issue with windows NPM based installation

AltStyle によって変換されたページ (->オリジナル) /