{"action":"created","issue":{"url":"https://api.github.com/repos/scrooloose/syntastic/issues/1391","labels_url":"https://api.github.com/repos/scrooloose/syntastic/issues/1391/labels{/name}","comments_url":"https://api.github.com/repos/scrooloose/syntastic/issues/1391/comments","events_url":"https://api.github.com/repos/scrooloose/syntastic/issues/1391/events","html_url":"https://github.com/scrooloose/syntastic/issues/1391","id":68861265,"number":1391,"title":"SyntasticCheck not being run on file save (even though it says it will)","user":{"login":"jondkinney","id":4521,"avatar_url":"https://avatars.githubusercontent.com/u/4521?v=3","gravatar_id":"","url":"https://api.github.com/users/jondkinney","html_url":"https://github.com/jondkinney","followers_url":"https://api.github.com/users/jondkinney/followers","following_url":"https://api.github.com/users/jondkinney/following{/other_user}","gists_url":"https://api.github.com/users/jondkinney/gists{/gist_id}","starred_url":"https://api.github.com/users/jondkinney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jondkinney/subscriptions","organizations_url":"https://api.github.com/users/jondkinney/orgs","repos_url":"https://api.github.com/users/jondkinney/repos","events_url":"https://api.github.com/users/jondkinney/events{/privacy}","received_events_url":"https://api.github.com/users/jondkinney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-16T07:12:33Z","updated_at":"2015-04-21T16:51:37Z","closed_at":null,"body":"Hi there!\r\n\r\nI'm having an issue with running mri and rubocop checkers somewhat recently. It used to work fine and would check automatically on file save, but now it does not. Here is the output of `SyntasticInfo`\r\n\r\n```\r\nSyntastic version: 3.6.0-74 (Vim 704, Darwin)\r\nInfo for filetype: ruby\r\nGlobal mode: active\r\nFiletype ruby is active\r\nThe current file will be checked automatically\r\nAvailable checkers: mri rubocop\r\nCurrently enabled checkers: mri rubocop\r\n```\r\n\r\nAnd here is the debug output of a normal file save:\r\n\r\n```\r\n\"app/models/application_document.rb\" 27L, 789C written\r\nsyntastic: 302.556048: &shell = 'bash', &shellcmdflag = '-c', &shellpipe = '2>&1| tee', &shellquote = '', &shellredir = '>%s 2>&1', &shellslash = 0, &shelltemp = 1, &shellxquot\r\ne = '', &shellxescape = ''\r\nsyntastic: 302.556203: UpdateErrors (auto): default checkers\r\nsyntastic: 302.556277: _skip_file: skipping checks\r\n```\r\n\r\nI'm running rubocop version 0.29.0 and ruby version 2.2.1 (through RVM).\r\n\r\nThis is in iTerm2 with vim version 7.4 Included patches: 1-488 (compiled by homebrew).\r\n\r\nI should mention that running `SyntasticCheck` directly works perfectly fine. It's just the auto-running of that command that isn't working. \r\n\r\nAs a temporary workaround I added this:\r\n\r\n```viml\r\nnoremap :w<CR> :w<CR>:SyntasticCheck<CR>\r\n```\r\n\r\nAnd here is the output of running that command:\r\n\r\n```\r\nsyntastic: 573.438674: &shell = 'bash', &shellcmdflag = '-c', &shellpipe = '2>&1| tee', &shellquote = '', &shellredir = '>%s 2>&1', &shellslash = 0, &shelltemp = 1, &shellxquot\r\ne = '', &shellxescape = ''\r\nsyntastic: 573.438810: UpdateErrors (auto): default checkers\r\nsyntastic: 573.438886: _skip_file: skipping checks\r\nsyntastic: 573.455481: &shell = 'bash', &shellcmdflag = '-c', &shellpipe = '2>&1| tee', &shellquote = '', &shellredir = '>%s 2>&1', &shellslash = 0, &shelltemp = 1, &shellxquot\r\ne = '', &shellxescape = ''\r\nsyntastic: 573.455657: UpdateErrors: default checkers\r\nsyntastic: 573.455889: CacheErrors: default checkers\r\nsyntastic: 573.456816: g:syntastic_aggregate_errors = 0\r\nsyntastic: 573.456988: getcwd() = '/Users/jon/Sites/Rails/project'\r\nsyntastic: 573.457300: CacheErrors: Invoking checker: ruby/mri\r\nsyntastic: 573.457853: SyntasticMake: called with options: {'errorformat': '%-G%\\m%.%#warning: %\\%%(possibly %\\)%\\?useless use of == in void context,%-G%\\%.%\\%.%\\%.%.%#,%-GSynt\r\nax OK,%E%f:%l: syntax error\\, %m,%Z%p^,%W%f:%l: warning: %m,%Z%p^,%W%f:%l: %m,%-C%.%#', 'makeprg': 'ruby -w -T1 -c app/models/application_document.rb', 'env': {'RUBYOPT': ''}}\r\nsyntastic: 573.503589: getLocList: checker ruby/mri returned 0\r\nsyntastic: 573.504400: CacheErrors: Invoking checker: ruby/rubocop\r\nsyntastic: 573.505274: SyntasticMake: called with options: {'subtype': 'Style', 'errorformat': '%f:%l:%c: %t: %m', 'makeprg': 'rubocop --format emacs app/models/application_doc\r\nument.rb'}\r\nsyntastic: 574.301038: getLocList: checker ruby/rubocop returned 1\r\n```\r\n\r\nSo you can see the first 4 lines when it's trying to run the `UpdateErrors (auto)` function, it fails, but when it runs just the normal `UpdateErrors` function later (because I manually told it to), then it works fine... any thoughts?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/scrooloose/syntastic/issues/comments/94867896","html_url":"https://github.com/scrooloose/syntastic/issues/1391#issuecomment-94867896","issue_url":"https://api.github.com/repos/scrooloose/syntastic/issues/1391","id":94867896,"user":{"login":"lcd047","id":1281736,"avatar_url":"https://avatars.githubusercontent.com/u/1281736?v=3","gravatar_id":"","url":"https://api.github.com/users/lcd047","html_url":"https://github.com/lcd047","followers_url":"https://api.github.com/users/lcd047/followers","following_url":"https://api.github.com/users/lcd047/following{/other_user}","gists_url":"https://api.github.com/users/lcd047/gists{/gist_id}","starred_url":"https://api.github.com/users/lcd047/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcd047/subscriptions","organizations_url":"https://api.github.com/users/lcd047/orgs","repos_url":"https://api.github.com/users/lcd047/repos","events_url":"https://api.github.com/users/lcd047/events{/privacy}","received_events_url":"https://api.github.com/users/lcd047/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T16:51:37Z","updated_at":"2015-04-21T16:51:37Z","body":"Ping."}}