Registry Mirror
Skip to content

VS Code\PowerShell - "Formatting Document" Long Execution Time  #984

Open

Description

System Details

  • Operating system name and version: Windows 10 Ent x64
  • VS Code version: 1.14.2 (Latest)
  • PowerShell extension version: 1.4.1 (Latest)
  • Output from $PSVersionTable:

Name Value


PSVersion 5.1.15063.483
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.483
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Copy / paste the following commands into the PowerShell Integrated Console, and paste the output here:

code -v
1.14.2
cb82febafda0c8c199b9201ad274e25d9a76874e

$pseditor.EditorServicesVersion
Major Minor Build Revision


1 4 1 0

code --list-extensions --show-versions
ms-vscode.PowerShell@1.4.1

$PSVersionTable
v-toddle.microsoft.com.zip
Name Value


PSVersion 5.1.15063.483
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.483
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Issue Description

Hello! I posted this to VS Code and they referred me here (microsoft/vscode#31985 (comment))

I've noticed over the last couple days/week that VS Code is taking a very long time on "Formatting Document". I have my VS Code instance configured to format the document on every save, and I save constantly, so this is a real PITA. :( I have attached the contents of $env:APPDATA\Code\User to this report.

Steps to Reproduce

Steps to Reproduce:

Configure VS Code using my settings.json
Open up any Posh Script. I have encountered this on scripts with as few as 120 lines
Make a change
Save file
Blue bar at bottom of VS Code states "Formatting Document". VS Code is responsive, but Snippets and Intellisense do not function until it completes doing whatever it was doing.
Reproduces without extensions: No

Attached Logs

v-toddle.microsoft.com.zip

Follow the instructions in the README
about capturing and sending logs.

Activity

  1. daviwil commented on Aug 14, 2017

    @daviwil
    Contributor

    Actually now that I read this, I see you mention that it happens even on short scripts. Is it consistently slow even when you open up a fresh VS Code session and try it?

  2. RickFlist commented on Aug 14, 2017

    @RickFlist
    Author

    It does NOT repro if I launch code with the --disable-extensions parameter. Otherwise, it repros every single time, seemingly regardless of what extensions I have installed or the size of the script or the freshness of the session

  3. daviwil commented on Aug 14, 2017

    @daviwil
    Contributor

    This issue is caused by the PowerShell extension, so that's really the only thing that matters in this case. I'll take a look at your logs tomorrow and let you know if there's anything you can try to narrow down the source of the issue.

  4. RickFlist commented on Aug 15, 2017

    @RickFlist
    Author

    Thanks. Not being able to use Snippets has really slowed me down. :\

  5. RickFlist commented on Aug 15, 2017

    @RickFlist
    Author

    I also just noticed that CTRL+SHIFT+O does not list all the functions in a module as well. I verified integrated terminal started and even killed and and restarted it. CTRL+SHIFT+O states "no symbol information found"

  6. RickFlist commented on Aug 16, 2017

    @RickFlist
    Author

    FYI, while working on something I accidentally moved my powershell.json snippets file. This resolved the performance issues.

  7. daviwil commented on Aug 18, 2017

    @daviwil
    Contributor

    Kapil Borle (@kapilmb) will look into this for the next release

  8. RickFlist commented on Aug 18, 2017

    @RickFlist
    Author

    The snippets file was a red herring, after about 30 minutes the perf issues came back. Is there a workaround? Not having intellisense is very annoying

  9. daviwil commented on Aug 18, 2017

    @daviwil
    Contributor

    You could try turning off PSScriptAnalyzer in your settings:

    "powershell.scriptAnalysis.enable": false
    
  10. RickFlist commented on Aug 18, 2017

    @RickFlist
    Author

    That seems to work. Thank you so much.

  11. RickFlist commented on Aug 18, 2017

    @RickFlist
    Author

    Fudge. It's back.

  12. kapilmb commented on Aug 19, 2017

    @kapilmb

    Todd Lehmann (@RickFlist) There is a good chance that the formatter is crashing, which is causing the problem. There are a few situations I can think of that that can cause it to crash but would like to know for sure what is causing the problem on your side.

    Would it be possible for you to share the document on which this is happening so that I can find out the exact issue? Thanks!

  13. 8 remaining items

  14. RickFlist commented on Aug 21, 2017

    @RickFlist
    Author

    Try these. They are pretty much the only two modules I've been working with over that time frame.

    [Redacted]

  15. RickFlist commented on Aug 22, 2017

    @RickFlist
    Author

    So, with caution, I am going to say that over the last 24 hours VS Code has been much more performant. There are still often delays in intellisense and Formatting Document does will sometimes run much faster.

    I have made the following changes since bug opened:

    • Upgrade to VS Code x64
    • A few days ago I was prompted to update VS Code x64 which I did
    • I found a ton of old Azure modules on my computer. I manually removed all versions of the Azure powershell modules and then reinstalled them
    • Reinstalled Azure Extension Pack because of a message that IoTHub had been deprecated. Reinstalling the Azure Extension Pack did not install the correct version of IoTHub so I manually installed the correct RTM version of IoTHub Extension
  16. RickFlist commented on Aug 23, 2017

    @RickFlist
    Author

    Hey Kapil, I just tried to format the CP-Azure.psm1 file in VS Code and it hung on "Formatting Document" forever. I opened up the logs and searched for error, and found this line repeated in bursts:

    8/23/2017 1:43:32 PM [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs

    MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    

    image

    I'm wondering if the reason it is hanging is because the request to cancel is not getting caught and honored?

    Logs attached. Contact me if you want an updated version of CP-Azure.psm1 for repro
    v-toddle@microsoft.com-vscode-powershell-logs-[2017-08-09 to 2017-08-23]-WindowsZip.zip

  17. RickFlist commented on Aug 25, 2017

    @RickFlist
    Author

    Hi Kapil, were you ever able to repro or make any progress on this?

  18. fcharlie commented on Sep 20, 2017

    @fcharlie

    vscode-powershell 1.43 format slow...

    2017/9/20 23:21:51 [NORMAL] - Method "StartLogging" at line 144 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs
    
        PowerShell Editor Services Host v1.4.1.0 starting (pid 1164)...
        
          Host application details:
        
            Name:      Visual Studio Code Host
            ProfileId: Microsoft.VSCode
            Version:   1.4.3
            Arch:      64-bit
        
          Operating system details:
        
            Version: Microsoft Windows NT 10.0.15063.0
            Arch:    64-bit
    
    2017/9/20 23:21:52 [NORMAL] - Method "StartLanguageService" at line 180 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs
    
        Language service started, listening on port 14461
    
    2017/9/20 23:21:52 [NORMAL] - Method "StartDebugService" at line 254 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Host\EditorServicesHost.cs
    
        Debug service started, listening on port 19538
    
    2017/9/20 23:21:55 [NORMAL] - Method "Initialize" at line 220 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
    
        PowerShell runtime version: 5.1.15063.608, edition: Desktop
    
    2017/9/20 23:21:58 [NORMAL] - Method "FindPSScriptAnalyzerModule" at line 354 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Analysis\AnalysisService.cs
    
        PSScriptAnalyzer found at C:\Users\CharlieInc\.vscode\extensions\ms-vscode.powershell-1.4.3\modules\PSScriptAnalyzer\PSScriptAnalyzer.psd1
    
    2017/9/20 23:22:04 [ERROR] - Method "ExecuteCommand" at line 545 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
    
        Execution completed with errors:
        
        
    
    2017/9/20 23:22:04 [NORMAL] - Method "Register" at line 36 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.VSCode\ComponentRegistration.cs
    
        PowerShell Editor Services VS Code module loaded.
    
    2017/9/20 23:22:07 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type 'initialized'
    
    2017/9/20 23:22:07 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/setTraceNotification'
    
    2017/9/20 23:23:27 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:28 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:29 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:29 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:29 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:29 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:29 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:29 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:29 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:29 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:29 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:29 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:29 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:31 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:31 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:31 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:31 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:31 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:31 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:31 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:31 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:32 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:33 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:33 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:23:33 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:24:47 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:25:17 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:25:17 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:25:17 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:25:17 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:25:50 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:25:50 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:25:50 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:25:50 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:26:21 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:26:21 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:26:46 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:26:46 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:26:46 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:05 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:05 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:05 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:05 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:33 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:33 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:33 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:34 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:34 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:35 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:35 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:35 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:35 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:35 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:35 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:35 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:35 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:35 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:35 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:35 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:35 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:36 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:36 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:36 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:36 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:36 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:36 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:36 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:36 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:36 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:36 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:36 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:27:36 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:28:19 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:28:19 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:28:46 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:29:06 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:29:23 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    2017/9/20 23:29:41 [ERROR] - Method "DispatchMessage" at line 147 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageDispatcher.cs
    
        MessageDispatcher: No handler registered for Event type '$/cancelRequest'
    
    
  19. TylerLeonhardt commented on Dec 6, 2017

    @TylerLeonhardt
    Member

    Hey there, I'm triaging a bunch and I don't think we know exactly what the problem is just yet. I'm removing the Issue tag until we understand more.

  20. saqwel commented on Jan 12, 2018

    @saqwel

    Hello. I have the same log as fcharlie in previous comment. I could not install PowerShell extension through "Install from VSIX" so I simply unzip VSIX to extensions folder. Extension works, but log full of the errors.

    Environment details:
    Version 1.19.1
    Commit 0759f77bb8d86658bc935a10a64f6182c5a1eeba
    Date 2017-12-19T09:46:23.884Z
    Shell 1.7.9
    Renderer 58.0.3029.110
    Node 7.9.0
    Architecture x64

    PowerShell extension version 1.5.1.

  21. CodyMathis123 commented on Mar 17, 2019

    @CodyMathis123

    I have this issue as well.

    Version: 1.32.3 (system setup)
    Commit: a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4
    Date: 2019-03-14T23:43:35.476Z
    Electron: 3.1.6
    Chrome: 66.0.3359.181
    Node.js: 10.2.0
    V8: 6.6.346.32
    OS: Windows_NT x64 10.0.17763

    Be happy to provide anything requested. This one kills my productivity and I commonly drag scripts into PowerShell studio as it formats scripts instantaneously.

  22. mike-loux-planview commented on Jan 21, 2021

    @mike-loux-planview

    I have been seeing this a LOT over the past few months, whereas before it was instantaneous.
    VS Code info:

    Version: 1.52.1 (system setup)
    Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
    Date: 2020-12-16T16:34:46.910Z
    Electron: 9.3.5
    Chrome: 83.0.4103.122
    Node.js: 12.14.1
    V8: 8.3.110.13-electron.0
    OS: Windows_NT x64 10.0.18363
    

    ms-vscode.powershell version 2020.6.0 (guess that's pretty obvious based on the date, but figured I better put it in here anyway).

    Also willing to provide any info I can.

  23. ghost added
    Needs: Maintainer Attention
    on Jan 21, 2021
  24. SydneyhSmith commented on Feb 2, 2021

    @SydneyhSmith
    Collaborator

    Thanks everyone, if anyone has an input script they would be willing to share that reproduces this issue that would be very helpful...thanks!

  25. added
    Issue-Performance
    and removed
    Needs: Maintainer Attention
    on Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions