{"action":"created","issue":{"url":"https://api.github.com/repos/sirlantis/rubocop-for-rubymine/issues/9","labels_url":"https://api.github.com/repos/sirlantis/rubocop-for-rubymine/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/sirlantis/rubocop-for-rubymine/issues/9/comments","events_url":"https://api.github.com/repos/sirlantis/rubocop-for-rubymine/issues/9/events","html_url":"https://github.com/sirlantis/rubocop-for-rubymine/issues/9","id":61915141,"number":9,"title":"Does not work on Windows","user":{"login":"agross","id":16245,"avatar_url":"https://avatars.githubusercontent.com/u/16245?v=3","gravatar_id":"","url":"https://api.github.com/users/agross","html_url":"https://github.com/agross","followers_url":"https://api.github.com/users/agross/followers","following_url":"https://api.github.com/users/agross/following{/other_user}","gists_url":"https://api.github.com/users/agross/gists{/gist_id}","starred_url":"https://api.github.com/users/agross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agross/subscriptions","organizations_url":"https://api.github.com/users/agross/orgs","repos_url":"https://api.github.com/users/agross/repos","events_url":"https://api.github.com/users/agross/events{/privacy}","received_events_url":"https://api.github.com/users/agross/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-15T22:56:12Z","updated_at":"2015-03-31T14:50:54Z","closed_at":null,"body":"On Windows, I get this exception:\r\n```\r\n2015-03-15 23:39:49,116 [  65837]  DEBUG -   io.github.sirlantis.rubymine - Executing RuboCopbundle exec rubocop --format json C:/somewhere/lib/tasks/spec.rake \r\n2015-03-15 23:39:49,129 [  65850]   INFO - figurations.GeneralCommandLine - Cannot run program \"bundle\" (in directory \"C:/somewhere\"): CreateProcess error=2, The system cannot find the file specified \r\njava.io.IOException: Cannot run program \"bundle\" (in directory \"C:/somewhere\"): CreateProcess error=2, The system cannot find the file specified\r\n\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)\r\n\tat com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:300)\r\n\tat com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:286)\r\n\tat io.github.sirlantis.rubymine.rubocop.RubocopTask$runViaCommandLine$1.invoke(RubocopTask.kt:126)\r\n\tat io.github.sirlantis.rubymine.rubocop.RubocopTask$runViaCommandLine$1.invoke(RubocopTask.kt)\r\n\tat io.github.sirlantis.rubymine.rubocop.RubocopTask.parseProcessOutput(RubocopTask.kt:58)\r\n\tat io.github.sirlantis.rubymine.rubocop.RubocopTask.runViaCommandLine(RubocopTask.kt:126)\r\n\tat io.github.sirlantis.rubymine.rubocop.RubocopTask.run(RubocopTask.kt:51)\r\n\tat io.github.sirlantis.rubymine.rubocop.RubocopAnnotator.doAnnotate(RubocopAnnotator.kt:134)\r\n\tat io.github.sirlantis.rubymine.rubocop.RubocopAnnotator.doAnnotate(RubocopAnnotator.kt)\r\n...\r\n```\r\n\r\nI used a process logging tool named Process Monitor and found that RubyMine tries to invoke a wide variety of programs, all of which to not exist. These are tried to load from the filesystem for all configured `PATH`s.\r\n\r\n* `<path>rubocop.exe`\r\n* `<path>rubocop -format json.exe`\r\n* `<path>rubocop --format json C:/somewhere/lib/tasks/spec.rake`\r\n\r\nFor example, RubyMine tries to open a file named:\r\n\r\n* `C:\\Windows\\SysWOW64\\rubocop.exe`\r\n* `C:\\Windows\\SysWOW64\\rubocop --format json.exe`\r\n* `C:\\Windows\\SysWOW64\\rubocop --format json C:\\somewhere\\lib\\tasks\\spec.rake`\r\n\r\nIt seems you might need to define what program needs to be run a bit differently. I know Windows is very finicky about process and *separate* args. Also note that `.exe` is sometimes appended, while `rubocop` is installed under `<Ruby>\\bin\\rubocop` and `<Ruby>\\bin\\rubocop.bat`."},"comment":{"url":"https://api.github.com/repos/sirlantis/rubocop-for-rubymine/issues/comments/88117658","html_url":"https://github.com/sirlantis/rubocop-for-rubymine/issues/9#issuecomment-88117658","issue_url":"https://api.github.com/repos/sirlantis/rubocop-for-rubymine/issues/9","id":88117658,"user":{"login":"snowe2010","id":1534535,"avatar_url":"https://avatars.githubusercontent.com/u/1534535?v=3","gravatar_id":"","url":"https://api.github.com/users/snowe2010","html_url":"https://github.com/snowe2010","followers_url":"https://api.github.com/users/snowe2010/followers","following_url":"https://api.github.com/users/snowe2010/following{/other_user}","gists_url":"https://api.github.com/users/snowe2010/gists{/gist_id}","starred_url":"https://api.github.com/users/snowe2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowe2010/subscriptions","organizations_url":"https://api.github.com/users/snowe2010/orgs","repos_url":"https://api.github.com/users/snowe2010/repos","events_url":"https://api.github.com/users/snowe2010/events{/privacy}","received_events_url":"https://api.github.com/users/snowe2010/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T14:50:54Z","updated_at":"2015-03-31T14:50:54Z","body":"I updated to the 2.0.0.rc1 release, but now the plugin does absolutely nothing. No errors, no output, nothing."}}