-
Notifications
You must be signed in to change notification settings - Fork 510
Powershell language extension fails to start #2066
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
Comments
Thanks for the info! Can you also attach the logs here so we can get a better idea of what's going on? |
In Diagnostic mode, i don't have much more informations:
My log directory contains only a file with same info as above
$psEditor return nothing
HTH |
Do you have any GPO rules in place that this machine is a part of? |
Does this yield any events that happened at the same time you attempted to launch the extension? Get-EventLog -LogName Application -EntryType Error -Newest 10 | Where Source -match 'Application|\.NET' | Format-List * |
Yes my laptop is managed by my company, so GPO are in place. Here are the event log during my issue.
|
@olivermasson can you try this troubleshooting step for restricted systems and let us know if that helps? |
If it could help, i run Start-EditorServices.ps1 manualy.
And Logfile testom_EditorServices.log contains following output:
|
Do you know when this issue started occurring? Was it followed by a PowerShell extension update, or maybe a Windows update or possibly after a VSCode update? |
Hello Robert, I'm not sure, because I haven't used it in almost a month. For the record, I have another PC (which is not managed by my company) and for which, the powershell plugin runs correctly.
Hope this could help. |
@oliviermasson sorry you are hitting this issue, it is difficult for us to identify the cause but I think the best option is to make sure you have a clean, up-to-date environment: Uninstall VSCode If the bug's still there at that point, turn on diagnostic logging and upload your logs here. Particularly of interest would be the terminal's execution trace from the startup script. |
The actual problem lies elsewhere. We've had a bunch of startup issues recently, seemingly brought on by updates in VSCode or Windows (we haven't released an update recently and haven't had reports of issues on *nix or recent Windows versions). This class of problems seems to occur at some deeper level and its not clear how to get more information, but possibly collecting a dump and collecting fusion logs are the next steps. We've seen it occur on less recent Windows versions, and Windows systems with some kind of lockdown or policy applied. If you have an antivirus installed, you should check any logs it provides to see if it's silently blocking something. Could you provide the name and version of your operating system as well? Hopefully we can identify a pattern in startup hang reports based on that. |
Hello @rjmholt , I don't have antivirus software on my laptop, but certainly something worse in terms of locking and it's called avecto defendpoint.
And My powershell env is:
I'm trynig to collect fusion logs and dump. But i'll keep you updated. |
Please find the fusion.log collected during my issue |
As I suspected, our problem does not generates application dump. |
Admittedly this issue and others like it are stumping us a bit. One thing would be to try the preview version of the extension, The next suggestion would be to add logging statements to the ps1 and psm1 files. You should be able to just edit it at My guess is that something is stopping PowerShell from progressing at some point and the only way to know where the problem occurs is to see where it stops printing. We'll look into adding more logging to the start script in the near term, and hopefully we can identify a way to stop this from happening. |
Hi @rjmholt I've tried the preview version of extension, but issue is still there. FYI my laptop as been upgraded to a new Windows version But issue is still there |
@oliviermasson I'm going to deduplicate this issue to #2014. I've posted a comment in there about collecting more information. |
Linking this to #3077, where I'm following up with BeyondTrust |
Hello Team,
Powershell extension fails to start
Here are the output:
I'm using the following Powershell env:
I've tried unsuccessfully uninstall and reinstall the powershell extension
Thanks for you help
The text was updated successfully, but these errors were encountered: