qqzsxyz / vimwiki

Automatically exported from code.google.com/p/vimwiki
0 stars 0 forks source link

"E475: Invalid argument: VimwikiLinkRest contained..." when starting vimwiki #346

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open vim
2. try to start a new vimwiki using \ww

What is the expected output? What do you see instead?
Expect vimwiki to start with a blank wiki. However, I get the following error:

E475: Invalid argument: VimwikiLinkRest contained `\%(///\=[^/ 
\t]\+/\)\zs\S\{12,}\ze\%([/#?]\w\|\S\{15}\)` cchar=~  contained transparent 
contains=NONE

What version of the product are you using? On what operating system?
vimwiki-2-0-stu, vim version 7.2.445, Debian squeeze (stable)

Please provide any additional information below.
Commenting out lines 332-334 of .vim/syntax/vimwiki.vim allows vimwiki to work, 
though presumably without shorting long URLs.  

Original issue reported on code.google.com by johnlawr...@gmail.com on 18 Jun 2012 at 9:30

GoogleCodeExporter commented 8 years ago
Hmmm ... this is puzzling.  Looks like a settings issue, an install issue, or a 
conflict with another plugin.

What settings/options have you set that relate to vimwiki?

Are there any old vimwiki files, from previous installations, in your runtime 
directory (~/.vim/)?

Can you reproduce this on another machine?  Or without any other plugins?  One 
way to test this involves temporarily moving ~/.vim to ~/vim-backup, and 
re-installing vimwiki in a blank ~/.vim/ directory?  (Be careful not to lose 
your .vim/ setup during these changes)!!

Original comment by stu.andrews on 19 Jun 2012 at 12:11

GoogleCodeExporter commented 8 years ago
Vim 7.2 has no conceal feature as far as I remember.

See Issue 256

Original comment by habamax on 19 Jun 2012 at 8:28

GoogleCodeExporter commented 8 years ago
Thanks for the suggestions! I have tried on another machine with the same 
software versions (Debian squeeze, vim 7.2.445) with both a blank ~/.vim/ 
directory and a minimal .vimrc (containing only the three lines on the 
prerequisites page (set nocompatible, filetype plugin on, syntax on)).

Unfortunately I am still getting the same error. I had noticed issue 256 though 
assumed as the error I am getting doesn't mention 'conceal' it was a different 
thing?

Original comment by johnlawr...@gmail.com on 19 Jun 2012 at 10:04

GoogleCodeExporter commented 8 years ago
It looks like regression bug for me. With 7.2 vimwiki should work without 
concealed parts of text.

Original comment by habamax on 20 Jun 2012 at 7:08

GoogleCodeExporter commented 8 years ago
Could you remove 'contained' from line 332?
It should look like this:
execute 'syn match VimwikiLinkRest `\%(///\=[^/ \t]\+/\)\zs\S\{'

and test if it works for you without errors?

Original comment by habamax on 24 Jun 2012 at 6:45

GoogleCodeExporter commented 8 years ago
Still pretty much the same:

E475: Invalid argument: VimwikiLinkRest `\%(///\=[^/ \t]\+/\)\zs\S\{12,}\ze\%([/
#?]\w\|\S\{15}\)` cchar=~  contained transparent contains=NONE

Original comment by johnlawr...@gmail.com on 24 Jun 2012 at 10:24

GoogleCodeExporter commented 8 years ago
Could you remove 'cchar=~' and check if error is gone?

Original comment by habamax on 25 Jun 2012 at 3:47

GoogleCodeExporter commented 8 years ago
Hello, running in the same issue here, debian squeeze too.

Seems to be working without the error if I remove 'cchar=~'. 

Original comment by morel....@gmail.com on 25 Jun 2012 at 7:49

GoogleCodeExporter commented 8 years ago
Ok, thx!

Original comment by habamax on 25 Jun 2012 at 7:51

GoogleCodeExporter commented 8 years ago
Fixed with Revision: ae3265cdcea4 .
Guys, could you pls check if it works now?

Original comment by habamax on 27 Jun 2012 at 6:34

GoogleCodeExporter commented 8 years ago
Works fine for me with the revised version. Thanks!

Original comment by johnlawr...@gmail.com on 28 Jun 2012 at 3:32

GoogleCodeExporter commented 8 years ago

Original comment by habamax on 29 Jun 2012 at 4:19