{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/AL/issues/4293","repository_url":"https://api.github.com/repos/Microsoft/AL","labels_url":"https://api.github.com/repos/Microsoft/AL/issues/4293/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/AL/issues/4293/comments","events_url":"https://api.github.com/repos/Microsoft/AL/issues/4293/events","html_url":"https://github.com/Microsoft/AL/issues/4293","id":386132149,"node_id":"MDU6SXNzdWUzODYxMzIxNDk=","number":4293,"title":"Rule137DoNotDeclareVariablesThatAreUnused Index out of range error","user":{"login":"GreatScott000","id":4333956,"node_id":"MDQ6VXNlcjQzMzM5NTY=","avatar_url":"https://avatars0.githubusercontent.com/u/4333956?v=4","gravatar_id":"","url":"https://api.github.com/users/GreatScott000","html_url":"https://github.com/GreatScott000","followers_url":"https://api.github.com/users/GreatScott000/followers","following_url":"https://api.github.com/users/GreatScott000/following{/other_user}","gists_url":"https://api.github.com/users/GreatScott000/gists{/gist_id}","starred_url":"https://api.github.com/users/GreatScott000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GreatScott000/subscriptions","organizations_url":"https://api.github.com/users/GreatScott000/orgs","repos_url":"https://api.github.com/users/GreatScott000/repos","events_url":"https://api.github.com/users/GreatScott000/events{/privacy}","received_events_url":"https://api.github.com/users/GreatScott000/received_events","type":"User","site_admin":false},"labels":[{"id":488757968,"node_id":"MDU6TGFiZWw0ODg3NTc5Njg=","url":"https://api.github.com/repos/Microsoft/AL/labels/bug","name":"bug","color":"ee0701","default":true},{"id":504387146,"node_id":"MDU6TGFiZWw1MDQzODcxNDY=","url":"https://api.github.com/repos/Microsoft/AL/labels/in-progress","name":"in-progress","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"JohanStenberg100","id":43748198,"node_id":"MDQ6VXNlcjQzNzQ4MTk4","avatar_url":"https://avatars3.githubusercontent.com/u/43748198?v=4","gravatar_id":"","url":"https://api.github.com/users/JohanStenberg100","html_url":"https://github.com/JohanStenberg100","followers_url":"https://api.github.com/users/JohanStenberg100/followers","following_url":"https://api.github.com/users/JohanStenberg100/following{/other_user}","gists_url":"https://api.github.com/users/JohanStenberg100/gists{/gist_id}","starred_url":"https://api.github.com/users/JohanStenberg100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohanStenberg100/subscriptions","organizations_url":"https://api.github.com/users/JohanStenberg100/orgs","repos_url":"https://api.github.com/users/JohanStenberg100/repos","events_url":"https://api.github.com/users/JohanStenberg100/events{/privacy}","received_events_url":"https://api.github.com/users/JohanStenberg100/received_events","type":"User","site_admin":false},"assignees":[{"login":"JohanStenberg100","id":43748198,"node_id":"MDQ6VXNlcjQzNzQ4MTk4","avatar_url":"https://avatars3.githubusercontent.com/u/43748198?v=4","gravatar_id":"","url":"https://api.github.com/users/JohanStenberg100","html_url":"https://github.com/JohanStenberg100","followers_url":"https://api.github.com/users/JohanStenberg100/followers","following_url":"https://api.github.com/users/JohanStenberg100/following{/other_user}","gists_url":"https://api.github.com/users/JohanStenberg100/gists{/gist_id}","starred_url":"https://api.github.com/users/JohanStenberg100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohanStenberg100/subscriptions","organizations_url":"https://api.github.com/users/JohanStenberg100/orgs","repos_url":"https://api.github.com/users/JohanStenberg100/repos","events_url":"https://api.github.com/users/JohanStenberg100/events{/privacy}","received_events_url":"https://api.github.com/users/JohanStenberg100/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-11-30T10:40:26Z","updated_at":"2018-12-05T12:23:57Z","closed_at":null,"author_association":"NONE","body":"After I have installed the AL Language 2.0.56865 extension I am seeing this warning in the Problems list in VS Code (1.29.1)\r\n\r\n> Analyzer 'Microsoft.Dynamics.Nav.CodeCop.Design.Rule137DoNotDeclareVariablesThatAreUnused' threw an exception of type 'System.IndexOutOfRangeException' with message 'Index was outside the bounds of the array.'\r\n\r\nThis is the full message information:\r\n\r\n> {\r\n\t\"resource\": \"../app.json\",\r\n\t\"owner\": \"_generated_diagnostic_collection_name_#0\",\r\n\t\"code\": \"AD0001\",\r\n\t\"severity\": 4,\r\n\t\"message\": \"Analyzer 'Microsoft.Dynamics.Nav.CodeCop.Design.Rule137DoNotDeclareVariablesThatAreUnused' threw an exception of type 'System.IndexOutOfRangeException' with message 'Index was outside the bounds of the array.'\",\r\n\t\"source\": \"AL\",\r\n\t\"startLineNumber\": 1,\r\n\t\"startColumn\": 1,\r\n\t\"endLineNumber\": 1,\r\n\t\"endColumn\": 1\r\n}"},"comment":{"url":"https://api.github.com/repos/Microsoft/AL/issues/comments/444467416","html_url":"https://github.com/Microsoft/AL/issues/4293#issuecomment-444467416","issue_url":"https://api.github.com/repos/Microsoft/AL/issues/4293","id":444467416,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDQ2NzQxNg==","user":{"login":"JohanStenberg100","id":43748198,"node_id":"MDQ6VXNlcjQzNzQ4MTk4","avatar_url":"https://avatars3.githubusercontent.com/u/43748198?v=4","gravatar_id":"","url":"https://api.github.com/users/JohanStenberg100","html_url":"https://github.com/JohanStenberg100","followers_url":"https://api.github.com/users/JohanStenberg100/followers","following_url":"https://api.github.com/users/JohanStenberg100/following{/other_user}","gists_url":"https://api.github.com/users/JohanStenberg100/gists{/gist_id}","starred_url":"https://api.github.com/users/JohanStenberg100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohanStenberg100/subscriptions","organizations_url":"https://api.github.com/users/JohanStenberg100/orgs","repos_url":"https://api.github.com/users/JohanStenberg100/repos","events_url":"https://api.github.com/users/JohanStenberg100/events{/privacy}","received_events_url":"https://api.github.com/users/JohanStenberg100/received_events","type":"User","site_admin":false},"created_at":"2018-12-05T12:23:57Z","updated_at":"2018-12-05T12:23:57Z","author_association":"NONE","body":"@salgiza thank you, this exception does not reproduce on our `master` branch but I can reproduce it on the `2.0.56865` version. Make sure to update when a new AL VS code extension version is out. @GreatScott000 please post your repro as well so I can verify it's the same root cause."}}
{"actor":{"display_login":"JohanStenberg100"}}