vim9 script "Function is not compiled"

164 views
Skip to first unread message

Christian Brabandt

unread,
May 8, 2021, 7:42:31 AM5/8/21
to vim...@vim.org
While converting vim-airline, I stumbled over the above error message
several times. Usually functions are not so short, that it is quite
obvious, why a function has not been compiled yet. Can we at least
mention, what line/statement caused this error message? Otherwise one
has to go line by line commenting out why this happens.


Best,
Christian
--
Zu jedem komplexen Problem gibt es eine absolut simple und
phantastisch einfach auszudrückende Lösung, die vollkommen
falsch ist.

Bram Moolenaar

unread,
May 8, 2021, 8:36:03 AM5/8/21
to vim...@googlegroups.com, Christian Brabandt, vim...@vim.org

Christian wrote:

> While converting vim-airline, I stumbled over the above error message
> several times. Usually functions are not so short, that it is quite
> obvious, why a function has not been compiled yet. Can we at least
> mention, what line/statement caused this error message? Otherwise one
> has to go line by line commenting out why this happens.

You only get this error when something went wrong during compilation
that wasn't caught where it happened. You can call that a bug.
Please find out what line triggered the error, so we can find the place
where to give a better error message.

--
hundred-and-one symptoms of being an internet addict:
246. You use up your free 1 Gbyte in two days.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages