-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Offline localhost support? #1925
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
Comments
We have a service worker that returns In the meantime if you're looking for an immediate workaround you could edit As for the "reconnecting" message though, that should only happen when the web sockets actually disconnect. Usually when they disconnect at regular intervals it means VS Code is crashing. Could you check code-server's output and see if there are any error messages? VS Code might also have some details logged in |
After running in verbose mode, I see a stream of the following messages:
Specifically, the server prints the I tried disabling password authentication with Looking at the server logs and browser logs, I don't see anything strange. The browser logs the handshake process and commands and occasionally an error. However the error seems unrelated. Nothing is printed right before the client reconnects. If I just sit idle, it disconnects about every 25 seconds and the only browser log is the handshake. |
Ah I'm sorry I let this slip by me. Were you able to get any logs from |
I should clarify what I mean, you said you looked at the server logs and I wanted to check that you meant the ones from that directory and not just the code-server output, if that makes sense (VS Code outputs its own logs separately). |
I'll also test this tomorrow in completely offline mode to make sure it's not something related to that. |
Won't be able to test this until next week unfortunately, but it's still on my radar. |
I tested out 3.4.1 (running in a local Linux container) after disabling my network. Interestingly enough |
code-server --version
: 3.4.1I've been trying to use code-server to develop locally on Chrome OS. I have a linux container running code-server and I can connect to it at localhost:8080.
For some reason, this requires internet access. My wifi is somewhat spotty and I get frequent "Reconnecting..." popups every 30 seconds or so. If I disable wifi, I just see the message "OFFLINE."
I understand that installing extensions requires internet access, but internet access should not be a dependency for a local connection.
I've seen #808 and unfortunately this no longer works on recent versions of code-server (seems to be 3.0.0+).
So I have two main questions:
The text was updated successfully, but these errors were encountered: