coapp / coapp.powershell

ClrPlus Signing
52 stars 43 forks source link

Matrix expansion fails in Write-NuGetPackage #6

Closed virmitio closed 11 years ago

virmitio commented 11 years ago

v 1.23.196

The following code snippet will throw an exception (assuming the required nuspec section is provided):

nuget {
files { 
("Win32,x64", "v100,v110") => {
};
};
};

The exception and stacktrace are included below. The line and character number below reflect the code snippet above.

(3,8):Error TokenNotExpected:Invalid token in selector declaration--found ', '

   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseSelector(IEnumerable`1 terminators, SourceLocation sourceLocation, String selectorName, String parameter)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseSelector(IEnumerable`1 terminators, SourceLocation sourceLocation, String selectorName, String parameter)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.ParseItemsInDictionary(ObjectNode context, Continuation onComplete, Boolean justOneItem, String prefix)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.Global(Continuation onComplete)
   at ClrPlus.Scripting.Languages.PropertySheetV3.PropertySheetParser.Global(Continuation onComplete)
   at ClrPlus.Scripting.Languages.PropertySheetV3.RootPropertySheet.ParseText(String propertySheetText, String originalFilename)
   at ClrPlus.Scripting.MsBuild.Packaging.PackageScript..ctor(String filename)
   at CoApp.Powershell.Commands.WriteNuGetPackage.ProcessRecord()
   at System.Management.Automation.CommandProcessor.ProcessRecord()
virmitio commented 11 years ago

Not A Bug. This was actually a manifestation of #8