-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
Installing old JDTLS versions is not possible. #1508
Comments
After 2 tiring days of trying to install, I temporarily fixed it with this method:
|
That's exactly what I did as well :-) |
There is https://download.eclipse.org/jdtls/milestones/1.23.0/latest.txt launcher is also hard coded so it's about time this is causing issues.
|
There is a typo. Fixed path:
Yeah, I also wonder why it is not utilized. |
When trying to apply these changes, Mason is overwriting the changes to |
I think right now the only good solution is to have a custom registry with the packages you want. Even adding local path requires some yaml parser. Even when I tried last week, it did not work. I started doing jdtls package versioning by mason packages just like in NixOS. Ex:- If you are willing to add the necessary package version, I'm willing to accept the PR. |
Repeating my suggestion from mason-org/mason-registry#3017 (comment) here: Following the purl specs I wonder if we could add the required timestamp a
This should make it easy to reference it in the Alternatively we could append it to the
Then split it with an expression to create the final download URL. |
I had a same issue with you. |
I was able to get previous version installed by editing the |
I've searched open issues for similar requests
I've recently downloaded the latest plugin version of mason.nvim
Problem description
Installing older versions of jdtls fails because there is a hardcoded timestamp in the url of the mason-schema-registry
I initially posted an issue on the mason-tool-installer repository but I think it makes more sense to post the issue here.
WhoIsSethDaniel/mason-tool-installer.nvim#35
As one can see here there would exist a
latest.txt
file containing the full filename with the timestamp. Maybe it would be possible to look up the filename by first fetchinghttps://download.eclipse.org/jdtls/milestones/1.27.1/latest.txt
. That way the url is only depending on the version number and not on the timestamps.The issue was already mentioned in a discussion so I thought I'm not alone with this problem.
Expected behavior
Specifying older versions of jdtls in
:MasonInstall
successfully installs them.Affected packages
jdtls
Mason output
Installation log
Neovim version (>= 0.7)
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3
Operating system/version
Linux zenbook 5.15.0-84-generic #93-Ubuntu SMP Tue Sep 5 17:16:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Healthcheck
Screenshots
The text was updated successfully, but these errors were encountered: