Skip to content

Out of order output console messages  #122

Closed

Description

@roblourens

image

Activity

  1. added
    bug
    on Dec 2, 2019
  2. connor4312 commented on Dec 2, 2019

    @connor4312
    Member

    This is somewhat complicated and I'm not sure what the correct solution is. Here's what's happening:

    1. CDP tells PWA that a console API was called.
    2. PWA tells VS Code that output was received, and gives it a variable reference it can use to expand more info.
    3. The subprocess exits and PWA sends output with a string indicating as much to VS Code.
    4. VS Code asks for the variables referenced in the console log
    5. PWA gives them back and the console line is printed

    Gist for the tool https://gist.githubusercontent.com/connor4312/02aa59291e8823b9fcdc2a52c36e6f09/raw/c5bd78015b9b9804e3f2c11bb20893213040b16b/log.json -> https://microsoft.github.io/vscode-pwa-analyzer/index.html

    I think the most correct thing to do here is for VS Code to reorder/buffer console lines and display them in the order that they were received, rather than in the order that variables were requested.

  3. roblourens commented on Dec 2, 2019

    @roblourens
    MemberAuthor
  4. isidorn commented on Dec 3, 2019

    @isidorn

    Might be related microsoft/vscode#81403
    Connor Peet (@connor4312) feel free to jump on that PR

  5. connor4312 commented on Dec 11, 2019

    @connor4312
    Member

    I touched up that PR, but it appears to be separate from this. I'll look into it some more and create a separate PR or add a fix to Dmitry's, depending on complexity.

  6. connor4312 commented on Dec 11, 2019

    @connor4312
    Member

    I'm going to combine this with #161. If/when that works, this will too.

  7. added
    *duplicate
    on Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicatebug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions