Since recent commit getting E863: Not allowed for a terminal in a popup window

39 views
Skip to first unread message

M Kelly

unread,
May 13, 2020, 11:08:26 AM5/13/20
to vim_dev
Hi,

Perhaps this was mentioned before ?

Since commit 5aed0ccb965dbad4b60f4c77c9c4455a9379e73c 
I am unable to use ag+fzf in a popup.  I get this error:

Error detected while processing function fzf#vim#grep[24]..<SNR>86_fzf[18]..fzf#run[58]..<SNR>66_execute_term:
line   70:
E863: Not allowed for a terminal in a popup window

before this commit it worked well.
I have the latest fzf and fzf.vim - do I need to submit a change to match latest vim api ?
Not sure yet what I need to change tho.

thx,
-m

M Kelly

unread,
May 13, 2020, 11:24:23 AM5/13/20
to vim_dev
Hi,

I think this is:

      let fzf.buf = term_start([&shell, &shellcmdflag, command], {'curwin': 1, 'exit_cb': function(fzf.on_exit)})

... trying to see what is in fzf.on_exit that might matter ?

thx,
-m

M Kelly

unread,
May 13, 2020, 12:58:17 PM5/13/20
to vim_dev
Hi,

Should I open a github issue for this ?
Seems there is similar info recently from lacygoill but not sure that is fully resolved ?

thx,
-m

Bram Moolenaar

unread,
May 13, 2020, 4:45:09 PM5/13/20
to vim...@googlegroups.com, M Kelly
Please find out what the command is where the error is triggered.
The usage of a terminal in a popup window was made more strict to fix a
bug. To see whether valid cases now run into this error we need to see
where exactly this happens.

--
From "know your smileys":
[:-) Frankenstein's monster

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

M Kelly

unread,
May 14, 2020, 3:14:27 PM5/14/20
to vim_dev
Hi,

Someone else submitted an issue to fzf.vim for this 

I'll try to find the exact cmd that throws this later today.

thx!,
-m

M Kelly

unread,
May 14, 2020, 9:07:46 PM5/14/20
to vim_dev
Hi,

I think it has to do with calling term_start from within a popup.
I'll keep digging.

-m

M Kelly

unread,
May 14, 2020, 9:12:18 PM5/14/20
to vim_dev
Hi again,

I mean you said usage of a terminal in a popup has changed - and I can say this code calls term_start from a popup :-)
But I'm not yet clear on what is wrong with it.  I'll keep digging.

thx,
-m

M Kelly

unread,
May 15, 2020, 8:10:31 AM5/15/20
to vim_dev
Hi,

This issue is resolved in the latest fzf.vim commit d631c76e8d2dd18876a09d2c0919ece1a42a8721.
Thank you to those involved!

-m

Reply all
Reply to author
Forward
0 new messages