E685: Internal error: f_empty(UNKNOWN)

9 views
Skip to first unread message

Dominique Pellé

unread,
Feb 29, 2020, 6:05:44 AM2/29/20
to vim_dev
Hi

This command gives an internal error:

:echo empty(test_void())
E685: Internal error: f_empty(UNKNOWN)
1
Press ENTER or type command to continue

Same kind of internal error at least for:

:echo empty(test_unknown())
:echo type(test_void())
:echo type(test_unknown())

Internal errors should never happen. But I suppose
that this use of test_void() or test_unknown() does
not make sense. And that it should not be possible
to reproduce this internal error without calling test_void()
or test_unknown(). Correct? or should we fix anything here?

Regards
Dominique

Bram Moolenaar

unread,
Feb 29, 2020, 7:41:46 AM2/29/20
to vim...@googlegroups.com, Dominique Pellé
Good point. I think it's better to give this error without calling
abort(). Otherwise we can't even test how they work.

I'll make a patch. Are there any others?

--
Don't drink and drive. You might hit a bump and spill your beer.

/// 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 ///
Reply all
Reply to author
Forward
0 new messages