Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Development mode crashes the server repeatedly #87

Open
phoenixeliot opened this issue Dec 27, 2020 · 1 comment
Open

Development mode crashes the server repeatedly #87

phoenixeliot opened this issue Dec 27, 2020 · 1 comment

Comments

@phoenixeliot
Copy link

phoenixeliot commented Dec 27, 2020

When I try to run the server and open an extension debugging window via f5, I get this error repeatedly in the console from extensionHostProcess.js:

rejected promise not handled within 1 second: Error: Channel has been closed

stack trace: Error: Channel has been closed
    at m.validate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:809:372)
    at m.append (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:808:938)
    at m.append (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:900:249)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:809:937
    at processTicksAndRejections (internal/process/task_queues.js:94:5)

And this message in the testing window:
Uploading Screen Shot 2020-12-26 at 6.54.40 PM.png…

Is there anything special beyond the instructions in the README.md that I need to do to run this extension in development mode?

This is on VS Code version 1.52.1

@mike-kaufman
Copy link
Contributor

IIRC, to debug the "server", you need to:

  1. open one vs code instance on htmlhint (code ./htmlhint), and a second vs code instance in htmlhint-server (code ./htmlhint-server)
  2. build & "install" the server: on command-line npm run compile in htmlhint-server directory
  3. build the extension: on command-line, npm run compile in htmlhint directory
  4. launch a debug instance with the extenion active: from the "htmlhint" vs code instance, launch the "Launch Extension" debug confugration
  5. Attach to the the htmlhint-server: From the htmlhint-server vs code instance, launch the "Attach" debug configuration

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants