Skip to content

Conversation

@jfeingold35
Copy link
Contributor

@jfeingold35 jfeingold35 commented Dec 5, 2024

Explanation of bug: The bug occurred when javaHome was set to a valid path to a real folder, but that folder wasn't a functional Java home (i.e. would throw an error if you used it for blah -version).
This happens because an invalid path is caught in an earlier step, and a valid path that corresponds to an unacceptable version of Java is caught in a later step. Both of those cases are properly handled by throwing an SfError. Here, we were just rejecting a Promise, which was bubbling back up through the call stack in an unfriendly way. Properly throwing an SfError resolves the issue.

@jfeingold35 jfeingold35 changed the title FIX (CodeAnalyzer) @W17370746@ - Java Version identification bug fixed FIX (CodeAnalyzer) @W-17370746@ - Java Version identification bug fixed Dec 5, 2024
@jfeingold35 jfeingold35 merged commit 7be4f03 into dev Dec 5, 2024
32 of 33 checks passed
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.

4 participants