Skip to content

Commit da95202

Browse files
committed
Update diagnostic tool
1 parent 4611a7e commit da95202

2 files changed

Lines changed: 51 additions & 30 deletions

File tree

autoload/pymode/troubleshooting.vim

Lines changed: 51 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22
fun! pymode#troubleshooting#Test() "{{{
33
new
44
setlocal buftype=nofile bufhidden=delete noswapfile nowrap
5+
6+
let os = "Unknown"
7+
if has('win16') || has('win32') || has('win64')
8+
let os = "Windows"
9+
else
10+
let os = substitute(system('uname'), "\n", "", "")
11+
endif
12+
513
call append('0', ['Pymode diagnostic',
614
\ '===================',
7-
\ 'VIM:' . v:version . ' multi_byte:' . has('multi_byte') . ' pymode: ' . g:pymode_version,
15+
\ 'VIM:' . v:version . ', OS: ' . os .', multi_byte:' . has('multi_byte') . ', pymode: ' . g:pymode_version,
816
\ ''])
917

1018
let python = 1
@@ -22,26 +30,48 @@ fun! pymode#troubleshooting#Test() "{{{
2230

2331
call append('$', 'Pymode variables:')
2432
call append('$', '-------------------')
25-
call append('$', 'pymode:' . g:pymode)
26-
call append('$', 'pymode_lint:' . g:pymode_lint)
27-
call append('$', 'pymode_rope:' . g:pymode_rope)
28-
call append('$', 'pymode_path:' . g:pymode_path)
29-
call append('$', 'pymode_doc:' . g:pymode_doc)
30-
call append('$', 'pymode_run:' . g:pymode_run)
31-
call append('$', 'pymode_virtualenv:' . g:pymode_virtualenv)
32-
call append('$', 'pymode_breakpoint:' . g:pymode_breakpoint)
33-
call append('$', 'pymode_path:' . g:pymode_path)
34-
call append('$', 'pymode_folding:' . g:pymode_folding)
35-
call append('$', 'pymode_syntax:' . g:pymode_syntax)
36-
call append('$', 'pymode_utils_whitespaces:' . g:pymode_utils_whitespaces)
37-
call append('$', 'pymode_options_indent:' . g:pymode_options_indent)
38-
call append('$', 'pymode_options_other:' . g:pymode_options_other)
39-
40-
if len(g:pymode_virtualenv_enabled)
41-
call append('$', 'Enabled virtualenv:')
42-
call append('$', '-------------------')
43-
call append('$', g:pymode_virtualenv_enabled)
44-
call append('$', '')
33+
call append('$', 'let pymode = ' . string(g:pymode))
34+
if g:pymode
35+
call append('$', 'let pymode_path = ' . string(g:pymode_path))
36+
call append('$', 'let pymode_paths = ' . string(g:pymode_paths))
37+
38+
call append('$', 'let pymode_doc = ' . string(g:pymode_doc))
39+
if g:pymode_doc
40+
call append('$', 'let pymode_doc_key = ' . string(g:pymode_doc_key))
41+
endif
42+
43+
call append('$', 'let pymode_run = ' . string(g:pymode_run))
44+
if g:pymode_run
45+
call append('$', 'let pymode_run_key = ' . string(g:pymode_run_key))
46+
endif
47+
48+
call append('$', 'let pymode_lint = ' . string(g:pymode_lint))
49+
if g:pymode_lint
50+
call append('$', 'let pymode_lint_checker = ' . string(g:pymode_lint_checker))
51+
call append('$', 'let pymode_lint_ignore = ' . string(g:pymode_lint_ignore))
52+
call append('$', 'let pymode_lint_select = ' . string(g:pymode_lint_select))
53+
call append('$', 'let pymode_lint_onfly = ' . string(g:pymode_lint_onfly))
54+
call append('$', 'let pymode_lint_config = ' . string(g:pymode_lint_config))
55+
call append('$', 'let pymode_lint_write = ' . string(g:pymode_lint_write))
56+
call append('$', 'let pymode_lint_cwindow = ' . string(g:pymode_lint_cwindow))
57+
call append('$', 'let pymode_lint_message = ' . string(g:pymode_lint_message))
58+
call append('$', 'let pymode_lint_signs = ' . string(g:pymode_lint_signs))
59+
call append('$', 'let pymode_lint_jump = ' . string(g:pymode_lint_jump))
60+
call append('$', 'let pymode_lint_hold = ' . string(g:pymode_lint_hold))
61+
call append('$', 'let pymode_lint_minheight = ' . string(g:pymode_lint_minheight))
62+
call append('$', 'let pymode_lint_maxheight = ' . string(g:pymode_lint_maxheight))
63+
endif
64+
65+
call append('$', 'let pymode_rope = ' . string(g:pymode_rope))
66+
call append('$', 'let pymode_folding = ' . string(g:pymode_folding))
67+
call append('$', 'let pymode_breakpoint = ' . string(g:pymode_breakpoint))
68+
call append('$', 'let pymode_syntax = ' . string(g:pymode_syntax))
69+
call append('$', 'let pymode_virtualenv = ' . string(g:pymode_virtualenv))
70+
if g:pymode_virtualenv
71+
call append('$', 'let pymode_virtualenv_enabled = ' . string(g:pymode_virtualenv_enabled))
72+
endif
73+
call append('$', 'pymode_utils_whitespaces:' . string(g:pymode_utils_whitespaces))
74+
call append('$', 'pymode_options:' . string(g:pymode_options))
4575
endif
4676

4777
if python

doc/pymode.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ PythonMode. These options should be set in your vimrc.
9292

9393
|'pymode_breakpoint_key'| Key for breakpoint
9494

95-
|'pymode_utils'| Turns off utils
96-
9795
|'pymode_virtualenv'| Turns off virtualenv
9896

9997
|'pymode_utils_whitespaces'| Remove unused whitespaces
@@ -315,13 +313,6 @@ Default: '<leader>b'.
315313

316314
Key for setting/unsetting breakpoints.
317315

318-
------------------------------------------------------------------------------
319-
*'pymode_utils'*
320-
Values: 0 or 1.
321-
Default: 1.
322-
323-
If this option is set to 0 the then utils script is disabled.
324-
325316
------------------------------------------------------------------------------
326317
*'pymode_virtualenv'*
327318
Values: 0 or 1.

0 commit comments

Comments
 (0)