halcyon / asdf-java

A Java plugin for asdf-vm.
MIT License
470 stars 87 forks source link

Error "parse error: Invalid numeric literal" when running `asdf list-all java` #62

Closed pylebecq closed 4 years ago

pylebecq commented 4 years ago

Hello. I'm trying to use this plugin to install different Java versions.

I'm using the following versions:

While following the instructions, I'm running into this issue:

$ asdf plugin list
elixir
erlang
nodejs
ruby
$ asdf plugin add java
$ asdf list-all java
parse error: Invalid numeric literal at line 1, column 4
$ asdf list-all java
parse error: Invalid numeric literal at line 8863, column 4
parse error: Invalid numeric literal at line 8863, column 4
parse error: Invalid numeric literal at line 8863, column 4

I haven't found a way to display more debugging information, unfortunately. I'm not sure what is being parsed while the error is happening. Some research on this error message does not give many results but there is an issue referenced in jq repository saying this kind of cryptic error message is sent from jq in certain cases.

Other plugins are working fine:

$ asdf list-all elixir | tail
1.10.0-otp-22
1.10.1
1.10.1-otp-21
1.10.1-otp-22
1.10.2
1.10.2-otp-21
1.10.2-otp-22
master
master-otp-21
master-otp-22
pylebecq commented 4 years ago

I don't know if the issue was on my side or maybe something was not available when I tried it the first time, but today I'm able to run the command without any issue, without any change to my computer (to my knowledge at least). And I'm able to install correctly as well.

So, I'll just close this. 👋