-
Notifications
You must be signed in to change notification settings - Fork 508
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
PowerShell Integrated Console unusable with no internet #954
Comments
I wasn’t able to reproduce the issue on my test system with those extensions. Do you have anything running in your Microsoft.VSCode_profile.ps1? |
I had a similar problem, moreover access to symbols is impossible. |
Nothing is running in my Microsoft.VSCode_profile.ps1 file. Below is a screenshot of what chrome debugger outputs during this scenario. After some research, if I install a network loopback adapter it will work as expected. Since I have a x64 bit OS I used the following:
UPDATE 7.19.2017: Alternatively for adding a loopback adapter, use LoopbackAdapter module. |
@PowerSchill, I have committed on my forked repo which prevents the Integrated Console from being stuck in the "Starting PowerShell…" status during the 'Disconnected' scenario. It will put the console in a status of, 'Initialization Error'. It’s a modest fix, but I have now found where its failing and will attempt later to have the console usable. Unless you or anyone else has any suggestions or solutions (even proposed PR), please do this. I don't want to suppress development in anyway. The animated gif below will illustrate what my forked git commit does when having a network adapter connected. And then I'll disconnect my connection and reload VSCode. |
I am having the same issue - no internet causes "Starting PowerShell..."
My connection is going through a switch, router, then modem at work, and a router-modem at home. Same problem in both places. |
Same issue VSCode 1.16.1 |
I also see the same issue with the latest versions;
|
This should be resolved in the next update as we're switching over to use named pipes. As for now, do you not have a loopback adapter installed? That should allow communication between VSCode and the PowerShell language server even without an internet connection. Also, can you set the extensions logLevel to
Now, when the PowerShell Integrated Terminal tries to start, there should be a bunch of yellow/verbose output. |
I do not have a loopback adapter installed. I only hit this issue because I wasn't able to get on a network, it won't be a common issue for me. This is only the second time I hit it, but it took me awhile to remember this was the cause. Here's the diagnostic content from the terminal:
|
As Keith has said, this will be fixed in the next version because we will no longer be relying on TCP in the extension. Switching to named pipes will allow the extension to work without internet and without a loopback adapter. 🎉 If you would like to get this fix immediately, you can grab the latest CI build: Or, just wait for the next release 🙂 |
@tylerl0706, what's the build number to the version you referred to in your last post? Because I noticed this issue again last week during a service outage where I live. |
Your VSCode should automatically update to 1.8.0 of the PowerShell extension. |
Oh nice! It just updated to 1.8.0 and now works even when internet is unavailable. Thanks! |
Steps to Reproduce:
Expected:
The picture below shows the console that is unusable.

The text was updated successfully, but these errors were encountered: