question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Never ending "Formatting Powershell document ..."

See original GitHub issue

System Details

  • Operating system name and version:
  • VS Code version: 1.13.0
  • PowerShell extension version: 1.3.2
  • Output from $PSVersionTable:
Name                           Value                                                                                                                                
----                           -----                                                                                                                                
PSVersion                      5.1.15063.296                                                                                                                        
PSEdition                      Desktop                                                                                                                              
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                              
BuildVersion                   10.0.15063.296                                                                                                                       
CLRVersion                     4.0.30319.42000                                                                                                                      
WSManStackVersion              3.0                                                                                                                                  
PSRemotingProtocolVersion      2.3                                                                                                                                  
SerializationVersion           1.1.0.1                                                                                                                              

Copy / paste the below commands into the PowerShell Integrated Terminal, and paste the output here

code -v $pseditor.EditorServicesVersion code --list-extensions --show-versions $PSVersionTable

PS C:\gd\Documents\s\docker\tools\vstsagent> code -v
1.13.0
376c52b955428d205459bea6619fc161fc8faacf
PS C:\gd\Documents\s\docker\tools\vstsagent> $pseditor.EditorServicesVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
1      3      2      0


PS C:\gd\Documents\s\docker\tools\vstsagent> code --list-extensions --show-versions
DotJoshJohnson.xml@1.8.0
mkloubert.vs-deploy@9.25.0
ms-vscode.csharp@1.10.0
ms-vscode.PowerShell@1.3.2
PeterJausovec.vscode-docker@0.0.16

Issue Description

Seeing never ending formatting powershell document

image

1497305178-957d91d3-58fd-4e96-a470-66c2668669871497305175368.zip Sometimes even 2 of them

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:36 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
iamshitalcommented, Sep 16, 2018

I have this issue in every VSCODE version I had. Current reproducible in August update.

2reactions
Deathnerdcommented, Jul 16, 2019

Still having this issue on VSCode 1.36.1 on Win10. Anybody figured it out yet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code Layout and Formatting - PowerShell Practice and Style
You should never reformat the whitespace on a file as part of a content change because it makes the changes hard to spot....
Read more >
A better approach to formatting in PowerShell - Poshoholic
When it comes to formatting data, you have two options: use one of the core Format-* cmdlets (Format-Table, Format-List, Format-Wide, or Format- ...
Read more >
PowerShell script in one long line - auto-format?
I'd suggest using Visual Studio Code with the PowerShell extension. From there, you can utilize the Format Document tool (default keybind: ...
Read more >
How to Use $FormatEnumerationLimit - PowerShell Community
Q: When I format an object where a property contains more than 4 objects, I never see the extra property values. How can...
Read more >
Windows PowerShell Cheat Sheet
In the Windows (File) Explorer address bar enter cmd , powershell.exe ... Because the command Get-ChildItem is the end stage of a (one-stage)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found