Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block #97

Open
@jsoref

Description

@jsoref

Yes, I don't have a globally installed jshint.

No, I don't plan to install one.
No, I shouldn't get an error UnhandledPromiseRejectionWarning just because my system is misshaped.
Yes, I'll file a PR for this.

[Error - 9:31:19 PM] Failed to load jshint library
(node:79079) UnhandledPromiseRejectionWarning: Error: Failed to load jshint library. Please install jshint in your workspace folder using 'npm install jshint' or globally using 'npm install -g jshint' and then reload.
    at Linter.<anonymous> (/Users/jsoref/.vscode/extensions/dbaeumer.jshint-0.11.0/jshint-server/out/server.js:336:23)
    at Generator.throw (<anonymous>)
    at rejected (/Users/jsoref/.vscode/extensions/dbaeumer.jshint-0.11.0/jshint-server/out/server.js:9:65)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:79079) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
Version: 1.59.0
Commit: 379476f0e13988d90fab105c5c19e7abc8b1dea8
Date: 2021-08-04T23:14:40.191Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Darwin x64 20.6.0

jshint v0.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions