{"action":"created","issue":{"url":"https://api.github.com/repos/vim-syntastic/syntastic/issues/1914","repository_url":"https://api.github.com/repos/vim-syntastic/syntastic","labels_url":"https://api.github.com/repos/vim-syntastic/syntastic/issues/1914/labels{/name}","comments_url":"https://api.github.com/repos/vim-syntastic/syntastic/issues/1914/comments","events_url":"https://api.github.com/repos/vim-syntastic/syntastic/issues/1914/events","html_url":"https://github.com/vim-syntastic/syntastic/issues/1914","id":190447524,"number":1914,"title":"Syntactic fails while processing scripts","user":{"login":"decibel","id":235814,"avatar_url":"https://avatars.githubusercontent.com/u/235814?v=3","gravatar_id":"","url":"https://api.github.com/users/decibel","html_url":"https://github.com/decibel","followers_url":"https://api.github.com/users/decibel/followers","following_url":"https://api.github.com/users/decibel/following{/other_user}","gists_url":"https://api.github.com/users/decibel/gists{/gist_id}","starred_url":"https://api.github.com/users/decibel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decibel/subscriptions","organizations_url":"https://api.github.com/users/decibel/orgs","repos_url":"https://api.github.com/users/decibel/repos","events_url":"https://api.github.com/users/decibel/events{/privacy}","received_events_url":"https://api.github.com/users/decibel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-18T23:36:35Z","updated_at":"2016-11-23T20:45:36Z","closed_at":"2016-11-23T20:45:36Z","body":"I'm getting the following error while editing 4 files (Makefile, test.sh, lib.sh, setup.sh) at https://github.com/decibel/pgxntool-test/tree/a1198a32128f072a6f3a2813907069440d29a08d\r\n\r\nThese failures aren't completely deterministic... when I first open the 4 files everything is fine, but at some point I start getting these errors. Once I get the errors they seem pretty consistent.\r\n\r\nI suspect the problem is that the Makefile will build a file (`.env`) that the others depend on, but that's just a guess, and presence or absence of that file doesn't seem to matter.\r\n\r\n````\r\nError detected while processing function <SNR>35_BufWritePostHook[3]..<SNR>35_UpdateErrors[15]..<SNR>35_CacheErrors[35]..15[1]..14[23]..SyntaxCheckers_sh_sh_GetLocList[15]..SyntasticMake[29]..syntastic#util#system:\r\nline    9:\r\nE484: Can't open file /var/folders/mg/s6jx45m50zd32sy8mt60lk_00000gq/T/vakWpKz/16\r\nError detected while processing function <SNR>35_BufWritePostHook[3]..<SNR>35_UpdateErrors[15]..<SNR>35_CacheErrors:\r\nline   35:\r\nE170: Missing :endfor\r\nError detected while processing function <SNR>35_BufWritePostHook[3]..<SNR>35_UpdateErrors:\r\nline   15:\r\nE171: Missing :endif\r\n````"},"comment":{"url":"https://api.github.com/repos/vim-syntastic/syntastic/issues/comments/262625914","html_url":"https://github.com/vim-syntastic/syntastic/issues/1914#issuecomment-262625914","issue_url":"https://api.github.com/repos/vim-syntastic/syntastic/issues/1914","id":262625914,"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":"2016-11-23T20:45:36Z","updated_at":"2016-11-23T20:45:36Z","body":"> If I then do `:SyntasticCheck` I'll get an error, which I've pasted above, as well as the requested output of `:SyntasticInfo`.\r\n\r\nSadly, the useful part is not the output of `:SyntasticInfo`, but an additional debug trace that gets printed when you run `:SyntasticInfo` with `g:syntastic_debug=1`, with recent versions of syntastic.  Your output is for 3.7.0-29 , which is an year old.  Syntastic 3.7.0-29 doesn't print the debug trace I asked for.\r\n\r\n> What I suspect is happening is the first time SyntacticCheck is run `.env` gets sourced (if it exists).\r\n\r\nYou don't need to suspect anything.  What syntastic does is shown in the logs you posted: it runs `bash -n doc`.  That's all there is to it.\r\n\r\n`E484` means Vim can't create its temporary files.  This is typically caused by messed up `shell`-related options, but if you can also achieve the same effect by messing with `$TMPDIR` and the like (cf. `:h tempfile`).  It hasn't occurred to me until now that it might also be useful to log `$TMPDIR` along with the other junk, but sure, I'll add that.  Good luck making sense of the logs."}}
{"actor":{"display_login":"lcd047"}}