-
Notifications
You must be signed in to change notification settings - Fork 88
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_HOME on Xonsh shell #113
Comments
@Kaylebor since you are way more knowledgable around xonsh then I'm. Do you have an idea how I can make the xonsh tests in #142 fail? Adding an |
Ey @delgurth Looking around a bit, I believe there are two ways:
Note that I've tested it a bit with a local script, and it returned the proper error code expected from I've suggested the appropriate edit; tell me if it works (or doesn't) |
@Kaylebor Thanks a lot, also for the explanation of your suggestion. With the help of the
I coudn't get your exact code to run, at least not with the xonsh version which was installed in the https://github.com/nektos/act container. But the I like your addition of the @halcyon I think this issue can be closed. Could you please check #136 (simple but nice fix) and my pull requests. Merging all 4 of my pull requests will most likely trigger merge-conflicts because I changed the same file a few times. You won't need to fix those, I'll do that. |
Glad to be of help, I prefer your solution too (specially since it works 😅). Plus, with |
Hello everyone,
I've been using Xonsh shell for a while, in combination with asdf, and I've found myself with an issue related with
JAVA_HOME
.Since I've used this plugin in the past, I checked for the
set-java-home.bash
script, which didn't work.So, I've created a
set-java-home.xsh
script, which fixed the issue for me, using Xonsh events (on_chdir and on_post_init).In short: how would I go about adding that script to the repo? It's the first time I've tried to contribute to an open source project, so I'm slightly lost on that.
Git is not an issue, I've already got a separate branch ready.
The text was updated successfully, but these errors were encountered: