Bug fix : hidden command line after snippet rendering.

0 views
Skip to first unread message

dr-dr xp

unread,
Sep 27, 2009, 9:23:25 AM9/27/09
to xptem...@googlegroups.com
committed versions in /src and /dist

Thank you guys helping on tracking this bug. ^0^

--
要了几天饱饭就不记得西北风啥味了

C. Coutinho

unread,
Sep 27, 2009, 10:52:09 AM9/27/09
to xptem...@googlegroups.com
On Sun, Sep 27, 2009 at 09:23:25PM +0800, dr-dr xp wrote:
> committed versions in /src and /dist
>
> Thank you guys helping on tracking this bug. ^0^

Works great.

Cheers,

dr-dr xp

unread,
Sep 27, 2009, 11:00:25 AM9/27/09
to xptem...@googlegroups.com
: D
--
要了几天饱饭就不记得西北风啥味了

tyru

unread,
Sep 27, 2009, 12:08:50 PM9/27/09
to xptem...@googlegroups.com
It works well too.
Thanks, drdr.

2009/9/27 dr-dr xp <drd...@gmail.com>:

dr-dr xp

unread,
Sep 27, 2009, 12:27:05 PM9/27/09
to xptem...@googlegroups.com
: D.

2009/9/28 tyru <tyru...@gmail.com>



--
要了几天饱饭就不记得西北风啥味了

Vincent B.

unread,
Sep 27, 2009, 4:10:08 PM9/27/09
to xptemplate
Yes, It's working really well now, congratulations. By curiosity, what
was causing this nasty bug?

On 27 sep, 18:27, dr-dr xp <drdr...@gmail.com> wrote:
> : D.
>
> 2009/9/28 tyru <tyru....@gmail.com>
>
>
>
>
>
> > It works well too.
> > Thanks, drdr.
>
> > 2009/9/27 dr-dr xp <drdr...@gmail.com>:

dr-dr xp

unread,
Sep 27, 2009, 10:49:56 PM9/27/09
to xptem...@googlegroups.com
‘silent some-command' throws an error but it is caught by try-catch. It seems like that vim keeps staying in "silent mode".


2009/9/28 Vincent B. <twin...@gmail.com>



--
要了几天饱饭就不记得西北风啥味了

tyru

unread,
Sep 29, 2009, 10:59:25 AM9/29/09
to xptem...@googlegroups.com
Very slow response but I could reproduce the bug.

----- code -----
func! s:foo()
throw 'exception'
endfunc

func! Foo()
try
silent s:foo()
catch
" nop.
endtry
endfunc
----- code -----

":call Foo()" makes Vim stay 'silent mode' as you said.
you can decide whether you send the bug report to vim_dev group as
'hidden command line bug' with this code, or not :)

2009/9/28 dr-dr xp <drd...@gmail.com>:

dr-dr xp

unread,
Sep 29, 2009, 11:56:39 AM9/29/09
to xptem...@googlegroups.com
I didn't get this bug, except within a (French?) version of vim Vincent sent me. And it is not the latest patched version.

Not sure if it's been fixed in the latest version.


2009/9/29 tyru <tyru...@gmail.com>



--
要了几天饱饭就不记得西北风啥味了

Vincent B.

unread,
Sep 29, 2009, 5:16:43 PM9/29/09
to xptemplate
Well the version I've directed you to is a "standard" vim compiled
with the latest patches from the vim mailing list, there's no language
specific bits into it. I've tested the test against the latest vim's
build (7.2.264) and I still get the bug, it may be worth reporting it
to vim_dev .

If nobody wanna report it, I can do it

