-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat(backend): show error if NodeJS is not installed #779
Conversation
docirl
commented
Oct 5, 2023
- When a user does not have NodeJS installed locally this causes Yeoman UI not to work correctly (blank screen when opening the wizard)
- When Yeoman UI starts, and before it tries to search for or use a generator, check if node is installed locally by calling getProcessVersions
- if no node version is returned above, then display a native vscode error message to inform the user
packages/backend/package.json
Outdated
@@ -185,6 +185,7 @@ | |||
"dependencies": { | |||
"@sap-devx/webview-rpc": "0.3.1", | |||
"@sap-devx/yeoman-ui-types": "^1.12.2", | |||
"@sap-ux/environment-check": "0.15.64", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not add dependencies on @sap-ux we want the OSS to remain clean of such dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I've removed this and add the code to the npm util.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove dependencies on @sap-ux
|
||
it("should show an error message", () => { | ||
windowMock.expects("showErrorMessage").withExactArgs(messages.nodejs_install_not_found); | ||
void panel.loadWebviewPanel(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void panel.loadWebviewPanel(); | |
await panel.loadWebviewPanel(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks
Constants["IS_IN_BAS"] = false; | ||
}); | ||
|
||
it("should show an error message", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it("should show an error message", () => { | |
it("should show an error message", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@idoprz I've removed the sap-ux dependency, can you re-review please? |