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

No help to configure the right JDK #430

Open
linuswagner opened this issue Aug 26, 2024 · 3 comments
Open

No help to configure the right JDK #430

linuswagner opened this issue Aug 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@linuswagner
Copy link

Describe the bug

When trying to launch a Rascal shell in VS Code on a machine where the right JDK is installed but not configured correctly for Rascal to find, I encounter the Failed to start the Rascal REPL, check Rascal Output Window - Error: User setup required for jdk 11.

The documentation links to this. However, there is no help provided to correctly set up an existing JDK on my local machine (I'd assume, the plugin checks for the JAVA_HOME environment variable?).

Expected behavior
Get instructions how to correctly set up an existing JDK so that Rascal can discover it.

Screenshots
Screenshot 2024-08-26 at 18 04 31

Desktop (please complete the following information):

  • VS Code plugin v0.11.2
@linuswagner linuswagner added the bug Something isn't working label Aug 26, 2024
@linuswagner
Copy link
Author

Related: It actually opens the settings if I select the user setup in the step before.
However, there are no settings to configure. The corresponding code seems weird as well.
Screenshot 2024-08-26 at 18 11 40

@linuswagner
Copy link
Author

I also don't have the folder from which it checks for available versions available. Is it possible that there are installations that don't rely on it being present?

@DavyLandman
Copy link
Member

Yes, the custom JDK setting is not implemented yet, you're the first to notice that in a year ;) Could you give some information on how you got in this path? I assume the java detection noticed no installed java, and asked you for a way to solve it?

If you want, you can make a PR that adds the setting to the extension?

For context, normally we check regular places where java is defined (such as JAVA_HOME environment, java on the PATH, and our own ~/.jvm folder). Otherwise we offer the user to download java for them (and also keep it up to date).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants