Comments (10)
oh, reading the code, it actually is importing some asdf source code. That obviously isn't there since asdf isn't installed. If you installed asdf (just didn't add it to your shell rc) that should fix it. It has to be in that directory though, so run:
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.1
We may need a longer term solution here though, especially if this is something happening in other plugins.
from mise.
Cool, yeah, not a blocker at all, just thought I'd surface it in case another plugin does break. I think the Java plugin (and to an extent Java) is just weird. I'd say it should default to openjdk, but I'm sure people would argue otherwise.
I'm never installing asdf again! π
from mise.
As far as I know, JAVA_HOME
is not for the executable, but largely used by other tooling to find the Java SDK. For example, IDEs will use it to find the right source files to import. Although since IDEs usually configure that themselves I've never had an issue with asdf not setting it properly.
from mise.
I can dig into this more tomorrow. It's likely just that I'm missing some environment variable that asdf sets.
Also, rtx install java does not work
This is actually an issue with the plugin (arguably). It doesn't output any "normal" versions that start with a number. It's an issue in asdf as well:
β― asdf latest java
No compatible versions available (java [0-9])
I'm not sure what should happen here but it likely needs to be fixed in the java plugin. One thought I had is maybe it should use the bin/latest-stable
script. Currently rtx doesn't use that since I couldn't find a plugin that used it as a reference. Java doesn't have it either so we'd need to first put one in the plugin for that to be a solution.
from mise.
I explain this in the readme but the java plugin is actually probably the best suited to rtx over asdf (barring this hiccup). You don't need to setup the special asdf-java shell extension to get JAVA_HOME
to work, it'll just set JAVA_HOME
automatically the way you expect.
from mise.
though, that's a theory, I'm not a java dev so maybe you can tell me how well it actually works :)
from mise.
I did test java somewhat and it seems to work reasonably well. It does throw this error but it isn't important. There is also the matter of there not being a default version.
I think barring some rough solutions these both rely on changes within the plugin, or perhaps forking the java plugin into an RTX variant so that's the one that gets picked up when you run rtx install java
That said, there are a ton of other issues people have raised that I feel are more important so this one has dropped near the bottom of my queue. I'd be happy to consider any solutions here, or if the problems are bigger than I see let me know.
I'll keep this open of course, I just figured I'd let you know I don't think it's super likely I'll get around to this in the near term.
from mise.
Thanks for the follow up! I'm not blocked or really effected by this. Thanks for making sure it's not a big issue.
I'm good with this outcome, I have know problem if you want to close it.
from mise.
I'm not sure what should happen here but it likely needs to be fixed in the java plugin. One thought I had is maybe it should use the
bin/latest-stable
script. Currently rtx doesn't use that since I couldn't find a plugin that used it as a reference. Java doesn't have it either so we'd need to first put one in the plugin for that to be a solution.
The problem with asdf is that it only has a notion of version for a particular plugin. Several plugins are meanwhile provided in various distributions/variants (e.g. Java: Azul, OpenJDK, ... or Python: Anaconda, PyPy, ...) So it rather should support something like plugin@distribution:version
. This leads to countless issues with commands like latests etc.
from mise.
I'm going to close as it seems this is resolved. The problem we talked about is really in asdf-java if it's anywhere.
from mise.
Related Issues (20)
- Error during eza installation HOT 1
- After installing the latest version, βmiseβ rolls back to the previous one HOT 1
- Some tools installed via Go backend result in incorrect installed versions reported HOT 4
- Go backend: Infinite loop installing non-GitHub-hosted Go package HOT 5
- mise used --global shouldn't check the versions of local tools HOT 1
- Mise use defaults to installing globally if a .mise.toml doesn't already exist HOT 1
- When will "mise install" not install tools? HOT 1
- mise use altering global config if local config does not exist HOT 1
- All backends should include their dependencies on PATH HOT 1
- Option to ignore PATH HOT 1
- Github API rate limiting could be handled more explicitly HOT 1
- Fail to install mise v2024.6.2 HOT 3
- Some responses from `mise-versions.jdx.dev` are outdated HOT 1
- `mise plugins ls` returns error immediately after install
- Cannot use installed version of Go from Mise in VS Code HOT 8
- Group prefix not applied for script tasks HOT 1
- mise use latest does not actually install the latest versions of tools HOT 10
- mise.run should install musl variant whenever this is available
- Use uv for much faster Python virtual env creation HOT 1
- Enable `.mise.toml` IDE auto-complete/validation via `$schema` key HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mise.