-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console.WriteLine appears to print previous calls to Console.WriteLine #3053
Comments
I'm not able to reproduce this. Can you provide the complete code that was run leading up to this? |
Hi Jon,
Thanks for looking into this.
I don't think it's the code that's creating the issue. I've zipped the file
and attached it to this email. I believe this started following the next
last update.
Thanks again,
…--ed
[image: image.png]
On Wed, Jun 21, 2023 at 4:41 PM Jon Sequeira ***@***.***> wrote:
I'm not able to reproduce this. Can you provide the complete code that was
run leading up to this?
—
Reply to this email directly, view it on GitHub
<#3053 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXR7EG5BBT6MMJM7ELZ4KA3XMNTB7ANCNFSM6AAAAAAZPJGIS4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
GitHub doesn't seem to include the attachment. Is the repro small enough to include the whole notebook in a screen shot? |
Cell 1:
using System.Globalization;
using System.Text.RegularExpressions;
Cell 2:
Console.WriteLine(DateTime.Now.ToUniversalTime().ToString("O"));
Console.WriteLine(DateTime.UtcNow.ToString("O"));
Console.WriteLine(DateTime.UtcNow.ToString("s"));
Console.WriteLine(DateTime.UtcNow.ToString("yyyy-MM-ddTHH\\:mm\\:ss.fffzzz",
CultureInfo.InvariantCulture));
string regexPattern =
@"^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$";
var timeString = DateTime.UtcNow.ToString("yyyy-MM-ddTHH\\:mm\\:ss.fffzzz",
CultureInfo.InvariantCulture);
// sample from https://www.imsglobal.org/spec/lti-ags/v2p0#timestamp
Console.WriteLine("2017-04-16T18:54:36.736+00:00");
Console.WriteLine(timeString);
bool isMatch = Regex.IsMatch(timeString, regexPattern);
Console.WriteLine($"Match was {isMatch}");
Output:
2023-06-22T21:51:11.0987789Z
--
2023-06-22T21:51:11.0987789Z
2023-06-22T21:51:11.1014096Z
--
2023-06-22T21:51:11.0987789Z
2023-06-22T21:51:11.1014096Z
2023-06-22T21:51:11
--
2023-06-22T21:51:11.0987789Z
2023-06-22T21:51:11.1014096Z
2023-06-22T21:51:11
2023-06-22T21:51:11.101+00:00
--
2023-06-22T21:51:11.0987789Z
2023-06-22T21:51:11.1014096Z
2023-06-22T21:51:11
2023-06-22T21:51:11.101+00:00
2017-04-16T18:54:36.736+00:00
--
2023-06-22T21:51:11.0987789Z
2023-06-22T21:51:11.1014096Z
2023-06-22T21:51:11
2023-06-22T21:51:11.101+00:00
2017-04-16T18:54:36.736+00:00
2023-06-22T21:51:11.101+00:00
--
2023-06-22T21:51:11.0987789Z
2023-06-22T21:51:11.1014096Z
2023-06-22T21:51:11
2023-06-22T21:51:11.101+00:00
2017-04-16T18:54:36.736+00:00
2023-06-22T21:51:11.101+00:00
Match was True
I had to manually add the breaks above (--) to get it to look correct.
Again.. I don't think it has anything to do with the content. It's been
doing this on other notebooks.
Or do you have another email address I can send to?
Thanks,
…--ed
On Thu, Jun 22, 2023 at 1:06 PM Jon Sequeira ***@***.***> wrote:
GitHub doesn't seem to include the attachment. Is the repro small enough
to include the whole notebook in a screen shot?
—
Reply to this email directly, view it on GitHub
<#3053 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXR7EG67SHJFEVGZP7S2KRDXMSCQTANCNFSM6AAAAAAZPJGIS4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I have the same problem. Here is a simple way to reproduce the bug:
@istation-ed You can format your code (or output) using the "add code" button in the interface (with the |
We still can't repro this. I tried it on a much slower machine where the cell execution took over 6 seconds and that didn't repro it. Some other questions:
|
I have several .md files open. Only a single doc active when working with
the .dib file. It's saved and on disk. After opening it up later.. same
issue.
Content of the .dib file below. Opened with sublime.
Thanks,
…--ed
#!meta
{"kernelInfo":{"defaultKernelName":"csharp","items":[{"aliases":[],"name":"csharp"}]}}
#!csharp
using System.Globalization;
using System.Text.RegularExpressions;
#!csharp
Console.WriteLine(DateTime.Now.ToUniversalTime().ToString("O"));
Console.WriteLine(DateTime.UtcNow.ToString("O"));
Console.WriteLine(DateTime.UtcNow.ToString("s"));
Console.WriteLine(DateTime.UtcNow.ToString("yyyy-MM-ddTHH\\:mm\\:ss.fffzzz",
CultureInfo.InvariantCulture));
string regexPattern =
@"^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$";
var timeString = DateTime.UtcNow.ToString("yyyy-MM-ddTHH\\:mm\\:ss.fffzzz",
CultureInfo.InvariantCulture);
// sample from https://www.imsglobal.org/spec/lti-ags/v2p0#timestamp
Console.WriteLine("2017-04-16T18:54:36.736+00:00");
Console.WriteLine(timeString);
bool isMatch = Regex.IsMatch(timeString, regexPattern);
Console.WriteLine($"Match was {isMatch}");
On Mon, Jun 26, 2023 at 12:48 PM Jon Sequeira ***@***.***> wrote:
We still can't repro this. I tried it on a much slower machine where the
cell execution took over 6 seconds and that didn't repro it.
Some other questions:
- Do you have multiple documents open at once?
- Do you have multiple panes open for the same document?
- Has the document been saved to disk?
- If so, which file extension was used?
—
Reply to this email directly, view it on GitHub
<#3053 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXR7EG75KA2SCLBSNLCNEDTXNHDP3ANCNFSM6AAAAAAZPJGIS4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I installed recently an extension which is causing the bug, this is Data Table Renderers. |
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. |
Removing that Data Table works! Remember to restart!! :)
Thanks!
…--ed
On Wed, Jun 28, 2023 at 3:18 AM Diego Colombo ***@***.***> wrote:
interesting, I think that is probably because they register to many input
types for rendering, including streams (stdio and stderr).
Would be worth opening the bug on the extension. Thank you very much for
finding the root cause
—
Reply to this email directly, view it on GitHub
<#3053 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXR7EG7ZAGHWHB2K2YL3EKLXNPSFNANCNFSM6AAAAAAZPJGIS4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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.4313020Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: