-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Reuires Internet? #3515
Comments
Thanks for the report! Might I ask you to show the logs from In general the extension should not fail with the network error right away. Do you see the |
The Download now never pops up. Is it possible for other extensions that might require the internet to bring down the rust-analyzer extension? |
Hmm, this is the |
Thank you for the help! I just moved into a new house and until my ISP's modem/router arrives I am using my phones hotspot for internet otherwise I would have never noticed this. |
I managed to reproduce. I confirm that |
I guess I've managed to reveal this Santa-Barbara. I was mistaken about the fact that each extension is allocated in a fresh process. In fact, vscode allocates only one extension host process and all extensions are activated and work within this single process. Thus, if one of the extensions aborts the process all other extensions are shut down altogether. So why tree-sitter aborts the process? This was fun to debug. The fun partTo get to the root of the problem you
I guess // Fire and forget. Just validating ExP integration. Don't need to do anything with the value.
liveshare_core_1.getExpService().isFlightEnabledAsync('firstflight'); This guy calls an async function and doesn't handle any async errors (i.e. network unavailability). But it appears that emscripten compiler doesn't tolerate neither unhandled rejections nor uncaught exceptions. So the rejection (due to network outage) not handled by There are two guilty sides here. |
So for the time being, I recommend disabling either |
The problem of this issue is in @matklad I think we may mark this one as |
Using the vscode extension (installed from vscode) rust analyzer fails to load. If I connect to wifi I have no problems. However if I connect to wifi open vscode (rust analyzer works correctly at this point) and then disconnect from wifi, close and reopen vscode then I get the same error.
Without looking through the code base I would guess that the extension is looking for a newer version of rust analyzer and when it fails to connect to the internet the entire extension fails.
The text was updated successfully, but these errors were encountered: