question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Console.WriteLine appears to print previous calls to Console.WriteLine

See original GitHub issue

Describe the bug

Multiple Console.WriteLine calls are repeated as if each subsequent call prints the full stack.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ): v1.0.4313020

  • OS
    • Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

Screenshots

If applicable, add screenshots to help explain your problem. image

Issue Analytics

  • State:closed
  • Created 3 months ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
colombodcommented, Jun 28, 2023

interesting, I think that is probably because they register to many input types for rendering, including streams (stdout and stderr).

Would be worth opening the bug on the extension. Thank you very much for finding the root cause.

Will let the extension owner know.

1reaction
marckruzikcommented, Jun 28, 2023

I installed recently an extension which is causing the bug, this is Data Table Renderers. https://marketplace.visualstudio.com/items?itemName=RandomFractalsInc.vscode-data-table I uninstalled this extension and the bug disappeared. (and if I install it again, then the bug comes back, so this extension is really related to the bug)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Console.WriteLine does not show up in Output window
Console outputs to the console window and Winforms applications do not show the console window. You should be able to use System.
Read more >
Console.WriteLine Method (System)
Writes the specified data, followed by the current line terminator, to the standard output stream.
Read more >
C# Console.WriteLine
Call the Console.WriteLine method. Print values like ints and strings to the screen.
Read more >
Confused about Console.WriteLine() and Debug. ...
Okay after some communication with a friend it seems to come down to a function that is called "Redicrect all output window Text...
Read more >
Console.WriteLine() is not showing any output on screen
This is done in the project "Properties", first tab ("Application"). By the way, if you application was WPF or System.Windows.Forms, it will ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found