Bug 28368 - Unable to run project with custom parameters in latest update.
Summary: Unable to run project with custom parameters in latest update.
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 5.8
Hardware: Macintosh Mac OS
: Normal blocker
Target Milestone: 5.9
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2015-03-24 12:35 UTC by Andrew Polkinghorn
Modified: 2015-04-20 15:08 UTC (History)
5 users (show)

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


Attachments
The Xamarin info for the current Alpha and Stable channels (e.g. Xamarin Studios version). (1.79 KB, application/zip)
2015-03-24 12:35 UTC, Andrew Polkinghorn
Details
A Single View iOS sample that replicates my issue. (7.76 MB, application/zip)
2015-03-25 05:41 UTC, Andrew Polkinghorn
Details
Stable and Cycle 5 info (2.99 KB, application/zip)
2015-04-01 12:46 UTC, Dylan Kelly
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Andrew Polkinghorn 2015-03-24 12:35:32 UTC
Created attachment 10470 [details]
The Xamarin info for the current Alpha and Stable channels (e.g. Xamarin Studios version).

Hello,

After updating to the Alpha channel's latest release a project which I run with custom parameters won't run anymore.

We have a project that takes three parameters which we pass in by right clicking the project then selecting "Run With" > "Custom Parameters...". This usually opens a window that allows us to enter our three parameters before running.

However, in the latest Alpha channel release when performing the same actions the window that allows us to enter the parameters doesn't appear. It will then continue to run the project without the parameters which we have programmed to exit if it hasn't detected 3 elements in the arguments passed in.

I switched to the current version in the stable channel and it works as expected and the window to type in the parameters appears.

Please find attached the Xamarin information from the alpha and stable channels.

Here is some code of what our Main class looks like:

class MainClass
{
  public static int Main (string[] args)
  {
    if (args.Length != 3) {
      Console.WriteLine ("Error: Expected exactly 3 arguments.");
      return 3;
    } 
    ...
  }
}

Is this a known issue?

Are there any work around solutions?

Look forward to hearing from you.

Kind regards,
Andrew Polkinghorn
Comment 1 Mikayla Hutchinson [MSFT] 2015-03-24 15:54:00 UTC
Is this an iOS project? Can you provide a test case of the project?
Comment 2 Andrew Polkinghorn 2015-03-25 05:40:28 UTC
Hello,

I have attached a single view iOS sample project that when ran with custom parameters does not work. You should get a window appear to enable you to enter parameters, however, this does not appear.

I have checked this sample in both the Alpha and Stable channels and it works in Stable channel but not in Alpha channel.

Kind regards,
Andrew Polkinghorn
Comment 3 Andrew Polkinghorn 2015-03-25 05:41:12 UTC
Created attachment 10491 [details]
A Single View iOS sample that replicates my issue.
Comment 4 Jeffrey Stedfast 2015-03-27 15:53:09 UTC
If you use the Run -> Run With -> Custom Parameters menu, it works. If you right-click and select Run With -> Custom Parameters, it doesn't. I don't know why, but it has nothing to do with the iOS Addin, so reassigning to... General I guess.
Comment 5 Dylan Kelly 2015-04-01 12:45:49 UTC
I can reproduce this issue in the latest stable. As Jeffrey said, right clicking on the project to run with custom parameters does not bring up the custom parameters dialog and just starts running the project. Run -> Run With -> Custom Parameters works properly, asking the user to input the parameters.

After updating to recent Cycle 5 builds, the issue is still reproducible.
Comment 6 Dylan Kelly 2015-04-01 12:46:47 UTC
Created attachment 10587 [details]
Stable and Cycle 5 info
Comment 7 xamarin-release-manager 2015-04-08 11:54:46 UTC
Fixed in version 5.9.0.410 (monodevelop-5.9-branch)
Comment 8 Mohit Kheterpal 2015-04-20 15:08:21 UTC
I have checked this issue and this issue is working fine with latest C5 builds i.e. XS 5.9.0.431 + XI 8.10.0.263.

Now we are able to run attached project with custom parameter by right-click and select run with -> Custom parameters 

Hence closing this issue. 

Thanks