Charles Campbell wrote:
> I'm not knowingly using lambdas. I'm trying to debug some netrw code and
> I keep ending up with the following error:
>
> ." is a directory
> Error detected while processing VimEnter Autocommands for "*"..function
> <SNR>72_VimEnter[15]..<lambda>1[1]..<SNR>72_LocalBrowse[32]..netrw#LocalBrowseCheck:
> line 26:
> E171: Missing :endif
> Press ENTER or type command to continue
>
> There are no mismatched if-endif s in netrwPlugin.vim (LocalBrowse). The
> error appears to occur early in netrw#LocalBrowseCheck; early enough
> that I can visuallly verify that there aren't any mismatched
> if-elseif-endifs there, either. I have Decho-style debugging on in
> netrw.vim but not in netrwPlugin.vim.
>
> It appears that the message is incorrect. By putting Decho()s into the
> code, I've narrowed down where the error appears to occur: redir @a .
> The command I'm interested in hasn't even run yet (ls!). Any hints?
I suppose this is with a locally modified autoload/netrw.vim.
With the current version I don't see any problem.
When loading a script file the function lines are read to find the
matching :endfunc, without fully parsing them.
I would suggest to delete lines until the problem goes away.
That should pinpoint the problem.
I can't predict it is an actual problem with perhaps a confusing error
message, or a yet undiscovered bug.
--
hundred-and-one symptoms of being an internet addict:
157. You fum through a magazine, you first check to see if it has a web
address.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202107152102.16FL2fPn2001140%40masaka.moolenaar.net.