Skip to content

Commit f98662e

Browse files
committed
Fix troubleshooting function
1 parent bc5dc3d commit f98662e

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

autoload/pymode/troubleshooting.vim

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
" DESC: Get debug information about pymode problem
22
fun! pymode#troubleshooting#Test() "{{{
3+
runtime ftplugin/python/init-pymode.vim
4+
35
new
46
setlocal buftype=nofile bufhidden=delete noswapfile nowrap
57

@@ -33,7 +35,9 @@ fun! pymode#troubleshooting#Test() "{{{
3335
call append('$', 'let pymode = ' . string(g:pymode))
3436
if g:pymode
3537
call append('$', 'let pymode_path = ' . string(g:pymode_path))
36-
call append('$', 'let pymode_paths = ' . string(g:pymode_paths))
38+
if g:pymode_path
39+
call append('$', 'let pymode_paths = ' . string(g:pymode_paths))
40+
end
3741

3842
call append('$', 'let pymode_doc = ' . string(g:pymode_doc))
3943
if g:pymode_doc
@@ -63,6 +67,12 @@ fun! pymode#troubleshooting#Test() "{{{
6367
endif
6468

6569
call append('$', 'let pymode_rope = ' . string(g:pymode_rope))
70+
if g:pymode_rope
71+
call append('$', 'let pymode_rope_autocomplete_map = ' . string(g:pymode_rope_autocomplete_map))
72+
call append('$', 'let pymode_rope_auto_project = ' . string(g:pymode_rope_auto_project))
73+
call append('$', 'let pymode_rope_auto_project_open = ' . string(g:pymode_rope_auto_project_open))
74+
call append('$', 'let pymode_rope_auto_session_manage = ' . string(g:pymode_rope_auto_session_manage))
75+
end
6676
call append('$', 'let pymode_folding = ' . string(g:pymode_folding))
6777
call append('$', 'let pymode_breakpoint = ' . string(g:pymode_breakpoint))
6878
call append('$', 'let pymode_syntax = ' . string(g:pymode_syntax))
@@ -75,6 +85,7 @@ fun! pymode#troubleshooting#Test() "{{{
7585
endif
7686

7787
if python
88+
call append('$', '')
7889
call append('$', 'VIM python paths:')
7990
call append('$', '-----------------')
8091
python << EOF

0 commit comments

Comments
 (0)