{"action":"created","issue":{"url":"https://api.github.com/repos/codecadwallader/codemaid/issues/79","labels_url":"https://api.github.com/repos/codecadwallader/codemaid/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/codecadwallader/codemaid/issues/79/comments","events_url":"https://api.github.com/repos/codecadwallader/codemaid/issues/79/events","html_url":"https://github.com/codecadwallader/codemaid/issues/79","id":58084008,"number":79,"title":"CodeMaid + ReSharper 9 fails on sorting/removing using statements on VS 2013","user":{"login":"sgisbert","id":5386758,"avatar_url":"https://avatars.githubusercontent.com/u/5386758?v=3","gravatar_id":"","url":"https://api.github.com/users/sgisbert","html_url":"https://github.com/sgisbert","followers_url":"https://api.github.com/users/sgisbert/followers","following_url":"https://api.github.com/users/sgisbert/following{/other_user}","gists_url":"https://api.github.com/users/sgisbert/gists{/gist_id}","starred_url":"https://api.github.com/users/sgisbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgisbert/subscriptions","organizations_url":"https://api.github.com/users/sgisbert/orgs","repos_url":"https://api.github.com/users/sgisbert/repos","events_url":"https://api.github.com/users/sgisbert/events{/privacy}","received_events_url":"https://api.github.com/users/sgisbert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/codecadwallader/codemaid/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":{"login":"codecadwallader","id":3823772,"avatar_url":"https://avatars.githubusercontent.com/u/3823772?v=3","gravatar_id":"","url":"https://api.github.com/users/codecadwallader","html_url":"https://github.com/codecadwallader","followers_url":"https://api.github.com/users/codecadwallader/followers","following_url":"https://api.github.com/users/codecadwallader/following{/other_user}","gists_url":"https://api.github.com/users/codecadwallader/gists{/gist_id}","starred_url":"https://api.github.com/users/codecadwallader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecadwallader/subscriptions","organizations_url":"https://api.github.com/users/codecadwallader/orgs","repos_url":"https://api.github.com/users/codecadwallader/repos","events_url":"https://api.github.com/users/codecadwallader/events{/privacy}","received_events_url":"https://api.github.com/users/codecadwallader/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-02-18T15:41:32Z","updated_at":"2015-02-19T11:34:30Z","closed_at":"2015-02-18T20:17:27Z","body":"Hi,\r\n\r\nI have Visual Studio 2013 with Resharper installed, and I'm getting this error on cleanup:\r\n\r\n[CodeMaid Handled Exception 04:37:06 PM] Stopped cleaning 'VarnishPurge.cs': System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.\r\n   at EnvDTE80.DTE2.ExecuteCommand(String CommandName, String CommandArgs)\r\n   at SteveCadwallader.CodeMaid.Logic.Cleaning.UsingStatementCleanupLogic.SortUsingStatements(Boolean isAutoSave)\r\n   at SteveCadwallader.CodeMaid.Logic.Cleaning.CodeCleanupManager.RunCodeCleanupCSharp(Document document, Boolean isAutoSave)\r\n   at SteveCadwallader.CodeMaid.Logic.Cleaning.CodeCleanupManager.<>c__DisplayClassb.<Cleanup>b__9()\r\n   at SteveCadwallader.CodeMaid.Helpers.UndoTransactionHelper.Run(Func`1 undoConditions, Action tryAction, Action`1 catchAction)\r\n\r\nAnd a similar one for \"Sort usings\".\r\n\r\nWhen you go to CodeMaid settings and uncheck \"Cleaning -> Visual Studio -> Run remove using statements\" and \"Cleaning -> Visual Studio -> Run sort using statements\", then it works again.\r\n\r\nI have noticed that when you disable Resharper, the remove/sort usings works again, and also, that the Edit menu in VS is modified with R# active, so that makes me think that, somehow, R# removes/changes the native methods for:\r\n\r\n_package.IDE.ExecuteCommand(\"Edit.RemoveUnusedUsings\", String.Empty);\r\n_package.IDE.ExecuteCommand(\"Edit.SortUsings\", String.Empty);\r\n\r\nI'm not using R# tird party format. Just installed with default settings and started to play around.\r\n\r\nGreat tool, anyway!\r\n\r\nKind Regards,\r\nSergi"},"comment":{"url":"https://api.github.com/repos/codecadwallader/codemaid/issues/comments/75037773","html_url":"https://github.com/codecadwallader/codemaid/issues/79#issuecomment-75037773","issue_url":"https://api.github.com/repos/codecadwallader/codemaid/issues/79","id":75037773,"user":{"login":"codecadwallader","id":3823772,"avatar_url":"https://avatars.githubusercontent.com/u/3823772?v=3","gravatar_id":"","url":"https://api.github.com/users/codecadwallader","html_url":"https://github.com/codecadwallader","followers_url":"https://api.github.com/users/codecadwallader/followers","following_url":"https://api.github.com/users/codecadwallader/following{/other_user}","gists_url":"https://api.github.com/users/codecadwallader/gists{/gist_id}","starred_url":"https://api.github.com/users/codecadwallader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecadwallader/subscriptions","organizations_url":"https://api.github.com/users/codecadwallader/orgs","repos_url":"https://api.github.com/users/codecadwallader/repos","events_url":"https://api.github.com/users/codecadwallader/events{/privacy}","received_events_url":"https://api.github.com/users/codecadwallader/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T11:34:29Z","updated_at":"2015-02-19T11:34:29Z","body":"Glad to hear it :)\nOn Thu, Feb 19, 2015 at 3:46 AM Sergi Gisbert <notifications@github.com>\nwrote:\n\n> It works perfectly!\n>\n> Thanks so much.\n>\n>\n> Sergi\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/codecadwallader/codemaid/issues/79#issuecomment-75016017>\n> .\n>\n"}}