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

Cannot find oracle jdk from windows registry #19

Closed
Eskibear opened this issue Jul 18, 2019 · 4 comments · Fixed by #21
Closed

Cannot find oracle jdk from windows registry #19

Eskibear opened this issue Jul 18, 2019 · 4 comments · Fixed by #21

Comments

@Eskibear
Copy link
Contributor

First I want to thank you for the convenient libary. But I do find below problems:

missing leading slash in key

"SOFTWARE\\JavaSoft\\Java Development Kit"

I have to add the leading slash to get it work, i.e. \\SOFTWARE....

early return of findInRegistry

It always returns null, without waiting for callback to execute.

var keysFound =[];
var keyPath = paths.forEach(function(element) {
var key = new WinReg({ key: element });
key.keys(function(err, javaKeys){
keysFound.concat(javaKeys);
});
}, this)
if(!keysFound.length) return null;

new registry key for JDK 11/12

For Oracle JDK 11/12, it uses a new key SOFTWARE\\JavaSoft\\JDK.

Can you kindly fix these?

@Eskibear
Copy link
Contributor Author

Can you kindly fix these?

My work is currently blocked by this issue, and I tried to fix it by myself but the JS callback hell just... Is there any possibility to get the issue fixed recently? I don't want to re-invent the wheel if someone can fix it.
Thanks in advance.

@jsdevel
Copy link
Owner

jsdevel commented Jul 25, 2019

I'm sorry, but this is an open source project that I am not getting paid to support. I am happy to review pull requests and merge code and publish this module, but you will have to fix this on your own to help the community.

@Eskibear
Copy link
Contributor Author

I would have sent out the PR if I was able to create it.
JS with callback hell is too hard to maintain (at least for me), and now there's more elegant way to handle async functions in JS world. If you do want me to fix the issue, I have to rewrite the whole project in TS. Are you willing to accept that kind of PR?

@jsdevel
Copy link
Owner

jsdevel commented Jul 25, 2019

@Eskibear i'm totally cool with refactoring the project to TS! If possible though, can you do that first before fixing your issue? that way it's easier to track what exactly changed.

this was written when node v0.10 was the stable version...

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 a pull request may close this issue.

2 participants