1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/cli
Bartek Iwańczuk f526513d74
feat(core): show unresolved promise origin (#16650)
This commit updates unhelpful messages that are raised when event loop
stalls on unresolved top-level promises.

Instead of "Module evaluation is still pending but there are no pending
ops or dynamic imports. This situation is often caused by unresolved
promises." and "Dynamically imported module evaluation is still pending
but there are no pending ops. This situation is often caused by
unresolved promises." we are now printing a message like: 

error: Top-level await promise never resolved
[SOURCE LINE]
^
    at [FUNCTION NAME] ([FILENAME])

eg:
error: Top-level await promise never resolved
await new Promise((_resolve, _reject) => {});
^
at <anonymous>
(file:///Users/ib/dev/deno/cli/tests/testdata/test/unresolved_promise.ts:1:1)

Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2022-11-28 23:07:23 +01:00
..
args refactor: DenoDir - move to cache folder and make root_dir private (#16823) 2022-11-26 00:04:30 +00:00
bench chore: use Rust 1.65.0 (#16688) 2022-11-18 02:59:10 +01:00
cache refactor: DenoDir - move to cache folder and make root_dir private (#16823) 2022-11-26 00:04:30 +00:00
js fix(cli/js): improve resource sanitizer messages (#16798) 2022-11-25 14:22:23 +01:00
lsp fix(npm): ensure npm package downloaded once per run when using --reload (#16842) 2022-11-27 13:25:08 -05:00
napi refactor: move generated_symbol_exports_list_* files to napi folder (#16822) 2022-11-25 18:49:02 -05:00
napi_sym chore: forward v1.28.2 release commit to main (#16796) 2022-11-24 23:59:42 +01:00
node fix(npm): allow to inspect npm modules with --inspect-brk (#16841) 2022-11-28 21:59:36 +01:00
npm fix(npm): ensure npm package downloaded once per run when using --reload (#16842) 2022-11-27 13:25:08 -05:00
ops feat: Stabilize Deno.bench() and 'deno bench' subcommand (#16485) 2022-11-11 00:22:14 +01:00
schemas feat(lint): add a report lint config setting (#16045) 2022-10-25 14:21:20 +02:00
tests feat(core): show unresolved promise origin (#16650) 2022-11-28 23:07:23 +01:00
tools fix(inspector): send "isDefault" in aux data (#16836) 2022-11-26 23:09:48 +01:00
tsc feat(unstable): rework Deno.Command (#16812) 2022-11-28 12:33:51 +01:00
auth_tokens.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
build.rs feat(core): support initializing extensions with and without JS (#16789) 2022-11-27 00:58:23 +01:00
Cargo.toml fix(runtime): feature-flag snapshot from snapshot (#16843) 2022-11-28 12:47:25 +01:00
checksum.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_std.rs chore: forward v1.28.2 release commit to main (#16796) 2022-11-24 23:59:42 +01:00
diff.rs refactor: update comment in diff.rs (#15142) 2022-07-10 22:49:18 -04:00
display.rs refactor: move deno info functionality from deno_graph to CLI (#16434) 2022-10-28 11:03:33 -04:00
emit.rs refactor: move dts files, diagnostics.rs, and tsc.rs to tsc folder (#16820) 2022-11-25 18:29:48 -05:00
errors.rs refactor: move dts files, diagnostics.rs, and tsc.rs to tsc folder (#16820) 2022-11-25 18:29:48 -05:00
file_fetcher.rs fix(npm): use an http client with connection pool (#16705) 2022-11-18 17:28:14 -05:00
file_watcher.rs upgrade deps (#15914) 2022-09-16 19:11:30 -04:00
fs_util.rs refactor(lsp): consolidate relative_specifier (#16780) 2022-11-25 09:16:56 -05:00
graph_util.rs refactor: move dts files, diagnostics.rs, and tsc.rs to tsc folder (#16820) 2022-11-25 18:29:48 -05:00
http_cache.rs fix(npm): use an http client with connection pool (#16705) 2022-11-18 17:28:14 -05:00
http_util.rs fix(npm): use an http client with connection pool (#16705) 2022-11-18 17:28:14 -05:00
js.rs feat(core): Ability to create snapshots from existing snapshots (#16597) 2022-11-21 14:36:26 +01:00
logger.rs chore: remove all pub(crate)s from the cli crate (#14083) 2022-03-23 09:54:22 -04:00
main.rs refactor: DenoDir - move to cache folder and make root_dir private (#16823) 2022-11-26 00:04:30 +00:00
module_loader.rs refactor: move dts files, diagnostics.rs, and tsc.rs to tsc folder (#16820) 2022-11-25 18:29:48 -05:00
proc_state.rs fix(npm): ensure npm package downloaded once per run when using --reload (#16842) 2022-11-27 13:25:08 -05:00
progress_bar.rs fix(cli): Fixed bug where the progress bar did not clear (#16401) 2022-10-24 18:40:27 +02:00
README.md Remove deno_typescript (#6813) 2020-07-20 19:49:57 -04:00
resolver.rs refactor: move lockfile.rs to args module (#16818) 2022-11-25 17:00:28 -05:00
standalone.rs feat(core): Ability to create snapshots from existing snapshots (#16597) 2022-11-21 14:36:26 +01:00
text_encoding.rs refactor: move cdp.rs to tools/repl (#16821) 2022-11-25 18:38:08 -05:00
unix_util.rs build: require safety comments on unsafe code (#13870) 2022-06-26 00:13:24 +02:00
version.rs feat(cli): check for updates in background (#15974) 2022-10-20 16:15:21 +02:00
windows_util.rs chore: fix Windows specific clippy errors (#15212) 2022-07-15 12:30:25 -04:00
worker.rs fix(npm): allow to inspect npm modules with --inspect-brk (#16841) 2022-11-28 21:59:36 +01:00

Deno CLI Crate

crates docs

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.