Re: Re : E315: ml_get: invalid lnum
Dimitar DIMITROV wrote: Dimitar DIMITROV wrote: Hi, 1. :help 2. 10GVjesc 3. :ene 4. Use MiddleMouse to paste the text but don't do it above line 1 5. u 6. Use MiddleMouse to paste the text and do it above line 1 7. ddu^R Error message: E315: ml_get: invalid lnum: 3 E315: ml_get: invalid lnum: 3 I can't reproduce it. What would be useful, is for you to put a breakpoint in a debugger at memline.c:2452 where E315 happens and send us the stack. I suspect that a plugin has an autocommand which could trigger this. Which plugins are you using? What autocommands are in your ~/.vimrc? How about also enabling plugins one at at time to see which once triggers the bug. -- Dominique Thanks for the suggestions. I was finally able to isolate the problem. The above steps will raise the error if one starts like this (see below) AND the MiddleMouse clicks are NOT above column one: gvim.exe +se nocp ve=all nosol -u NONE -U NONE I love ve=all but it seems to be a bit fragile Thanks Dimitar. Just to confirm that I can now reproduce it too with both Vim-7.2.446 and Vim-7.3e BETA (2498:3c51864309bc) using your indications. Some info with gdb: (gdb) br memline.c:2452 Breakpoint 1 at 0x80f9704: file memline.c, line 2452. (gdb) run Starting program: /home/pel/pristine/vim/src/vim -f -g +se\ nocp\ ve=all\ nosol -u NONE -U NONE [Thread debugging using libthread_db enabled] Breakpoint 1, ml_get_buf (buf=0x82bbe48, lnum=3, will_change=0) at memline.c:2452 2452EMSGN(_(E315: ml_get: invalid lnum: %ld), lnum); (gdb) list memline.c:2452 2447if (recursive == 0) 2448{ 2449/* Avoid giving this message for a recursive call, may happen when 2450 * the GUI redraws part of the text. */ 2451++recursive; 2452EMSGN(_(E315: ml_get: invalid lnum: %ld), lnum); 2453--recursive; 2454} 2455errorret: 2456STRCPY(IObuff, ???); (gdb) bt #0 ml_get_buf (buf=0x82bbe48, lnum=3, will_change=0) at memline.c:2452 #1 0x081161f4 in coladvance2 (pos=0x82b0684, addspaces=0, finetune=1, wcol=41) at misc2.c:159 #2 0x0811616a in getvpos (pos=0x82b0684, wcol=41) at misc2.c:129 #3 0x081160e6 in coladvance (wcol=41) at misc2.c:106 #4 0x081c3b37 in u_undoredo (undo=0) at undo.c:2599 #5 0x081c29e1 in u_doit (startcount=1) at undo.c:2004 #6 0x081c2869 in u_redo (count=1) at undo.c:1941 #7 0x08132184 in nv_redo (cap=0xb16c) at normal.c:8371 #8 0x081268fc in normal_cmd (oap=0xb22c, toplevel=1) at normal.c:1190 #9 0x080e8350 in main_loop (cmdwin=0, noexmode=0) at main.c:1260 #10 0x080e7d85 in main (argc=8, argv=0xb474) at main.c:965 (gdb) p lnum $1 = 3 (gdb) p buf-b_ml.ml_line_count $2 = 2 -- Dominique -- 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
Re: Re : E315: ml_get: invalid lnum
Dimitar DIMITROV wrote: Hi, 1. :help 2. 10GVjesc 3. :ene 4. Use MiddleMouse to paste the text but don't do it above line 1 5. u 6. Use MiddleMouse to paste the text and do it above line 1 7. ddu^R Error message: E315: ml_get: invalid lnum: 3 E315: ml_get: invalid lnum: 3 I can't reproduce it. What would be useful, is for you to put a breakpoint in a debugger at memline.c:2452 where E315 happens and send us the stack. I suspect that a plugin has an autocommand which could trigger this. Which plugins are you using? What autocommands are in your ~/.vimrc? How about also enabling plugins one at at time to see which once triggers the bug. -- Dominique Thanks for the suggestions. I was finally able to isolate the problem. The above steps will raise the error if one starts like this (see below) AND the MiddleMouse clicks are NOT above column one: gvim.exe +se nocp ve=all nosol -u NONE -U NONE This is fixed now. I love ve=all but it seems to be a bit fragile Not many people use it, and the cursor being in an unusual place may run into problems most people don't. We'll have to fix problems one by one. When you report a problem, do mention your 'virtualedit' setting, it may be required for reproducing a problem. -- For a moment, nothing happened. Then, after a second or so, nothing continued to happen. -- Douglas Adams, The Hitchhiker's Guide to the Galaxy /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\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
Re: Re : E315: ml_get: invalid lnum
On 6 August 2010 10:56, Dimitar DIMITROV mitk...@yahoo.fr wrote: I hadn't. Now I did and there is a different error. At the end we still should have one line but all disappears. Here is how you can reproduce it: gvim.exe -u NONE -U NONE :help yy ^w^w p u P j dd u ^r This is not an error. This is due to Vim being run in Vi-compatible mode. Try removing 'u' from 'cpoptions'. -- Regards, Lech Lorens -- 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
Re : Re : E315: ml_get: invalid lnum
Right... Just tried: gvim.exe +se nocp -u NONE -U NONE None of the errors is triggered Cheers De : Lech Lorens lech.lor...@gmail.com À : vim_dev@googlegroups.com Envoyé le : Ven 6 août 2010, 11h 05min 59s Objet : Re: Re : E315: ml_get: invalid lnum On 6 August 2010 10:56, Dimitar DIMITROV mitk...@yahoo.fr wrote: I hadn't. Now I did and there is a different error. At the end we still should have one line but all disappears. Here is how you can reproduce it: gvim.exe -u NONE -U NONE :help yy ^w^w p u P j dd u ^r This is not an error. This is due to Vim being run in Vi-compatible mode. Try removing 'u' from 'cpoptions'. -- Regards, Lech Lorens -- 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 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
Re: Re : E315: ml_get: invalid lnum
Dimitar Dimitrov wrote: 1. :help 2. 10GVjesc 3. :ene 4. Use MiddleMouse to paste the text but don't do it above line 1 5. u 6. Use MiddleMouse to paste the text and do it above line 1 7. ddu^R Error message: E315: ml_get: invalid lnum: 3 E315: ml_get: invalid lnum: 3 :version VIM - Vi IMproved 7.3d BETA (2010 Aug 4, compiled Aug 4 2010 18:38:10) MS-Windows 32-bit GUI version with OLE support I don't see the error. When doing dd, which line are you deleting? The last one Did you start with vim -u NONE? I hadn't. Now I did and there is a different error. At the end we still should have one line but all disappears. Here is how you can reproduce it: gvim.exe -u NONE -U NONE :help yy ^w^w p u P j dd u ^r As someone already mentioned, that's intended in compatible mode. Any way you can reproduce the ml_get error without including all your plugins and vimrc file? -- Q: What is the difference betwee open-source and commercial software? A: If you have a problem with commercial software you can call a phone number and they will tell you it might be solved in a future version. For open-source software there isn't a phone number to call, but you get the solution within a day. /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\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