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

make auto-update of nextls configurable #209

Open
dch opened this issue Apr 2, 2024 · 3 comments
Open

make auto-update of nextls configurable #209

dch opened this issue Apr 2, 2024 · 3 comments
Labels
needs-response maintainer is waiting on response from user

Comments

@dch
Copy link

dch commented Apr 2, 2024

nextls is automatically fetched for more common OS & platforms, but for other
platforms it should be possible to disable the auto-update, or at least
handle it more gracefully than just bailing out.

Currently I'm just building nextls locally in a repo and starting it listening
on the appropriate port as required.

What's a reasonable approach here? I see a few options:

  • provide a way to skip auto-update but still have nextls usable
  • handle download failure more gracefully with:
    • bail with a reasonable error message if not MacOS or Linux
    • ditto for other architectures
    • check if curl is available
    • handle failure of curl itself
@mhanberg
Copy link
Collaborator

mhanberg commented Apr 2, 2024

If you set the cmd field to the location of your locally built exe, it will disable auto update and still run it through stdio as usual.

@mhanberg
Copy link
Collaborator

mhanberg commented Apr 2, 2024

Also do you mean auto update or the auto install?

Auto update is done by next ls (updates itself in place) and auto install is when the nvim plugin downloads it if it can't find one and cmd isn't set

@mhanberg
Copy link
Collaborator

mhanberg commented Apr 3, 2024

Also what platform are you on?

@mhanberg mhanberg added the needs-response maintainer is waiting on response from user label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-response maintainer is waiting on response from user
Projects
None yet
Development

No branches or pull requests

2 participants