镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Seeing the mentioned Promise-related error after starting the extension from vscode #15

Closed

Description

@bsansouci

I'm getting this error in a popup, after about 7s after clicking the button:

Error processing attach: Error: Could not connect to debug target at http://localhost:6009: Promise was canceled
	at e (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/extension.js:1:103397)
	at async t (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/extension.js:59:47354)
	at async P.launch (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/extension.js:1:126302)
	at async t.Binder.captureLaunch (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/extension.js:59:127629)
	at async t.Binder._launch (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/extension.js:59:127180)
	at async Promise.all (index 5)
	at async t.Binder._boot (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/extension.js:59:126440)
	at async t.default._onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/extension.js:1:110922)

The extension development host window does open and stay open.

Activity

  1. chenglou commented on Dec 5, 2020

    @chenglou
    Member

    Are you trying to develop the plugin? You're likely encountering this: https://github.com/rescript-lang/rescript-vscode/blob/ce34fd22832a08edf44f2dc427ea18176912619e/CONTRIBUTING.md#run-the-project

    (If you're getting some Promise-related error alert, file an issue here so that we can find a workaround; this seems to be a VSCode bug. We currently just kill all our node processes and redo this step).

  2. chenglou commented on Dec 5, 2020

    @chenglou
    Member

    Solved

  3. a-c-sreedhar-reddy commented on Mar 7, 2021

    @a-c-sreedhar-reddy
    Contributor

    Hi @chenglou I got the same type of error. There are no node processes running on my machine.

    Screenshot (9)

  4. a-c-sreedhar-reddy commented on Mar 7, 2021

    @a-c-sreedhar-reddy
    Contributor

    Okay, I had to relaunch keeping a rescript project open.
    The promise error does not occur.

  5. added a commit that references this issue on Apr 24, 2021
  6. chenglou commented on Apr 27, 2021

    @chenglou
    Member

    Right, this is step 3.1 here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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