Skip to content

Running Save Participants dialog is hanging on save and preventing the script from saving #2555

Closed

Description

@MarkKharitonov

Issue Description

Saving a ps1 script opens a "Running Save Participants ..." dialog that just hangs. Saving does not proceed until the dialog is closed.

Attached Logs

logs.zip
2020-03-12 21_26_04-Clipboard

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.17763
VSCode 1.42.1
PowerShell Extension Version 2020.3.0

PowerShell Information

Name Value
PSVersion 5.1.17763.1007
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.17763.1007
BuildVersion 10.0.17763.1007
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
powershell ms-vscode 2020.3.0

Activity

  1. ghost added
    Needs: Triage
    on Mar 13, 2020
  2. TylerLeonhardt commented on Mar 13, 2020

    @TylerLeonhardt
    Member
  3. MarkKharitonov commented on Mar 13, 2020

    @MarkKharitonov
    Author

    Another quick search yields this - microsoft/vscode#90542
    Which is closed for they think it is extensions.
    Indeed, without any extensions it does not seem to occur. I have only one extension - Powershell.

  4. rjmholt commented on Mar 13, 2020

    @rjmholt
    Contributor

    Do you have format on save enabled?

  5. MarkKharitonov commented on Mar 13, 2020

    @MarkKharitonov
    Author
  6. removed
    Needs: Triage
    on Mar 17, 2020
  7. rjmholt commented on Mar 17, 2020

    @rjmholt
    Contributor

    My theory here is that:

    • The Save Participants dialogue represents a VSCode functionality that runs the formatter on save
    • It's waiting on the PowerShell extension to format something
    • For some reason, that formatting run is hanging

    We haven't been able to reproduce this error yet, but if we can, that will make this much easier to fix

  8. SydneyhSmith commented on Mar 17, 2020

    @SydneyhSmith
    Collaborator
  9. MarkKharitonov commented on Mar 17, 2020

    @MarkKharitonov
    Author

    Sydney Smith (@SydneyhSmith) I do not use the preview version, so according to that link I cannot provide the payload logs:

    NOTE: This currently only applies to the PowerShell Preview extension and only if you have version 2019.11.0 or higher.

    Hmm, interesting that you cannot reproduce it. For me it reproduces right away. On the contrary, I cannot get rid of it. Had to downgrade the plugin version to the last of 2019. Still happens but more rarely.

    I am open to demonstrate it live, if anyone wishes to send me a zoom meeting or anything like that.

  10. ghost added
    Needs: Maintainer Attention
    on Mar 17, 2020
  11. rjmholt commented on Mar 17, 2020

    @rjmholt
    Contributor

    I do not use the preview version, so according to that link I cannot provide the payload logs:

    Ah the docs are out of date -- the stable extension will have these now

  12. bjbr-dev commented on May 29, 2020

    @bjbr-dev

    This is happening to me very frequently - what can I do next time it happens to help diagnose it?

  13. ghost added
    Needs: Maintainer Attention
    on May 29, 2020
  14. MarkKharitonov commented on May 29, 2020

    @MarkKharitonov
    Author

    My advise - do not fight it, just downgrade the plugin to 2019.12.0. My empirical tests showed that this is the last version that allows to work sanely. I, personally, do not plan to upgrade until reports like this stop to appear.

  15. TylerLeonhardt commented on May 30, 2020

    @TylerLeonhardt
    Member

    You know what, I think this is a duplicate of this issue:

    #2627 (comment)

    Can you all try the build there and let me know how it goes?

  16. SydneyhSmith commented on Jun 2, 2020

    @SydneyhSmith
    Collaborator

    We recently published an update to our preview extension which has addressed a number of underlying architectural issues, would you mind giving it a try and letting us know if you are still hitting this issue?

  17. ghost closed this as completedon Aug 19, 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

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions