Skip to content

Opening cmdwin from mundo window spews errors coming from MundoRefreshDelayed #112

@idbrii

Description

@idbrii

If you open cmdwin (default q: or :<C-f>) from inside the mundo window, you get a screen full of errors.

Minimal vimrc

" Invoke with:
" vim -Nu ~/.vim/reprovimrc.vim -U NONE

" all plugins should work with sensible as a baseline.
let s:plugins = ['sensible']
let s:plugins += ['mundo']

set runtimepath-=~/.vim
set runtimepath-=~/.vim/after
set runtimepath-=~/vimfiles
set runtimepath-=~/vimfiles/after
for plugin in s:plugins
    exec "set runtimepath^=~/.vim/bundle/". plugin
    exec "set runtimepath+=~/.vim/bundle/". plugin ."/after"
endfor
set viminfofile=NONE

" Point to your python
let $PATH = $PATH .. ';' .. expand('$USERPROFILE/scoop/apps/python39/3.9.1/')

nnoremap <F2> :<C-u>MundoToggle<CR>
nnoremap <F3> q:

Repro

  1. gvim -Nu ~/.vim/reprovimrc.vim -U NONE c:\scratch\bug.txt
  2. F2
  3. F3

You get these errors:

Error detected while processing function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython[1]..function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython:
line    1:
Traceback (most recent call last):
Error detected while processing function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython[1]..function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython:
line    1:
  File "<string>", line 1, in <module>
Error detected while processing function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython[1]..function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython:
line    1:
  File "C:\\Users\\idbrii\\.vim\\bundle\\mundo\\autoload/mundo.py", line 94, in MundoRenderGraph
Error detected while processing function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython[1]..function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython:
line    1:
    util._goto_window_for_buffer('__Mundo__')
Error detected while processing function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython[1]..function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython:
line    1:
  File "C:\Users\idbrii\.vim\bundle\mundo\autoload\mundo\util.py", line 33, in _goto_window_for_buffer
Error detected while processing function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython[1]..function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython:
line    1:
    vim().command('%dwincmd w' % int(winnr))
Error detected while processing function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython[1]..function <SNR>29_MundoRefreshDelayed[11]..<SNR>29_MundoPythonRestoreView[17]..<SNR>29_MundoPython:
line    1:
vim.error: Vim(wincmd):E11: Invalid in command-line window; <CR> executes, CTRL-C quits

Version

mundo 2a12e25

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions