Skip to content

Interacting With Integrated Terminal Causes VSCode to Stop Working #2389

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

Closed
RatliffCam opened this issue Dec 23, 2019 · 8 comments
Closed

Interacting With Integrated Terminal Causes VSCode to Stop Working #2389

RatliffCam opened this issue Dec 23, 2019 · 8 comments
Labels
Bug: VS Code Bugs in VS Code itself. Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.

Comments

@RatliffCam
Copy link

RatliffCam commented Dec 23, 2019

Issue Type: Bug

Whenever I launch VScode, it works as expected. As soon as I even click on the integrated terminal, I can no longer:

  1. Open a new file in the editor
  2. Created a new file in the explorer panel
  3. Rename a file from the explorer panel
  4. Create a new folder from the explorer panel
  5. Save any changes to settings, though I can make the changes, they just don't save.
  6. Close VScode out, I have to kill it from task manager
  7. Run any command from the command pallet
  8. Interact with source control providers
  9. Interact with extensions
    I'm sure there's more, this is just what i've noticed the most. It seems like most of vscode just stops responding or gets stuck in an infinite loop or something.

Whenever this problem happens, a loading bar will start dragging across whatever part of VSCode I just invoked. For example, if I try to open a new file in the editor, a new tab with the file's name will be created but the editor will be completely blank and the blue bar will be dragging across the editor. The same happens for the issues described with the panels, etc as well.

I've narrowed it down to the powershell extension, all other extensions are disabled.

Extension version: 2019.12.0
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.18363

System Info
Item Value
CPUs Intel(R) Xeon(R) CPU E5-2660 v4 @ 2.00GHz (4 x 1995)
GPU Status 2d_canvas: unavailable_software
flash_3d: disabled_software
flash_stage3d: disabled_software
flash_stage3d_baseline: disabled_software
gpu_compositing: disabled_software
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: disabled_off
rasterization: disabled_software
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: disabled_software
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
Load (avg) undefined
Memory (System) 6.00GB (0.66GB free)
Process Argv
Screen Reader no
VM 33%
@ghost ghost added the Needs: Triage Maintainer attention needed! label Dec 23, 2019
@RatliffCam
Copy link
Author

I can provide screenshots and videos if needed because it's a really weird issue to explain. Really my only work around for now is to just completely avoid using the integrated console which is.... Unfortunate.

@tlisiecki
Copy link

tlisiecki commented Dec 27, 2019

Interesting, I seem to be facing a very similar problem. Since the update to the 2019.12.0 preview I find the extension completely unusable and it locks the VSCode UI completely until the timeout on waiting for the language service occurs. The problem does not occur in the 2019.12.0 stable

In the logs I can only see the following:

12/27/2019 9:13:12 AM [NORMAL] - Language server starting --
12/27/2019 9:13:12 AM [NORMAL] -     exe: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
12/27/2019 9:13:12 AM [NORMAL] -     args: Import-Module 'c:\Users\***t\.vscode\extensions\ms-vscode.powershell-preview-2019.12.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2019.12.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\***\.vscode\extensions\ms-vscode.powershell-preview-2019.12.0\modules' -EnableConsoleRepl -LogLevel 'Diagnostic' -LogPath 'c:\Users\***\.vscode\extensions\ms-vscode.powershell-preview-2019.12.0\logs\1577434392-2e98066b-8106-4f84-9004-0c53647184e01577434373401\EditorServices.log' -SessionDetailsPath 'c:\Users\***\.vscode\extensions\ms-vscode.powershell-preview-2019.12.0\sessions\PSES-VSCode-16392-752007' -FeatureFlags @() 
12/27/2019 9:15:12 AM [NORMAL] - Language server startup failed.
12/27/2019 9:15:12 AM [ERROR] - The language service could not be started: 
12/27/2019 9:15:12 AM [ERROR] - Timed out waiting for session file to appear.
12/27/2019 9:15:32 AM [NORMAL] - powershell.exe started, pid: 2724

The session file entry in the log is unclear - the file PSES-VSCode-16392-752007 does get created and is readable.
The content is:

"{"status":"started","languageServiceTransport":"NamedPipe","languageServicePipeName":"\\\\.\\pipe\\PSES_khdgvval.kg4","debugServiceTransport":"NamedPipe","debugServicePipeName":"\\\\.\\pipe\\PSES_gzraipt4.uuz"}"

So the question is what is actually not readable? Maybe the pipes? Could there be something specific on my system that prevents the extension to create the pipes?

When the timeout occurs the vscode UI is unlocked but the extension fails to start properly :(

Previous version worked very well for me. Were there any significant changes that could have introduced such a problem?

VSCode :
Version: 1.41.1 (user setup)
Commit: 26076a4de974ead31f97692a0d32f90d735645c0
Date: 2019-12-18T14:58:56.166Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18362

Best Regards,
Tomasz

@TylerLeonhardt
Copy link
Member

Thanks for the info! Can you also attach the logs here so we can get a better idea of what's going on?

If you're using the PowerShell Preview extension, can you also attach the payload logs?

@TylerLeonhardt TylerLeonhardt added Needs-Repro-Info and removed Needs: Triage Maintainer attention needed! labels Dec 28, 2019
@tlisiecki
Copy link

tlisiecki commented Dec 30, 2019

Hi all,

I can provide the logs, but unfortunately not the payload logs. Don`t know why, but despite using powershell-preview-2019.12.0 the parameter specified in the docs is not recognized and it also seems to do nothing as the Powershell Editor Services is not visible in the dropdown list in Output tab.

[Edit]
In case it helps anyhow - just tried and in powershell-preview-2019.11.0 the dropdown is available.
Maybe Powershell Editor Services do not start for me for some reason in powershell-preview-2019.12.0 ?

settings

outputTab

logs.zip

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Dec 30, 2019
@RatliffCam
Copy link
Author

logs.zip
Attached are my logs as well.

@tlisiecki
Copy link

By the logs I see that we have two different cases, where the significant difference is how the Powershell Editor Services are loaded. In the preview version of the extension it is a dll binary while in stable version it is still a psm1 powershell module. @TylerLeonhardt should I open a separate issue for the preview version?

@SydneyhSmith
Copy link
Collaborator

@RatliffCam @tlisiecki thanks for providing this information, no need to open another issue as this looks to be the same issue as #2377 thanks!

@SydneyhSmith SydneyhSmith added Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically. Bug: VS Code Bugs in VS Code itself. and removed Needs-Repro-Info Needs: Maintainer Attention Maintainer attention needed! labels Jan 7, 2020
@ghost
Copy link

ghost commented Jan 8, 2020

This issue has been marked as duplicate and has not had any activity for 1 day. It has been closed for housekeeping purposes.

@ghost ghost closed this as completed Jan 8, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: VS Code Bugs in VS Code itself. Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

4 participants