Window title cannot be longer than 1023 characters

This topic contains 1 reply, has 2 voices, and was last updated by  Don Jones 1 year, 11 months ago.

  • Author
    Posts
  • #30161

    Adrian Calinescu
    Participant

    Can anyone take a look at this script please?

    https://github.com/KuduApps/Dev14_Net46_Mvc5/blob/powershell/deploy.ps1

    It's being invoked exactly like this:
    powershell -NoProfile -NoLogo -ExecutionPolicy Unrestricted -File deploy.ps1

    However seems that whenever an external binary is called (nuget.exe for example on line 92) all the stdout goes into the Window Title (?!?) and the execution breaks with

    Window title cannot be longer than 1023 characters

    .

    Any idea how in the world this can happen?

  • #30519

    Don Jones
    Keymaster

    I'd actually surmise that the external command being run is being displayed in the title bar – which is what Cmd.exe does – and it's too long to fit. I've not run into this, personally, though. I'll ask around.

You must be logged in to reply to this topic.