On 29 sep, 17:56, dr-dr xp <drdr...@gmail.com> wrote:
> I didn't get this bug, except within a (French?) version of vim Vincent sent
> me. And it is not the latest patched version.
>
> Not sure if it's been fixed in the latest version.
>
> 2009/9/29 tyru <tyru....@gmail.com>
>
>
>
>
>
> > Very slow response but I could reproduce the bug.
>
> > ----- code -----
> > func! s:foo()
> > throw 'exception'
> > endfunc
>
> > func! Foo()
> > try
> > silent s:foo()
> > catch
> > " nop.
> > endtry
> > endfunc
> > ----- code -----
>
> > ":call Foo()" makes Vim stay 'silent mode' as you said.
> > you can decide whether you send the bug report to vim_dev group as
> > 'hidden command line bug' with this code, or not :)
>
> > 2009/9/28 dr-dr xp <drdr...@gmail.com>:
> > > 'silent some-command' throws an error but it is caught by try-catch. It
> > > seems like that vim keeps staying in "silent mode".
>
> > > 2009/9/28 Vincent B. <twins...@gmail.com>

Vincent B.

unread,
Sep 29, 2009, 5:18:01 PM9/29/09
to xptemplate
Woops, I just saw dr-dr xp question on vim-dev :]

tyru

unread,
Sep 29, 2009, 6:16:47 PM9/29/09
to xptem...@googlegroups.com
I'm seeing this.
http://groups.google.com/group/vim_dev/browse_thread/thread/331e0c8baeeaef78?hl=en

as Andy Wokula says, ":silent call s:foo()" is right vim script syntax. sorry...
and I found that ":silent call s:foo()" does NOT cause hidden command
line problem.
so what Andy Wokula says is certainly right but certainly there is
this bug. as seeing this group.
to ensure that the bug certainly exists, showing one of the related
posts in xptemplate is good idea, maybe...

related posts in xptemplate google group:
http://groups.google.com/group/xptemplate/browse_thread/thread/a55134d70ef3f29c?hl=en
http://groups.google.com/group/xptemplate/browse_thread/thread/8417ecb6402ee53d?hl=en


I'm finding the another atom code of reproducing the bug...


2009/9/30 Vincent B. <twin...@gmail.com>:

tyru

unread,
Sep 29, 2009, 6:38:08 PM9/29/09
to xptem...@googlegroups.com
silent call s:foo() == 1
also causes this problem but this is also not right vim script, though...

2009/9/30 tyru <tyru...@gmail.com>:

dr-dr xp

unread,
Sep 29, 2009, 11:28:24 PM9/29/09
to xptem...@googlegroups.com
Maybe error from 'throw' statement does not cause this bug. but a real vim error does.
I my script, I was trying to unmap a key stroke in that didn't exist in silent mode.


2009/9/30 tyru <tyru...@gmail.com>



--
要了几天饱饭就不记得西北风啥味了

dr-dr xp

unread,
Sep 29, 2009, 11:37:45 PM9/29/09
to xptem...@googlegroups.com
In my Windows Chinese-simplified I installed this version but the menus are all garbled characters. So I made a guess :)

2009/9/30 Vincent B. <twin...@gmail.com>



--
要了几天饱饭就不记得西北风啥味了

tyru

unread,
Sep 30, 2009, 12:25:16 AM9/30/09
to xptem...@googlegroups.com
> Maybe error from 'throw' statement does not cause this bug. but a real vim error does.
> I my script, I was trying to unmap a key stroke in that didn't exist in silent mode.

oh, I got it.
and I understood why "silent s:foo()" causes this bug.
because that is not valid statement, that makes Vim stay 'silent mode'.
I see...

---- code ----
func! s:foo(arg)
foobarbaz
endfunc

func! Foo()
try
silent call s:foo()
catch
" nop.
endtry
endfunc
---- code ----

this successfully causes hidden command line bug :)


2009/9/30 dr-dr xp <drd...@gmail.com>:

tyru

unread,
Sep 30, 2009, 12:27:52 AM9/30/09
to xptem...@googlegroups.com
> this successfully causes hidden command line bug :)
if command 'foobarbaz' is not defined.

2009/9/30 tyru <tyru...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages