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

bugfix: Remove locate-java-home #1484

Merged
merged 1 commit into from Apr 21, 2024
Merged

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Apr 18, 2024

It seems it uses promises underneath and if anything throws it just hangs, so Metals will never start. I manged to reproduce it locally, though hopefully doesn't reproduce in a lot of machines

@tgodzik
Copy link
Contributor Author

tgodzik commented Apr 18, 2024

One thing we might need want to do is at least try to read java from PATH, not just from env.

version "1.1.11"
resolved "https://registry.yarnpkg.com/@viperproject/locate-java-home/-/locate-java-home-1.1.11.tgz#9ae7c281ab005bcbe8b730fee495def0440385f3"
integrity sha512-cnwxSsB1QB4eeerRd8XsBEDh/BHD1726g/UqA3RAvPBlbZVqzm75jyq+0p9hsVQdtHxUdLRzpjSktck8YEuaAQ==
"@viperproject/locate-java-home@^1.1.15":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we even need this package anymore?

It seems it uses promises underneath and if anything throws it just hangs, so Metals will never start. I amanged to reproduce it locally, though hopefully doesn't reproduce in a lot of machines
@tgodzik
Copy link
Contributor Author

tgodzik commented Apr 21, 2024

I will merge to let people test out since it seems that it fails for more people. I will add code for getting Java from PATH later on

@tgodzik tgodzik merged commit 92ddb6a into scalameta:main Apr 21, 2024
10 checks passed
@tgodzik tgodzik deleted the remove-locate branch April 21, 2024 12:34
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.

None yet

2 participants