{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2045","repository_url":"https://api.github.com/repos/Microsoft/vsts-tasks","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2045/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2045/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2045/events","html_url":"https://github.com/Microsoft/vsts-tasks/issues/2045","id":164500901,"number":2045,"title":"Sonar PRCA: IndexOutOfRangeException","user":{"login":"pascalberger","id":2190718,"avatar_url":"https://avatars.githubusercontent.com/u/2190718?v=3","gravatar_id":"","url":"https://api.github.com/users/pascalberger","html_url":"https://github.com/pascalberger","followers_url":"https://api.github.com/users/pascalberger/followers","following_url":"https://api.github.com/users/pascalberger/following{/other_user}","gists_url":"https://api.github.com/users/pascalberger/gists{/gist_id}","starred_url":"https://api.github.com/users/pascalberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pascalberger/subscriptions","organizations_url":"https://api.github.com/users/pascalberger/orgs","repos_url":"https://api.github.com/users/pascalberger/repos","events_url":"https://api.github.com/users/pascalberger/events{/privacy}","received_events_url":"https://api.github.com/users/pascalberger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"HSAR","id":985911,"avatar_url":"https://avatars.githubusercontent.com/u/985911?v=3","gravatar_id":"","url":"https://api.github.com/users/HSAR","html_url":"https://github.com/HSAR","followers_url":"https://api.github.com/users/HSAR/followers","following_url":"https://api.github.com/users/HSAR/following{/other_user}","gists_url":"https://api.github.com/users/HSAR/gists{/gist_id}","starred_url":"https://api.github.com/users/HSAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HSAR/subscriptions","organizations_url":"https://api.github.com/users/HSAR/orgs","repos_url":"https://api.github.com/users/HSAR/repos","events_url":"https://api.github.com/users/HSAR/events{/privacy}","received_events_url":"https://api.github.com/users/HSAR/received_events","type":"User","site_admin":false},"assignees":[{"login":"HSAR","id":985911,"avatar_url":"https://avatars.githubusercontent.com/u/985911?v=3","gravatar_id":"","url":"https://api.github.com/users/HSAR","html_url":"https://github.com/HSAR","followers_url":"https://api.github.com/users/HSAR/followers","following_url":"https://api.github.com/users/HSAR/following{/other_user}","gists_url":"https://api.github.com/users/HSAR/gists{/gist_id}","starred_url":"https://api.github.com/users/HSAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HSAR/subscriptions","organizations_url":"https://api.github.com/users/HSAR/orgs","repos_url":"https://api.github.com/users/HSAR/repos","events_url":"https://api.github.com/users/HSAR/events{/privacy}","received_events_url":"https://api.github.com/users/HSAR/received_events","type":"User","site_admin":false},{"login":"bgavrilMS","id":12273384,"avatar_url":"https://avatars.githubusercontent.com/u/12273384?v=3","gravatar_id":"","url":"https://api.github.com/users/bgavrilMS","html_url":"https://github.com/bgavrilMS","followers_url":"https://api.github.com/users/bgavrilMS/followers","following_url":"https://api.github.com/users/bgavrilMS/following{/other_user}","gists_url":"https://api.github.com/users/bgavrilMS/gists{/gist_id}","starred_url":"https://api.github.com/users/bgavrilMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgavrilMS/subscriptions","organizations_url":"https://api.github.com/users/bgavrilMS/orgs","repos_url":"https://api.github.com/users/bgavrilMS/repos","events_url":"https://api.github.com/users/bgavrilMS/events{/privacy}","received_events_url":"https://api.github.com/users/bgavrilMS/received_events","type":"User","site_admin":false}],"milestone":null,"comments":14,"created_at":"2016-07-08T10:16:23Z","updated_at":"2016-07-11T18:39:07Z","closed_at":"2016-07-11T18:39:07Z","body":"I've uploaded the Sonar Post task based on [this PR](https://github.com/Microsoft/vsts-tasks/pull/2036) (to fix #2044]. With this version I get an `IndexOutOfRangeException`:\r\n\r\n```\r\n2016-07-08T10:13:02.5044897Z Post-processing succeeded.\r\n2016-07-08T10:13:02.5044897Z Fetching code analysis issues and posting them to the PR...\r\n2016-07-08T10:13:02.8373938Z SonarQube found 102 issues out of which 23 are new\r\n2016-07-08T10:13:02.8951315Z 6 issue(s) do not relate to a specific file and will not be posted to the code review\r\n2016-07-08T10:13:06.2618668Z Processing 17 new messages\r\n2016-07-08T10:13:07.6345493Z 0 message(s) were filtered because they do not belong to files that were changed in this PR\r\n2016-07-08T10:13:07.6657977Z 0 message(s) were filtered because they were already present\r\n2016-07-08T10:13:07.6970505Z 0 message(s) were filtered to match the maximum 100 comments limit\r\n2016-07-08T10:13:08.6423888Z ##[error]System.IndexOutOfRangeException: Index was outside the bounds of the array.\r\n2016-07-08T10:13:08.6423888Z ##[error]   at System.Management.Automation.Adapter.CompareOverloadCandidates(OverloadCandidate candidate1, OverloadCandidate candidate2, Object[] arguments)\r\n2016-07-08T10:13:08.6423888Z ##[error]   at System.Management.Automation.Adapter.FindBestCandidate(IEnumerable`1 candidates, Object[] arguments)\r\n2016-07-08T10:13:08.6580171Z ##[error]   at System.Management.Automation.Adapter.FindBestCandidate(IEnumerable`1 candidates, Object[] arguments, PSMethodInvocationConstraints invocationConstraints)\r\n2016-07-08T10:13:08.6580171Z ##[error]   at System.Management.Automation.Adapter.FindBestMethod(MethodInformation[] methods, PSMethodInvocationConstraints invocationConstraints, Object[] arguments, String& errorId, String& errorMsg, Boolean& expandParamsOnBest)\r\n2016-07-08T10:13:08.6580171Z ##[error]   at System.Management.Automation.Language.PSInvokeMemberBinder.InvokeDotNetMethod(DynamicMetaObject target, DynamicMetaObject[] args, BindingRestrictions restrictions, MethodInformation[] mi, Type errorExceptionType)\r\n2016-07-08T10:13:08.6580171Z ##[error]   at System.Management.Automation.Language.PSInvokeMemberBinder.FallbackInvokeMember(DynamicMetaObject target, DynamicMetaObject[] args, DynamicMetaObject errorSuggestion)\r\n2016-07-08T10:13:08.6580171Z ##[error]   at System.Dynamic.DynamicMetaObject.BindInvokeMember(InvokeMemberBinder binder, DynamicMetaObject[] args)\r\n2016-07-08T10:13:08.6580171Z ##[error]   at System.Dynamic.DynamicMetaObjectBinder.Bind(Object[] args, ReadOnlyCollection`1 parameters, LabelTarget returnLabel)\r\n2016-07-08T10:13:08.6580171Z ##[error]   at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T](CallSite`1 site, Object[] args)\r\n2016-07-08T10:13:08.6580171Z ##[error]   at System.Dynamic.UpdateDelegates.UpdateAndExecute8[T0,T1,T2,T3,T4,T5,T6,T7,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)\r\n2016-07-08T10:13:08.6580171Z ##[error]   at System.Management.Automation.Interpreter.DynamicInstruction`9.Run(InterpretedFrame frame)\r\n2016-07-08T10:13:08.6580171Z ##[error]   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)\r\n2016-07-08T10:13:08.6736395Z Creating a discussion comment for the message at line 29 from /IOZ.Tools.ModelGenerator/IOZ.Tools.ModelGenerator/CodeCommenter.cs\r\n2016-07-08T10:13:08.8455135Z ##[error]System.Management.Automation.RuntimeException: No changes found for /IOZ.Tools.ModelGenerator/IOZ.Tools.ModelGenerator/CodeCommenter.cs ---> System.Management.Automation.RuntimeException: No changes found for /IOZ.Tools.ModelGenerator/IOZ.Tools.ModelGenerator/CodeCommenter.cs\r\n2016-07-08T10:13:08.8455135Z ##[error]   --- End of inner exception stack trace ---\r\n2016-07-08T10:13:08.8455135Z ##[error]   at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)\r\n2016-07-08T10:13:08.8455135Z ##[error]   at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)\r\n2016-07-08T10:13:08.8455135Z ##[error]   at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)\r\n2016-07-08T10:13:08.8455135Z ##[error]   at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)\r\n2016-07-08T10:13:08.8611493Z ##[error]   at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)\r\n2016-07-08T10:13:08.8611493Z ##[error]   at Microsoft.TeamFoundation.DistributedTask.Handlers.PowerShellHandler.Execute(ITaskContext context, CancellationToken cancellationToken, Int32 timeoutInMinutes)\r\n2016-07-08T10:13:08.8611493Z ##[error]   at Microsoft.TeamFoundation.DistributedTask.Worker.JobRunner.RunTask(ITaskContext context, TaskWrapper task, CancellationTokenSource tokenSource)\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments/231825334","html_url":"https://github.com/Microsoft/vsts-tasks/issues/2045#issuecomment-231825334","issue_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2045","id":231825334,"user":{"login":"pascalberger","id":2190718,"avatar_url":"https://avatars.githubusercontent.com/u/2190718?v=3","gravatar_id":"","url":"https://api.github.com/users/pascalberger","html_url":"https://github.com/pascalberger","followers_url":"https://api.github.com/users/pascalberger/followers","following_url":"https://api.github.com/users/pascalberger/following{/other_user}","gists_url":"https://api.github.com/users/pascalberger/gists{/gist_id}","starred_url":"https://api.github.com/users/pascalberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pascalberger/subscriptions","organizations_url":"https://api.github.com/users/pascalberger/orgs","repos_url":"https://api.github.com/users/pascalberger/repos","events_url":"https://api.github.com/users/pascalberger/events{/privacy}","received_events_url":"https://api.github.com/users/pascalberger/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T18:39:07Z","updated_at":"2016-07-11T18:39:07Z","body":"Thanks @bgavrilMS! #2057 seem to have fixed this issue."}}
{"actor":{"display_login":"pascalberger"}}