Skip to content

Commit a95cd00

Browse files
committed
Bug fix & improvements for running LuaInspect as external process (issue #1)
Issue #1 on GitHub: #1
1 parent 1c183f4 commit a95cd00

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

autoload/xolox/luainspect.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Last Change: May 12, 2013
44
" URL: http://peterodding.com/code/vim/lua-inspect/
55

6-
let g:xolox#luainspect#version = '0.4.20'
6+
let g:xolox#luainspect#version = '0.4.21'
77

88
call xolox#misc#compat#check('lua-inspect', 2)
99

@@ -145,11 +145,12 @@ function! s:parse_text(input, search_path) " {{{1
145145
if !(has('lua') && g:lua_inspect_internal)
146146
let template = 'lua -e "%s; require ''luainspect4vim'' (io.read ''*a'')"'
147147
let command = printf(template, a:search_path)
148+
call xolox#misc#msg#debug("luainspect.vim %s: Executing LuaInspect as external process using command: %s", g:xolox#luainspect#version, command)
148149
try
149150
let b:luainspect_output = xolox#misc#os#exec(command, a:input)
150151
catch
151-
let msg = "luainspect.vim %s: Failed to execute LuaInspect as external process! %s"
152-
throw printf(msg, g:xolox#luainspect#version, strtrans(join(b:luainspect_output, "\n")))
152+
let msg = "luainspect.vim %s: Failed to execute LuaInspect as external process! Use ':verbose LuaInspect' to see the command line of the external process."
153+
throw printf(msg, g:xolox#luainspect#version)
153154
endtry
154155
else
155156
redir => output

0 commit comments

Comments
 (0)