I've spent a couple days on this (total node.js noob) and can't figure it out.I'm building an emscripten-compiled version of PCRE2. Something in the import/require of the .js wrapper of the compiled module is causing node to behave differently in vscode vs. shell.My tests run to completion and exit properly when invoked through a vscode launch task, but will hang for 80-90 seconds before exiting if run from command line (using the same command line as the vscode launch task).I've traced into mocha and confirmed that both invocations eventually call exitMocha in run-helpers.js. I think my mocha.opts are okay (ie. I didn't forget --exit).The most obvious difference in invocations is that vscode includes a --inspect-brk, but doing the same from the command line and debugging through chrome://inspect doesn't yield a clean exit.Code is at https://github.com/stephen-riley/pcre. Any hints are welcome!
Submitted January 02, 2020 at 01:23AM by TheFirstDogSix
No comments:
Post a Comment