Skip to content

Commit 6cea61d

Browse files
committed
Improve troubleshooting function
1 parent 0c54d08 commit 6cea61d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

autoload/pymode/troubleshooting.vim

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,26 @@ fun! pymode#troubleshooting#test() "{{{
1818

1919
call append('0', ['Pymode diagnostic',
2020
\ '===================',
21-
\ 'VIM:' . v:version . ', OS: ' . os .', multi_byte:' . has('multi_byte') . ', pymode: ' . g:pymode_version . ', python: ' . g:pymode_python,
21+
\ 'VIM:' . v:version . ', OS: ' . os .', multi_byte:' . has('multi_byte') . ', pymode: ' . g:pymode_version . ', pymode-python: ' . g:pymode_python,
2222
\ ''])
2323

2424
if !exists('#filetypeplugin')
2525
call append('$', ['WARNING: ', 'Python-mode required :filetype plugin indent on', ''])
2626
endif
2727

28+
call append('$', ['+python: ' . has('python')])
29+
call append('$', ['+python3: ' . has('python3'), ''])
30+
2831
if g:pymode_python == 'disable'
32+
2933
if !has('python') && !has('python3')
3034

31-
call append('$', ['WARNING: ', 'Python-mode required vim compiled with +python or +python3.',
35+
call append('$', ['WARNING: Python-mode required vim compiled with +python or +python3.',
3236
\ '"lint, rope, run, doc, virtualenv" features disabled.', ''])
3337

3438
else
3539

36-
call append('$', ['WARNING: ', 'Python is disabled by `pymode_python` option.',
40+
call append('$', ['WARNING: Python is disabled by `pymode_python` option.',
3741
\ '"lint, rope, run, doc, virtualenv" features disabled.', ''])
3842

3943
endif

0 commit comments

Comments
 (0)