On Thu, Oct 24, 2019 at 3:21 AM Sihera Andre <[email protected]> wrote: > > Hello all, > > Apologies for posting to the mailing list before filing a bug report > but I just wanted to make sure that I was facing a bug and not a silly > build error of some kind.
Bug reports come to the mailing list anyway, so no problem. > > The problem is that while editing scripts (e.g., .bashrc), or anything > where the file type is set to "sh", when I cursor onto or off any kind > of character that comes in pairs (bracket, parenthesis, braces, etc.) > the following error occurs: > > Error detected while processing function <SNR>13_Highlight_Matching_Pair: > line 97: > E475: Invalid argument: 0 > > I have traced this to: > > /usr/local/share/vim/plugin/matchparen.vim > > and this code: > > try > let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip, > stopline, timeout) > catch /E118/ > > Why would this be erroring? Does it look like a build error, a bug in > VIM, or a bug in the run-time? Any comments would be welcome because > this problem makes editing scripts impossible (currently, I've knocked > the offending module out by renaming it so it doesn't get loaded). > > Background behind this situation and other System information below. > > Thanks in advance, > > Andre. > > > [ SYSTEM INFO ] > > I have just performed upgrades of my Ubuntu systems from 15.04 to > 18.10. This has meant upgrading VIM from the latest build at the time > 7.4.XXX to 8.1.2186 (sorry, previous version deleted so can't provide > the precise version number). The vim runtime appears to be 8.0.1766. Runtime files ought to be of a version as close as possible to the executable with which they are used. Using 8.0 runtime files with a 8.1 executabe might work — or it might not. You might want to compile your own Vim, it should not interfere with your distro's (because the executable normally gets put in /usr/opt/bin/ which is early in the $PATH). See: - http://vim.fandom.com/wiki/Getting_the_Vim_source_with_Mercurial - On Debian-like distributions of Linux, "apt-get build-dep vim-gui" (or something similar, I never used that family of distros, I only know this command from hearsay) should install the necessary dependency packages to build Vim. - http://users.skynet.be/antoine.mechelynck/vim/compunix.htm > > SDK packages installed were: > > libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev > libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev > libxpm-dev libxt-dev > > 8.1.2186 was built locally with "configure --with-features=huge".r > Hm, and what is the output of the ":version" command on that executable? (See ":help :redir" about how to capture it.) Best regards, Tony. -- -- 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/CAJkCKXs8HhqS1i0K-v4zT4eUuHgpYMOF2hPYphE2M1cXGa8Z4Q%40mail.gmail.com.
