Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #117: license info throwing error and breaking Promise #118

Merged
merged 2 commits into from
Apr 14, 2021

Conversation

kitsunekyo
Copy link
Contributor

This fixes #117

The regex check on line 279 never stuck, due to it testing for \n, instead of the escaped string version.

Changes:

  • fixed the regex check
  • aligned the test with the other conditions for consistency

Reproduce:
use vscode ms-vscode-remote.remote-containers extension, to run it in a fresh container -> this will require accepting the license, and throw the error.

I've added a temporary run.js locally, where I execute the package and attach to it via node debugger in vscode. (breakpoint line 277). Then its fairly clear that the regex that supposedly should clear the error, does not work.

escaped \n in the regex check, as the string to test is using \n as string. this fixes an issue where the "license accepted" info message would throw an error.
moved the license-accepted error check into the same if/else conditional for readability.
@kitsunekyo kitsunekyo changed the title Issue/#117 license info throwing error Fix #117: license info throwing error and breaking Promise Jan 3, 2021
@kitsunekyo
Copy link
Contributor Author

@ddsol is anything missing, for it to get fixed? happy to help out

@ddsol ddsol merged commit c748bbc into ddsol:master Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

license info in stdout results in error
2 participants