Permalink
Browse files

Core: log $TMPDIR and friends.

  • Loading branch information...
1 parent 1c89d2a commit 0f9fa8a0c1ccb61544d370a53a5efe8184b3c1e1 @lcd047 lcd047 committed Nov 23, 2016
Showing with 13 additions and 3 deletions.
  1. +6 −1 autoload/syntastic/util.vim
  2. +7 −2 plugin/syntastic.vim
@@ -44,7 +44,12 @@ function! syntastic#util#system(command) abort " {{{2
catch
let crashed = 1
call syntastic#log#error('exception running system(' . string(a:command) . '): ' . v:exception)
- call syntastic#log#debug(g:_SYNTASTIC_DEBUG_TRACE, '$TERM = ' . string($TERM))
+ if syntastic#util#isRunningWindows()
+ call syntastic#log#debug(g:_SYNTASTIC_DEBUG_CHECKERS, '$TMP = ' . string($TMP) . ', $TEMP = ' . string($TEMP))
+ else
+ call syntastic#log#debug(g:_SYNTASTIC_DEBUG_CHECKERS, '$TERM = ' . string($TERM))
+ call syntastic#log#debug(g:_SYNTASTIC_DEBUG_CHECKERS, '$TMPDIR = ' . string($TMPDIR))
+ endif
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_TRACE, '$PATH = ' . string($PATH))
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_TRACE, 'getcwd() = ' . string(getcwd()))
call syntastic#log#debugShowOptions(g:_SYNTASTIC_DEBUG_TRACE, g:_SYNTASTIC_SHELL_OPTIONS)
@@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
-let g:_SYNTASTIC_VERSION = '3.8.0-7'
+let g:_SYNTASTIC_VERSION = '3.8.0-8'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1
@@ -455,7 +455,12 @@ function! s:CacheErrors(buf, checker_names) abort " {{{2
if !s:_skip_file(a:buf)
" debug logging {{{3
call syntastic#log#debugShowVariables(g:_SYNTASTIC_DEBUG_TRACE, 'aggregate_errors')
- call syntastic#log#debug(g:_SYNTASTIC_DEBUG_CHECKERS, '$TERM = ' . string($TERM))
+ if syntastic#util#isRunningWindows()
+ call syntastic#log#debug(g:_SYNTASTIC_DEBUG_CHECKERS, '$TMP = ' . string($TMP) . ', $TEMP = ' . string($TEMP))
+ else
+ call syntastic#log#debug(g:_SYNTASTIC_DEBUG_CHECKERS, '$TERM = ' . string($TERM))
+ call syntastic#log#debug(g:_SYNTASTIC_DEBUG_CHECKERS, '$TMPDIR = ' . string($TMPDIR))
+ endif
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_CHECKERS, '$PATH = ' . string($PATH))
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_TRACE, 'getcwd() = ' . string(getcwd()))
" }}}3

0 comments on commit 0f9fa8a

Please sign in to comment.