Bug 36104 - [XVS 4.0] "CLAP.MissingArgumentPrefixException" after selecting "Tools > iOS > Open Mac Agent Console" if user ID contains a space
Summary: [XVS 4.0] "CLAP.MissingArgumentPrefixException" after selecting "Tools > iOS ...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: 4.0.0 (C6)
Hardware: Macintosh Mac OS
: Normal minor
Target Milestone: 4.1.0 (C7)
Assignee: mag@xamarin.com
Depends on:
Reported: 2015-11-20 12:24 UTC by Cody Beyer (MSFT)
Modified: 2016-06-03 15:32 UTC (History)
7 users (show)

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

Menu item that causes the problem (20.09 KB, image/png)
2015-11-20 13:10 UTC, Brendan Zagaeski (Xamarin Team, assistant)

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 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:

Description Cody Beyer (MSFT) 2015-11-20 12:24:13 UTC
### Description

The following error message is thrown when attempting to load the Tools > iOS Menu where the user has a space in their UserID

### Error

>CLAP.MissingArgumentPrefixException: ‘doe' should be prefixed with one of '/,-'
>at CLAP.ParserRunner.MapArguments(IEnumerable`1 args)
>at CLAP.ParserRunner.RunInternal(String[] args, Object obj)
>at CLAP.ParserRunner.TryRunInternal(String[] args, Object obj)

### Command

XMA remote –host= –port=52910 –user=john doe

### Versions

### Versions

Microsoft Visual Studio Professional 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00081

Installed Version: Professional

Visual Basic 2015 00322-40000-00000-AA037
Microsoft Visual Basic 2015

Visual C# 2015 00322-40000-00000-AA037
Microsoft Visual C# 2015

Visual C++ 2015 00322-40000-00000-AA037
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 14.0.20626.0
ASP.NET and Web Tools

ASP.NET Web Frameworks and Tools 2013 5.2.30624.0
For additional information, visit http://www.asp.net/

Common Azure Tools 1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure

GenerateUnitTest 1.0
Generates unit test code for methods in classes under test.

GitHub.VisualStudio 1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JetBrains ReSharper Ultimate 2015.2 Build 103.0.20150818.200216
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more
information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper.
Copyright (c) 2015 JetBrains, Inc.

Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager 3.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit

PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the
PreEmptive Analytics product.

SQL Server Data Tools 14.0.50616.0
Microsoft SQL Server Data Tools

Visual Studio Tools for Universal Windows Apps 14.0.23309.00 d14oob
The Visual Studio Tools for Universal Windows apps allow you to build a single
universal app experience that can reach every device running Windows 10: phone,
tablet, PC, and more. It includes the Microsoft Windows 10 Software Development

VisualSVN 5.0.0
Integration with Subversion version control. For more information about
VisualSVN, see the VisualSVN website at http://www.visualsvn.com
Copyright (c) 2005-2015 VisualSVN Ltd. All rights reserved.

VSdocman 7.0
Documentation generator and code commenter.
Copyright (c) Helixoft

Xamarin (f860fe4)
Visual Studio extension to enable development for Xamarin.iOS and

Xamarin.Android (3efa14c)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS (3c0ec35)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2015-11-20 13:10:11 UTC
Created attachment 13920 [details]
Menu item that causes the problem

I can confirm this issue if I log in using my account "Full Name" in the connection dialog. There is one detail missing in the steps to reproduce:

You must select:
"Tools -> iOS -> Open Mac Agent Console"

It is in particular _that_ menu item that fails, not the whole menu.

## Workaround

Login using the "Account Name" instead.

(For this workaround, it is necessary to "Forget this Mac" in the connection dialog and then re-login.)

(One way to find the "Account name" is to Control-click the user name in "System Preferences -> User & Groups" and select "Advanced Options".)
Comment 3 Brendan Zagaeski (Xamarin Team, assistant) 2015-11-20 13:21:17 UTC
## Alternate workaround

An alternate workaround (as mentioned by the original reporting user) is to re-enter the command in the `cmd.exe` process after it fails, but edit it to add quotation marks around the user name:

XMA remote –host= –port=52910 –user="john doe"
Comment 4 xamarin-release-manager 2015-12-29 14:43:22 UTC
Fixed in version (xcode7.1)

Author: Daniel Cazzulino
Commit: e3cecfe8aa6e300d944ac2646717509ab8e056b3 (xamarin/XamarinVS)