try icon indicating copy to clipboard operation
try copied to clipboard

static async Task Main(string[] args)

Open karenpayneoregon opened this issue 5 years ago • 5 comments

Describe the bug

Pressing Run causes the page to lock-up

Did this error occur while using dotnet try or online?

  • [ ] dotnet-try
  • [X] online

What kind of error was it?

  • [ ] User Interface (UI): For example the output never displayed
  • [ ] Service Error: For example "The service is temporarily unavailable. We are working on it"
  • [X] Other: screen locks up

Screenshots

If applicable, add screenshots to help explain your problem.

Please complete the following:

  • OS
    • [ ] Windows 10
    • [X] Windows 7
    • [ ] macOS
    • [ ] Linux (Please specify distro)
    • [ ] iOS
    • [ ] Android
  • Browser
    • [X] Chrome
    • [ ] Edge
    • [ ] Safari

In the gist below the timer code was excluded when attempting to run code. https://gist.github.com/karenpayneoregon/ba2ed514e3c2025d72f4959454d7ef55

karenpayneoregon avatar Oct 13 '19 10:10 karenpayneoregon

The following is a much simpler code that causes the same issue:

using System;
using System.Threading.Tasks;

public class Program
{
    public static async Task Main()
    {
        Console.WriteLine("TEST");
        await Task.Delay(500);
        Console.WriteLine("TEST2");
    }
}

Youssef1313 avatar Oct 14 '19 11:10 Youssef1313

Hello, I was simply trying code that works in Visual Studio to see if it worked online.

karenpayneoregon avatar Oct 23 '19 01:10 karenpayneoregon

@karenpayneoregon , Yes, you're correct that there is a bug. I just provided a smaller code to be easier for the dotnet/try team to investigate it :)

Youssef1313 avatar Oct 23 '19 06:10 Youssef1313

Thank you :-)

karenpayneoregon avatar Oct 25 '19 11:10 karenpayneoregon

It no longer blocks the page, but the continuation code after await simply doesn't get invoked, e.g.: https://try.dot.net/?bufferId=trydotnet.cs&fromGist=717d378bc9f14db1ed30d0e2e67b0534

noseratio avatar Sep 10 '21 20:09 noseratio