8000 OLS should be a able to start without internet connection · Issue #595 · DanielGavin/ols · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

OLS should be a able to start without internet connection #595

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

Open
tadeohepperle opened this issue Feb 13, 2025 · 2 comments
Open

OLS should be a able to start without internet connection #595

tadeohepperle opened this issue Feb 13, 2025 · 2 comments

Comments

@tadeohepperle
Copy link

OLS currently makes a request to Github on startup to potentially update itself.
If this request fails, OLS shuts down. This is annoying when e.g. traveling and not having a constant internet connection, because OLS cannot be used at all unless the project was loaded at an earlier point in time with internet connection.
It would be great if it could just ignore failed update requests and start up anyway.

@DanielGavin
Copy link
Owner

Isn't this working: #534

I haven't tested it, but I thought you could dismiss the prompt.

@tadeohepperle
Copy link
Author

I think my initial diagnosis might not be correct, but here are some observations I have made: when OLS notices there is a new version available and I dismiss the dialog, this appears:

Image

Following this OLS output shows this error message and it shuts down (?) (at least it does not index any files or allow code navigation after this).

[Error - 5:42:17 PM] Odin Language Server Client client: couldn't create connection to server.
Launching server using command /home/tadeo/.config/Code/User/globalStorage/danielgavin.ols/0/ols-x86_64-unknown-linux-gnu failed. Error: spawn /home/tadeo/.config/Code/User/globalStorage/danielgavin.ols/0/ols-x86_64-unknown-linux-gnu ENOENT

Now when I turn off the internet connection and open another project, OLS seems to remember that there is a new version available and tries to download it, but gives this error message after which it also shuts down.

Image

So once it detect that an update is available it seems like you can't use OLS until the update has been done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0