{"action":"created","issue":{"url":"https://api.github.com/repos/SteveGilham/altcover/issues/19","repository_url":"https://api.github.com/repos/SteveGilham/altcover","labels_url":"https://api.github.com/repos/SteveGilham/altcover/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/SteveGilham/altcover/issues/19/comments","events_url":"https://api.github.com/repos/SteveGilham/altcover/issues/19/events","html_url":"https://github.com/SteveGilham/altcover/issues/19","id":324989260,"number":19,"title":"typeFilter not working as expected","user":{"login":"manemarron","id":7475627,"avatar_url":"https://avatars2.githubusercontent.com/u/7475627?v=4","gravatar_id":"","url":"https://api.github.com/users/manemarron","html_url":"https://github.com/manemarron","followers_url":"https://api.github.com/users/manemarron/followers","following_url":"https://api.github.com/users/manemarron/following{/other_user}","gists_url":"https://api.github.com/users/manemarron/gists{/gist_id}","starred_url":"https://api.github.com/users/manemarron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manemarron/subscriptions","organizations_url":"https://api.github.com/users/manemarron/orgs","repos_url":"https://api.github.com/users/manemarron/repos","events_url":"https://api.github.com/users/manemarron/events{/privacy}","received_events_url":"https://api.github.com/users/manemarron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-21T17:02:29Z","updated_at":"2018-05-22T19:56:37Z","closed_at":null,"author_association":"NONE","body":"I am trying to instrument a net core 2.0 project.  I am running version 3.0.475 on a Windows host. This is the command I am running:\r\n```\r\n$ dotnet path\\to\\AltCover.dll -i=.\\bin\\Debug\\netcoreapp2.0 -t=Program;Startup --save --opencover\r\n```\r\n\r\nEvery time I execute the command, the next error appears:\r\n```\r\n    ERROR *** Instrumentation phase failed\r\n    Specified argument was out of the range of valid values.\r\n    Parameter name: target\r\n    Details written to path\\to\\__Saved\\AltCover-2018-05-21--11-52-12.log\r\n```\r\n\r\nThese are the contents of the log file:\r\n```\r\nSystem.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.\r\nParameter name: target\r\n   at Mono.Cecil.Cil.ILProcessor.InsertBefore(Instruction target, Instruction instruction)\r\n   at AltCover.Instrument.InsertVisit(Instruction instruction, ILProcessor methodWorker, MethodReference recordingMethodRef, String moduleId, Int32 point) in C:\\projects\\altcover\\AltCover\\Instrument.fs:line 335\r\n   at AltCover.Instrument.VisitBranchPoint$cont@431(Context state, GoTo branch, Unit unitVar) in C:\\projects\\altcover\\AltCover\\Instrument.fs:line 453\r\n   at AltCover.Instrument.VisitBranchPoint(Context state, GoTo branch) in C:\\projects\\altcover\\AltCover\\Instrument.fs:line 486\r\n   at AltCover.Instrument.InstrumentationVisitorWrapper(FSharpFunc`2 core, Context state, Node node) in C:\\projects\\altcover\\AltCover\\Instrument.fs:line 611\r\n   at AltCover.Visitor.stateful@564-1.Invoke(T node) in C:\\projects\\altcover\\AltCover\\Visitor.fs:line 567\r\n   at Microsoft.FSharp.Primitives.Basics.List.mapToFreshConsTail[a,b](FSharpList`1 cons, FSharpFunc`2 f, FSharpList`1 x)\r\n   at Microsoft.FSharp.Primitives.Basics.List.map[T,TResult](FSharpFunc`2 mapping, FSharpList`1 x)\r\n   at Microsoft.FSharp.Collections.SeqModule.Fold[T,TState](FSharpFunc`2 folder, TState state, IEnumerable`1 source)\r\n   at AltCover.Visitor.Visit(FSharpList`1 visitors, IEnumerable`1 assemblies) in C:\\projects\\altcover\\AltCover\\Visitor.fs:line 554\r\n   at AltCover.Main.result@330-4.Invoke(Unit unitVar0) in C:\\projects\\altcover\\AltCover\\AltCover.fs:line 344\r\n   at AltCover.CommandLine.doPathOperation[a](FSharpFunc`2 f, a defaultValue, Boolean store) in C:\\projects\\altcover\\AltCover\\CommandLine.fs:line 127\r\nActualValue =\r\n<null>\r\nParamName =\r\n\"target\"\r\nData =\r\nseq []\r\nInnerException =\r\n<null>\r\nTargetSite =\r\nVoid InsertBefore(Mono.Cecil.Cil.Instruction, Mono.Cecil.Cil.Instruction)\r\nHelpLink =\r\n<null>\r\nSource =\r\n\"Mono.Cecil\"\r\nHResult =\r\n-2146233086\r\n```\r\n\r\n~~**Note**: When I remove the semicolon and just add one type, the command works fine~~\r\n___\r\n**Edit**: The `Startup` type is the one generating the error. When I only add `-t=Startup`, the command fails with the same error."},"comment":{"url":"https://api.github.com/repos/SteveGilham/altcover/issues/comments/391120212","html_url":"https://github.com/SteveGilham/altcover/issues/19#issuecomment-391120212","issue_url":"https://api.github.com/repos/SteveGilham/altcover/issues/19","id":391120212,"user":{"login":"SteveGilham","id":7460854,"avatar_url":"https://avatars0.githubusercontent.com/u/7460854?v=4","gravatar_id":"","url":"https://api.github.com/users/SteveGilham","html_url":"https://github.com/SteveGilham","followers_url":"https://api.github.com/users/SteveGilham/followers","following_url":"https://api.github.com/users/SteveGilham/following{/other_user}","gists_url":"https://api.github.com/users/SteveGilham/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveGilham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveGilham/subscriptions","organizations_url":"https://api.github.com/users/SteveGilham/orgs","repos_url":"https://api.github.com/users/SteveGilham/repos","events_url":"https://api.github.com/users/SteveGilham/events{/privacy}","received_events_url":"https://api.github.com/users/SteveGilham/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T19:56:37Z","updated_at":"2018-05-22T19:56:37Z","author_association":"OWNER","body":"Super.  The fix will be in a formal release in the next few days."}}
{"actor":{"display_login":"SteveGilham"}}