-
Notifications
You must be signed in to change notification settings - Fork 488
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
Extension/Integrated Console hangs on startup before prompt #2014
Comments
I second this motion. Was about to open an issue myself. The console window just shows PowerShell Integrated Console and that's it. |
Thanks for opening an issue. If we can find a way to reproduce it, we can hopefully fix it.
This is likely not a performance issue. A couple of questions:
We're aware of a Windows bug that's been affecting recent VSCode builds in which the terminal doesn't behave properly, so that's my current suspicion. |
See also: #1795 (comment) |
It looks like it was being stopped by a pending windows update on my end. I
rebooted, and it seems to have gone back to working.
…On Thu, Jun 6, 2019 at 1:24 PM Robert Holt ***@***.***> wrote:
One test is: if you go to an ordinary native powershell terminal, does
something similar happen?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2014?email_source=notifications&email_token=AGUA7HPI6VOVBAHPXJ6CUATPZFW75A5CNFSM4HVICWCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXEBWAY#issuecomment-499653379>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGUA7HNSFF5GREBENDQTSZ3PZFW75ANCNFSM4HVICWCA>
.
|
I would like to answer the questions:
No, still stuck at PowerShell Integrated Console
Sorry, but I do not know.
I have two machines. On the "good" the Powershell console opens OK., On the "bad" - it is stuck. In both cases it is Windows 10.
Powershell extension
"Good" Machine
Powershell extension
Same thing - it hangs.
No. |
Hmmm it certainly looks like the only difference between machines is the Windows version (which implies it may be the Windows bug). Another thing it might be worth doing is turning the logging up to Diagnostic and seeing how far you get through startup |
Actually on the "bad" machine hitting many times Enter does force the console to show the prompt. So, yes - hitting multiple times Enter shows the console. But, it does not load the profile. I will get the logs later. |
Yeah that sounds like the relevant Windows bug.
Which profile is that? The PowerShell extension looks for the profile in |
Yes, it does not load the Note that once the prompt is shown explicitly loading |
Ohhhh, as in it loads once you press Enter? Yeah that's because this Windows bug just stops the startup from proceeding (it's a bug in the Windows console APIs), before it can get to the profile execution stage. It's like if you put The fix lies below the extension -- it's something we depend on VSCode and Windows for. From what I can tell, the fix is to run Windows update. |
Well, it does not load when I press So, who knows what happens with this bug? Is it the Windows team? The VS Code team? Who is the address to get some info on ETA of the fix? |
Ah, I misunderstood earlier. Given that, we still need more information to determine the bug. If it's a Windows/VSCode terminal API problem, the fix is almost certainly already available and it's just a matter of you getting it.
Is this still the Integrated Console? What's the value of I think the best option is to make sure you have a clean, up-to-date environment:
|
@MarkKharitonov were you able to resolve this with @rjmholt's suggestion of uninstalling, and reinstalling VSCode or are you still facing this issue? Thanks! |
It is a bit heavy for me right now. Did not have time to do it yet. |
I can only say that I no longer have the "good" machine - both are "bad" :-(. |
I am having the same issue. I've found that when manually running the "args" command from Powershell itself, this code hangs indefinitely.
PS displays "PowerShell Integrated Console" and then does not proceed any further. VSCode with debug enabled shows:
|
@JR70386 If you're running the startup script directly, that's intended behaviour. The script starts the backend and then waits patiently for a client to connect before proceeding. If there's no client, it will just wait indefinitely. Are you having trouble starting PowerShell from VSCode? @MarkKharitonov Did you get a chance to try out those steps? |
I have the same behaviour here and just tried something out (please see attached images): 1: Started VSCode with a Powershell Script ==> the prompt doesn't show up So it looks like the shell is there, it's just not showing up correctly. |
@rjmholt Yes, I'm having trouble starting a PS terminal in VSCode. The behavior is similar, so that's why I brought up my manual tests. |
Hi rjmholt, I've sent a new archive with 4 dump taken at different interval during the issue. I can't or i don't know how to attach a debugger inside visual studio code, because when i try to run the debugger it claims that i need to have a powershell session started... Secondly i don't understand how the language service is executed automaticaly by VS code, because i'm not sure is executing the code i modify. But once it failed execute the powershell integrated console, the output log contains the following:
Nothing related to the wait-debugger i've inserted in the code. During all this test my CPU was not above 60% (peak @60% avg @45%) and memroy not above 48% I don't have any windows update pending. |
@oliviermasson thanks for providing so much information...one more question, do you run PowerShell in an "all signed" environment? |
Here is my executionpolicy config :
Since my first use of VS code with Powershell language extension, i have never changed this setting and it has always worked...until we encountered this issue. I hope this answers to your question? |
@oliviermasson Did you ever figure this out? I'm having the same problem. |
Does anyone have a solution for this? I've got the same "Timed out waiting for session file to appear" error, and the extension reports there was an error during session initialization. EDIT: Looks like it works if I switch to PS 5.1. There's something it doesn't seem to like about PowerShell Core on my machine. 🤔 |
Having the same issue too! |
For those of you on Windows PowerShell that see this issue, can you please send me your event logs for Windows PowerShell? I wonder if that has anything important... ALSO If you see the issue & you have an anti-virus, can you please check the logs of your AV for anything suspicious? Thanks for your patience... this has been very hard to troubleshoot without a repro on my end. |
From my side the problem has been solved by running x86 version of the
language extension.
x64 version always hangs.
But, I also have to mention that my corporate laptop has security component
(like beyondtrust privilege guard) that is upgraded very often without
notification.
So, I don't know if these upgrades have not also help solving this issue.
HTH
Le jeu. 2 avr. 2020 à 19:54, Tyler James Leonhardt <[email protected]>
a écrit :
… For those of you on Windows PowerShell that see this issue, can you please
send me your event logs for Windows PowerShell? I wonder if that has
anything important... ALSO If you see the issue & you have an anti-virus,
can you please check the logs of your AV for anything suspicious?
Thanks for your patience... this has been very hard to troubleshoot
without a repro on my end.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2014 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJCYS2D6P443SR7PXVZ5UY3RKTGONANCNFSM4HVICWCA>
.
|
Hi, You're right about BeyondTrust Privilege Management having something to do with this. I could not find anything in its' logs that would point to this issue though. This issue went away after we upgraded to BeyondTrust Privilege Management for Windows (x64) 5.6.126.0. Previously we had 5.4.230.0 and I could reproduce the issue on a clean image with just Privilege Management 5.4.230.0, Visual Studio Code 1.45.1 and the PowerShell extension 2020.4.0 installed. Stopping the "Avecto Defendpoint Service" service also makes the issue go away (that's the older name for the product). |
If anyone's still running into BeyondTrust/Avecto issues, we're following up on that in #3077, since there's new discussion on it. I'm going to close this issue now, so we can deduplicate discussions. |
Issue Type: Bug
Open Visual Studio Code (the terminal window won't load after five minutes with 30 gb of RAM).
Extension version: 2019.5.0
VS Code version: Code 1.35.0 (553cfb2c2205db5f15f3ee8395bbd5cf066d357d, 2019-06-04T01:17:12.481Z)
OS version: Windows_NT x64 10.0.17763
System Info
checker_imaging: disabled_off
flash_3d: disabled_software
flash_stage3d: disabled_software
flash_stage3d_baseline: disabled_software
gpu_compositing: disabled_software
multiple_raster_threads: disabled_off
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
surface_synchronization: disabled_off
video_decode: disabled_software
webgl: disabled_off
webgl2: disabled_off
The text was updated successfully, but these errors were encountered: