Skip to content

Timing problem in the terminal #23262

Closed
Closed

Description

  • VSCode Version: master
  • OS: Windows

The terminal seems to have timing problems under Windows in terms of detecting and firing the exit event. I sometime see the following output:

Press any key to close the terminal
HelloWorld.ts(3,17): error TS2339: Property 'loog' does not exist on type 'Console'.

The problem here is that the terminal fires the exit event before it print Press any key to close the terminal. The task running framework stops parsing the output when the exit event is fired hence HelloWorld.ts(3,17): error TS2339: Property 'loog' does not exist on type 'Console'. is not recognized as being a valid output of the task anymore.

IMO the terminal should fire 'exit' or some other event when all output from the process is processed. I remember that in the output runner framework I was listening to close events on stdio as well to make sure I processed all output correctly.

Activity

  1. added
    terminal
    bug
    on Mar 27, 2017
  2. Tyriar commented on May 20, 2017

    @Tyriar
    Contributor

    Duplicate #23051

  3. added
    *duplicate
    and removed
    bug
    on May 20, 2017
  4. removed this from the May 2017 milestone on May 20, 2017
  5. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicateterminal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions