{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/2076","repository_url":"https://api.github.com/repos/Microsoft/visualfsharp","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/2076/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/2076/comments","events_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/2076/events","html_url":"https://github.com/Microsoft/visualfsharp/issues/2076","id":197133253,"number":2076,"title":"Discussion: F# Roslyn analyzers","user":{"login":"forki","id":57396,"avatar_url":"https://avatars.githubusercontent.com/u/57396?v=3","gravatar_id":"","url":"https://api.github.com/users/forki","html_url":"https://github.com/forki","followers_url":"https://api.github.com/users/forki/followers","following_url":"https://api.github.com/users/forki/following{/other_user}","gists_url":"https://api.github.com/users/forki/gists{/gist_id}","starred_url":"https://api.github.com/users/forki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forki/subscriptions","organizations_url":"https://api.github.com/users/forki/orgs","repos_url":"https://api.github.com/users/forki/repos","events_url":"https://api.github.com/users/forki/events{/privacy}","received_events_url":"https://api.github.com/users/forki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-22T09:43:43Z","updated_at":"2016-12-22T12:06:43Z","closed_at":null,"body":"@KevinRansom proposed in https://github.com/Microsoft/visualfsharp/pull/2068 to use roslyn analyzers for suggestions instead of throwing detailed error messages.\r\n\r\nOpen questions;\r\n\r\n1) Is it technically possible to do?\r\n2) Can we generate quick fixes from analyzers? /cc @vasily-kirichenko \r\n3) Can ionide use this information in VS Code and still generate it's quick fixes / cc @Krzysztof-Cieslak\r\n4) What about fsi.exe - can we still suggest from there?\r\n5) What about Xamarin Studio? Would analyzers work there? /cc @nosami "},"comment":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/comments/268786653","html_url":"https://github.com/Microsoft/visualfsharp/issues/2076#issuecomment-268786653","issue_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/2076","id":268786653,"user":{"login":"nosami","id":667194,"avatar_url":"https://avatars.githubusercontent.com/u/667194?v=3","gravatar_id":"","url":"https://api.github.com/users/nosami","html_url":"https://github.com/nosami","followers_url":"https://api.github.com/users/nosami/followers","following_url":"https://api.github.com/users/nosami/following{/other_user}","gists_url":"https://api.github.com/users/nosami/gists{/gist_id}","starred_url":"https://api.github.com/users/nosami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosami/subscriptions","organizations_url":"https://api.github.com/users/nosami/orgs","repos_url":"https://api.github.com/users/nosami/repos","events_url":"https://api.github.com/users/nosami/events{/privacy}","received_events_url":"https://api.github.com/users/nosami/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T12:06:43Z","updated_at":"2016-12-22T12:06:43Z","body":"Roslyn analyzers would work fine in Xamarin Studio. When I built this \r\n![cookingwithgas](https://cloud.githubusercontent.com/assets/667194/21425046/90cc9960-c83e-11e6-97d9-7a15277e36ce.gif)\r\n, I had to fight against the current implementation for C# which used Roslyn CodeFixes.\r\n\r\n\r\nI would especially like to see FCS generate the list of TextChanges for each potential CodeFix. Right now fixes would entail parsing information passed through the compiler error message and acting on that. \r\n\r\nA Text Change is just { startPos; endPos; newText } and can represent text to be removed, added or changed.\r\n\r\nI don't think Roslyn analyzers would work in the fsi scenario - I'm not sure what use case you are thinking of."}}
{"actor":{"display_login":"nosami"}}