Bug 41752 - I updated to Version 6.0 and it can run Console.Readline() but without any reaction which is weird
Summary: I updated to Version 6.0 and it can run Console.Readline() but without any re...
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger (show other bugs)
Version: 6.0.0 (C7)
Hardware: Macintosh Mac OS
: High normal
Target Milestone: C7SR1
Assignee: David Karlaš
URL:
Depends on:
Blocks:
 
Reported: 2016-06-13 06:31 UTC by Traffic Tse
Modified: 2016-06-27 12:44 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Traffic Tse 2016-06-13 06:31:26 UTC
As I said in the summary, I just updated my app from 5.10 to 6.0, and I run the official C# code from Microsoft Pages. The operation of Console.Readline() couldn't be done any more. But when I uninstalled it and installed version 5.10, it went so well. It should be a bug, right?

The code mentioned above is as following.

public static void Main ()
		{
			if (!Console.IsInputRedirected)
			{
				Console.WriteLine("This example requires that input be redirected from a file.");
				return;
			}

			Console.WriteLine("About to call Console.ReadLine in a loop.");
			Console.WriteLine("----");
			String s;
			int ctr = 0;
			do
			{
				ctr++;
				s = Console.ReadLine();
				Console.WriteLine("Line {0}: {1}", ctr, s);
			} while (s != null);
			Console.WriteLine("---");
                 }
Comment 1 David Karlaš 2016-06-13 07:46:22 UTC
Can you try opening project settings and check if "Run on external console" checkbox is checked which you can find under "Run->General" options panel inside project options?
Comment 2 xamarin-release-manager 2016-06-27 10:40:54 UTC
Fixed in version 6.0.2.36 (cycle7)

Author: Lluis Sanchez
Commit: 9bef9695d11fed141dba0f30510fb821dff8d546 (mono/monodevelop)
Comment 3 Mohit Kheterpal 2016-06-27 12:44:02 UTC
I have checked this issue and observed that this issue has been fixed with Cycle 7 XS 6.0.2 (build 36)
Commit : 014d200a9d9d38bca6f0c58764b7c1396f10f417.

Hence closing this issue, by marking it as Verified.

Thanks

Note You need to log in before you can comment on or make changes to this bug.