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

PIC / ES Freezes for minutes at a time with no internet. #1446

Open
AmandaCameron opened this issue Jul 22, 2018 · 8 comments
Open

PIC / ES Freezes for minutes at a time with no internet. #1446

AmandaCameron opened this issue Jul 22, 2018 · 8 comments
Labels
Area-Engine Issue-Bug A bug to squash.

Comments

@AmandaCameron
Copy link

Issue Description

When using the extension on my laptop when I have no internet, PIC and the Editor Services are both super slow. It took a good 5-minutes to scaffold out a project using plaster, and the intellisense never seems to load.

If I had to guess it's caused by something making a network call that takes too long and eventually times out.

Attached Logs

vscode-logs.zip

Environment Information

Visual Studio Code

Name Version
Operating System Linux x64 4.15.0-29-generic
VSCode 1.25.1
PowerShell Extension Version 1.8.1

PowerShell Information

Name Value
PSVersion 6.1.0-preview.4
PSEdition Core
GitCommitId 6.1.0-preview.4
OS Linux 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018
Platform Unix
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.10032.0 6.1.0-preview.4
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
bazel-code DevonDCarew 0.1.9
better-toml bungcip 0.3.2
clang-format xaver 1.6.2
cpptools ms-vscode 0.17.7
csharp ms-vscode 1.15.2
debugger-for-chrome msjsdiag 4.8.0
EditorConfig EditorConfig 0.12.4
gitlab-workflow fatihacet 0.6.0
gitlens eamodio 8.5.2
Go ms-vscode 0.6.84
HCL wholroyd 0.0.5
jinja wholroyd 0.0.8
Lisp mattn 0.1.8
markdown-table-formatter fcrespo82 1.3.2
much-assembly-required-language-support PJB3005 0.1.5
much-assembly-required-upload-on-save tomhodder 0.0.6
opa tsandall 0.0.6
polymer-ide polymer 0.6.0
poptheme ArtisanByteCrafter 0.0.8
postgresql JPTarquino 0.0.2
PowerShell ms-vscode 1.8.1
project-manager alefragnani 8.0.0
project-snippets rebornix 0.5.0
terraform mauve 1.2.3
vs-remote-debugger mkloubert 2.0.0
vscode-dash deerawan 1.10.0
vscode-docker PeterJausovec 0.0.27
vscode-eslint dbaeumer 1.4.12
vscode-helm technosophos 0.3.0
vscode-kubernetes-tools ms-kubernetes-tools 0.1.11
vscode-lua trixnz 0.12.4
vscode-proto3 zxh404 0.2.1
vscode-yaml redhat 0.0.13
vsliveshare ms-vsliveshare 0.3.423
xml DotJoshJohnson 2.3.1
zenscript Indexyz 0.0.2
@rjmholt
Copy link
Contributor

rjmholt commented Jul 27, 2018

Hi @AmandaCameron, thanks for opening an issue! As of v1.8.0 we don't do any networking at all in the PowerShell extension (in fact, we don't support TCP connections any more at all -- see #954).

It may be that VSCode itself trying to do a lot of networking -- see microsoft/vscode#54354.

@rkeithhill
Copy link
Contributor

Another option might be PowerShell trying to verify the Authenticode signature on Start-EditorServices.ps1. We've observed this behavior before with some code we have that validates assemblies are signed with a valid Authenticode cert. It is usually something like a three minute hang/delay IIRC. Although this was usually for systems that had never been connected to the internet (DOD stuff).

@rjmholt
Copy link
Contributor

rjmholt commented Jul 27, 2018

Good call @rkeithhill.

@TylerLeonhardt
Copy link
Member

@rkeithhill off the top of your head, how might one test for this? I can try to set up a VM to test.

@rjmholt rjmholt added Issue-Bug A bug to squash. Area-General labels Jul 31, 2018
@rkeithhill
Copy link
Contributor

rkeithhill commented Jul 31, 2018

You can try with a VM that has access to the Windows ISO image for installation but has never had an internet connection. In our case, it was folks running our code on submarines and in air-gapped satellite test systems. In talking to the engineer who has run into this issue over the years, he says it can also happen on a system that has been connected to the internet if there is a problem with the root certificate on that system. I suspect the problem is more likely to be due to a problem with the root cert on the system.

@AmandaCameron
Copy link
Author

AmandaCameron commented Aug 1, 2018

@rkeithhill would the root certficate be loaded/cached properly under a linux system for offline authentication? I have had internet on this laptop before, and don't notice any slow down unless I'm offline.

I'm on Pop!_OS ( A ubuntu-based distro ) and have installed VSCode, dotnet, and PowerShell Core from the offical MS apt repositories.

@rkeithhill
Copy link
Contributor

@AmandaCameron Good point - should have read your original post. On Linux, I don't believe PowerShell Core does anything with script signatures. The typical set of AuthenticodeSignature commands are not available on that platform. Same behavior with the latest update - 1.8.2?

@AmandaCameron
Copy link
Author

Just tested, and indeed it's still an issue under 1.8.2 -- worth noting I have my login shell also set to powershell (pwsh-preview to be exact) and it loads up fine, both in my normal terminal as well as in the VSCode embedded terminal ( NOT The Powershell Integrated Console, though )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Engine Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

4 participants