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

fix: support npm:bindings and npm:callsites packages #24727

Merged

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Jul 25, 2024

Adds support for npm:bindings and npm:callsites packages because of changes in
denoland/deno_core#838.

This deno_core bump causes us to stop prepending file:// scheme for locations
in stack traces that are for local files.

Fixes #24462 , fixes #22671 , fixes #15717 , fixes #19130 , fixes WiseLibs/better-sqlite3#1205 , fixes WiseLibs/better-sqlite3#1034 , fixes #20936

Also removes some code from runtime/fmt_errors.rs which is no longer
required, due to changes in deno_core.

Co-authored-by: Nathan Whitaker <[email protected]>
@bartlomieju bartlomieju changed the title chore: upgrade deno_core to 0.299.0 refactor: simplify error formatting Jul 25, 2024
@bartlomieju bartlomieju changed the title refactor: simplify error formatting fix: support npm:bindings and npm:callsites packages Jul 25, 2024
@marvinhagemeister
Copy link
Contributor

Tried this PR out with the reproductions posted in various issues and it solves the bindings not found error everywhere! This is great!

@marvinhagemeister marvinhagemeister merged commit 7776636 into denoland:main Jul 26, 2024
17 checks passed
@dsherret
Copy link
Member

We should add an integration test for this one.

dsherret pushed a commit that referenced this pull request Jul 26, 2024
Adds support for `npm:bindings` and `npm:callsites` packages because of
changes in
denoland/deno_core#838.

This `deno_core` bump causes us to stop prepending `file://` scheme for
locations
in stack traces that are for local files.

Fixes #24462 , fixes
#22671 , fixes
#15717 , fixes
#19130 , fixes
WiseLibs/better-sqlite3#1205 , fixes
WiseLibs/better-sqlite3#1034 , fixes
#20936

---------

Co-authored-by: Nathan Whitaker <[email protected]>
@bartlomieju bartlomieju deleted the refactor_error_formatting branch July 26, 2024 17:01
@andykais
Copy link

andykais commented Aug 6, 2024

[edit] moved comment to #15717

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