-
-
Notifications
You must be signed in to change notification settings - Fork 197
TNS doctor does not detect if JDK is not installed and throws an error #1922
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
Comments
Behavior in master 2.5, offers to install jdk and can't reproduce the aforementioned error: |
Reproduced with the latest master of v 2.5.0. On mac the popup leads nowhere, on windows there is no popup, idk if there should be one. |
A quick update from my side, as I got the chance to try this case on a clean Windows 10 machine. Output:
Only the hyperlink is no more relevant. I would give again a try on macOS when get the chance. |
The initial error: |
NativeScript CLI: 2.1.1
OS: OS X El Capitan
Actual
If no JDK and JAVA_HOME environment variable are available,
tns doctor
throws an error:Cannot read property``match``of null
.After that, a java prompt leading to www.java.com/en/download/mac_download.jsp appears (see #1863 (comment)) which provides a download of JRE, but not JDK required by NativeScript.
Expected
A clear warning that JDK is not installed or is not configured properly, similarly to Android SDK for example:
WARNING: The Android SDK is not installed or is not configured properly.
Output of
tns doctor --log trace
:The text was updated successfully, but these errors were encountered: