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

Java segment not working correctly with JAVA_HOME #1202

Closed
1 task done
carlosrpg opened this issue Nov 10, 2021 · 6 comments
Closed
1 task done

Java segment not working correctly with JAVA_HOME #1202

carlosrpg opened this issue Nov 10, 2021 · 6 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@carlosrpg
Copy link

carlosrpg commented Nov 10, 2021

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

Java segment not working correctly when using JAVA_HOME and Zulu SDK
image

Version

6.0.0

Theme

myPosh.zip

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Relevant log output

No response

@carlosrpg carlosrpg added the 🐛 bug Something isn't working label Nov 10, 2021
@carlosrpg carlosrpg changed the title Java segment not working correctly witth JAVA_HOME Java segment not working correctly with JAVA_HOME Nov 10, 2021
@JanDeDobbeleer
Copy link
Owner

@carlosrpg let me check if we can extend the regex (but oh my lord what a terribly long and unstructured output).

@JanDeDobbeleer
Copy link
Owner

@carlosrpg can you copy paste that text here so I can add a test easily?

@carlosrpg
Copy link
Author

err parsing info from C:\Program Files\Zulu\zulu-11/bin/java with OpenJDK 64-Bit Server VM (11.0.13+8-LTS) for windows-amd64 JRE (Zulu11.52+13-CA) (11.0.13+8-LTS), built on Oct 7 2021 16:00:23 by "zulu_re" with MS VC++ 15.9 (VS2017)

@carlosrpg
Copy link
Author

carlosrpg commented Nov 10, 2021

I dont know what it is trying to parse, but the java --version give me this

openjdk 11.0.13 2021-10-19 LTS
OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS)
OpenJDK 64-Bit Server VM Zulu11.52+13-CA (build 11.0.13+8-LTS, mixed mode)

@JanDeDobbeleer
Copy link
Owner

@carlosrpg it runs java -Xinternalversion

JanDeDobbeleer added a commit that referenced this issue Nov 10, 2021
JanDeDobbeleer added a commit that referenced this issue Nov 10, 2021
Copy link

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues.
If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants