Skip to content

Bug in error output caused by closing ScriptAnalysis progress pane #1524

Closed

Description

AppVeyor builds fail due to reporting the progress of script analysis, specifically this piece of code. Removing the CORECLR guard results in this error:

The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot process the XML from the 'Error' stream of 'C:\projects\powershell\src\powershell-windows\bin\Debug\netcoreapp1.0\win81-x64\publish\powershell.exe': Data at the root level is invalid. Line 1, position 382.

As can be seen in this build.

Jason Shirk (@lzybkr) notes that disabling the code is not enough:

By not calling WriteProgress with a Completed message, we'll leave screen artifacts. See the corresponding call in SriptAnalysis.cs, line 43 - that code is not guarded at all by #if !CORECLR

I don't have a strong preference on this specific progress message, but if progress messages are causing problems in CI, turning them off this way is not the right fix.

Activity

  1. added
    Issue-Bug
    on Jul 26, 2016
  2. changed the title [-]Bug in error output caused by closing [/-] [+]Bug in error output caused by closing ScriptAnalysis progress pane[/+] on Jul 26, 2016
  3. andyleejordan commented on Aug 1, 2016

    @andyleejordan
    MemberAuthor

    I think we can at least for sure say that, with the code enabled, it's writing to the error stream, and the crash is bug #1575.

    Don't know why it's writing to the error stream though.

  4. modified the milestone: on Aug 4, 2016
  5. joeyaiello commented on May 23, 2017

    @joeyaiello
    Contributor

    This looks like progress issues that we fixed. Andy Jordan (@andschwa) or James Truher (@JamesWTruher), feel free to reopen if this still relevant.

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

    Issue-Bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions