{"action":"created","issue":{"url":"https://api.github.com/repos/vim-syntastic/syntastic/issues/2068","repository_url":"https://api.github.com/repos/vim-syntastic/syntastic","labels_url":"https://api.github.com/repos/vim-syntastic/syntastic/issues/2068/labels{/name}","comments_url":"https://api.github.com/repos/vim-syntastic/syntastic/issues/2068/comments","events_url":"https://api.github.com/repos/vim-syntastic/syntastic/issues/2068/events","html_url":"https://github.com/vim-syntastic/syntastic/issues/2068","id":253955332,"number":2068,"title":"g:syntastic_ruby_exec is ignored when first file is opened","user":{"login":"t0il3ts0ap","id":8509512,"avatar_url":"https://avatars3.githubusercontent.com/u/8509512?v=4","gravatar_id":"","url":"https://api.github.com/users/t0il3ts0ap","html_url":"https://github.com/t0il3ts0ap","followers_url":"https://api.github.com/users/t0il3ts0ap/followers","following_url":"https://api.github.com/users/t0il3ts0ap/following{/other_user}","gists_url":"https://api.github.com/users/t0il3ts0ap/gists{/gist_id}","starred_url":"https://api.github.com/users/t0il3ts0ap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t0il3ts0ap/subscriptions","organizations_url":"https://api.github.com/users/t0il3ts0ap/orgs","repos_url":"https://api.github.com/users/t0il3ts0ap/repos","events_url":"https://api.github.com/users/t0il3ts0ap/events{/privacy}","received_events_url":"https://api.github.com/users/t0il3ts0ap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-08-30T10:45:37Z","updated_at":"2017-08-30T14:07:37Z","closed_at":null,"author_association":"NONE","body":"VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 26 2016 16:09:22)\r\nSyntastic version: 3.8.0-65 (Vim 704, Darwin, GUI)\r\n\r\nI am writing code in **jruby**, but because of its slow loading time I wanted to use **mri ruby** for syntax checking. \r\n\r\n```\r\nlet g:syntastic_always_populate_loc_list = 1\r\nlet g:syntastic_auto_loc_list = 1\r\nlet g:syntastic_check_on_open = 1\r\nlet g:syntastic_ruby_exec = \"/Users/someuser/.rbenv/versions/2.3.1/bin/ruby\"\r\nlet g:syntastic_ruby_checkers = ['mri']\r\n```\r\nAfter putting above in **.vimrc**, syntastic uses **mri ruby** as checker except when the file is opened for the first time.\r\n\r\nAfter debugging for hours I found out the issue is in `syntastic/syntax_checkers/ruby/mri.vim`\r\n\r\nI changed this part \r\n```\r\ncall g:SyntasticRegistry.CreateAndRegisterChecker({\r\n    \\ 'filetype': 'ruby',\r\n    \\ 'name': 'mri',\r\n    \\ 'exec': 'ruby'})\r\n```\r\nto\r\n```\r\ncall g:SyntasticRegistry.CreateAndRegisterChecker({\r\n    \\ 'filetype': 'ruby',\r\n    \\ 'name': 'mri',\r\n    \\ 'exec': g:syntastic_ruby_exec})\r\n```\r\nand startup time improved  by factor of 6.\r\nI would have submitted a pull request but I don't know If this the correct way to fix. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vim-syntastic/syntastic/issues/comments/326001557","html_url":"https://github.com/vim-syntastic/syntastic/issues/2068#issuecomment-326001557","issue_url":"https://api.github.com/repos/vim-syntastic/syntastic/issues/2068","id":326001557,"user":{"login":"lcd047","id":1281736,"avatar_url":"https://avatars0.githubusercontent.com/u/1281736?v=4","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":"2017-08-30T14:07:37Z","updated_at":"2017-08-30T14:07:37Z","author_association":"COLLABORATOR","body":"The Ctrl-P case doesn't make sense.  Can you reproduce the problem with all plugins disabled except syntastic and Vundle?"}}
{"actor":{"display_login":"lcd047"}}