Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Race condition when switching to ex-commands
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Oliver  
View profile  
 More options Oct 6 2012, 8:27 am
From: Oliver <oli...@first.in-berlin.de>
Date: Sat, 6 Oct 2012 12:27:57 +0000 (UTC)
Local: Sat, Oct 6 2012 8:27 am
Subject: Race condition when switching to ex-commands
Hello,

this issue has annoyd me since a long time,
I wonder if nobody else has had a problem with it.

When I have opened a file and want to do things like

: set ai

and then type my text,
if I tyoe fast and don't wait until the ":" appears in the status line,
I will be in insert mode and type my text then,
without the command being executed.

Then one of the possible insert commands following the
":" (s, a, i) will be accepted by vim.

So, somehow it looks like the input is not processed
character by character, but somehow by likelyhood.
As if the input buffer is discarded and possibly
only the "a" for append or one of the other edit-commands
is used then.

This problem is annoying especially on slow machines or when
I use syntax on, because this somehow seems to eat up performance
and makes the problem popping up.

So I have to wait until the ":" can be seen,
which means it stops me in my flow.
I would await that what I type is buffered, and processed
one char after the next.

Is this a known issue?
Is it already planned to fix this?
If not: can this please be added to the bug-list?

Thanks in Advance,
     Oliver


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony Mechelynck  
View profile  
 More options Oct 7 2012, 10:52 pm
From: Tony Mechelynck <antoine.mechely...@gmail.com>
Date: Mon, 08 Oct 2012 04:52:38 +0200
Local: Sun, Oct 7 2012 10:52 pm
Subject: Re: Race condition when switching to ex-commands
On 06/10/12 14:27, Oliver wrote:

It is not necessarily a Vim problem. It could be a human problem (typing
so fast you hit beside the colon key), a hardware problem (if the
keyboard fails to see some of the keys you hit) or a firmware or system
software problem (if the keyboard driver in the BIOS ROM or in your OS
kernel fails to see some keyhits). This has happened to me with many
programs (not only Vim) especially under conditions of heavy system
load. For instance it has happened to me to type a full line "blind"
into SeaMonkey Mail before it suddenly appeared. Sometimes a letter was
missing haphazardly here and there.

One possible reason (I imagine) for not seeing a key could be a load so
heavy (maybe due to heavy swapping in and out of virtual memory) that
the OS doesn't get the time to handle a keyboard interrupt before the
next keyboard interrupt arrives, wiping the unhandled one.

Best regards,
Tony.
--
"I'd love to go out with you, but the man on television told me to say
tuned."


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gary Johnson  
View profile  
 More options Oct 8 2012, 2:06 am
From: Gary Johnson <garyj...@spocom.com>
Date: Sun, 7 Oct 2012 23:06:33 -0700
Local: Mon, Oct 8 2012 2:06 am
Subject: Re: Race condition when switching to ex-commands

I'm currently seeing some kind of race involving the termresponse
and some other event(s) that occur during startup.  It think it has
to do with the slowness of the connection between the X server on my
desktop and the machine I work on in the back room.  I don't think
many developers have this sort of setup so I figure it's up to me to
diagnose the problem.  I just haven't had the time to do so.

If you are seeing another manifestation of this same problem, you
might try putting

    set t_RV=

early in your ~/.vimrc and see if that helps.

Regards,
Gary


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
oliver  
View profile  
 More options Oct 8 2012, 7:16 am
From: oliver <oli...@first.in-berlin.de>
Date: Mon, 8 Oct 2012 11:16:15 +0000 (UTC)
Local: Mon, Oct 8 2012 7:16 am
Subject: Re: Race condition when switching to ex-commands
Tony Mechelynck <antoine.mechelynck <at> gmail.com> writes:

If I wait until the ":" is in status bar, it's there.
It is not forgotten.
If I type faster, then  it seems to be forgotten.
If it would be forgotten because of slow system,
it would also be, if I just type this ":" and nothing more.

Normally there is a buffer in the system.
Things don't get lost.
They just be available later.
So I think there is a true vim problem.

Of course other programs may have that problem too...

But... yes, with heavy load the problem is there even harder.
I remember ancient times, when this was not a problem.
Then later I found it occuring only when syntax-highlighting is on.
Now I see it even with syntax off.
Thats what I remember. As far as I rmemeber, in the eraly days I did not have
such problems.

Ciao,
   Oliver


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
oliver  
View profile  
 More options Oct 8 2012, 7:25 am
From: oliver <oli...@first.in-berlin.de>
Date: Mon, 8 Oct 2012 11:20:14 +0000 (UTC)
Local: Mon, Oct 8 2012 7:20 am
Subject: Re: Race condition when switching to ex-commands
Gary Johnson <garyjohn <at> spocom.com> writes:

> On 2012-10-06, Oliver wrote:
[...]
> > So I have to wait until the ":" can be seen,
> > which means it stops me in my flow.
> > I would await that what I type is buffered, and processed
> > one char after the next.

> > Is this a known issue?
> > Is it already planned to fix this?
> > If not: can this please be added to the bug-list?

> I'm currently seeing some kind of race involving the termresponse
> and some other event(s) that occur during startup.

Thank you for exploring the problem.

I hope you can locate and fix it.

It would be of great help.

[...]

> If you are seeing another manifestation of this same problem, you
> might try putting

>     set t_RV=

> early in your ~/.vimrc and see if that helps.

I can try it. Thanks.

Ciao,
   Oliver


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ZyX  
View profile  
 More options Oct 8 2012, 1:05 pm
From: ZyX <zyx....@gmail.com>
Date: Mon, 8 Oct 2012 10:05:45 -0700 (PDT)
Local: Mon, Oct 8 2012 1:05 pm
Subject: Re: Race condition when switching to ex-commands

> If I wait until the ":" is in status bar, it's there.
> It is not forgotten.

Following one of suggested explanations: typing colon and nothing: keyboard interrupt is not overriden.
> If I type faster, then  it seems to be forgotten.

Typing faster: keyboard interrupt is overriden.

> If it would be forgotten because of slow system,
> it would also be, if I just type this ":" and nothing more.

False.

> Normally there is a buffer in the system.
> Things don't get lost.
> They just be available later.
> So I think there is a true vim problem.

Type that fast in terminal without vim (if using terminal vim) or in other GTK app (if using gvim). If you don’t observe the same problem you may suggest it is a true vim problem. I reread your messages and did not see you saying you checked typing *exactly the same characters with roughly the same speed* in other application, only

> Of course other programs may have that problem too...

. Without testing this you have no reasons to blame vim and write here.

If you are using terminal vim, there is another way to check whether it is a vim problem: use screen which may stuff characters to vim at the fastest possible speed (really making them available in stdin at once):

    screen -d -m -S vim-test vim
    screen -S vim-test -p 0 -X stuff ':test-characters'
    screen -r vim-test

. With gvim you may do the same with

    gvim --echo-wid | read DUMMY VID
    xdotool type --delay 1ms :test-characters

(you may use xdotool with normal vim as well if you want, it is universal. But you then can’t distinguish between situation “terminal emulator looses characters” and “vim looses characters”, screen provides its own terminal emulator that does not receive keys from X).

I have never seen vim loosing anything, neither did my system (most of the time heavy load here == heavy IO load, rarely 5-or-more-threaded (4 cores, 4+1 as suggested by handbook, sometimes simultaneous installs) compilation of something (rarely as it is less threaded unless I want the software right now)).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
oliver  
View profile  
 More options Oct 8 2012, 1:51 pm
From: oliver <oli...@first.in-berlin.de>
Date: Mon, 8 Oct 2012 17:50:42 +0000 (UTC)
Local: Mon, Oct 8 2012 1:50 pm
Subject: Re: Race condition when switching to ex-commands
ZyX <zyx.vim <at> gmail.com> writes:

> > If I wait until the ":" is in status bar, it's there.
> > It is not forgotten.
> Following one of suggested explanations: typing colon and nothing: keyboard

interrupt is not overriden.
> > If I type faster, then  it seems to be forgotten.
> Typing faster: keyboard interrupt is overriden.

> > If it would be forgotten because of slow system,
> > it would also be, if I just type this ":" and nothing more.
> False.

> > Normally there is a buffer in the system.
> > Things don't get lost.
> > They just be available later.
> > So I think there is a true vim problem.
> Type that fast in terminal without vim (if using terminal vim) or in other GTK

app (if using gvim). If you
> don’t observe the same problem you may suggest it is a true vim problem. I

reread your messages and did not
> see you saying you checked typing *exactly the same characters with roughly

the same speed* in other

> application, only

> > Of course other programs may have that problem too...

> . Without testing this you have no reasons to blame vim and write here.

I never experienced something like that outside vim.

To follow the "testing procedure" I just tested it again
and the result is: this does not happen in my shell it does only happen when
using vim.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
oliver  
View profile  
 More options Oct 8 2012, 2:00 pm
From: oliver <oli...@first.in-berlin.de>
Date: Mon, 8 Oct 2012 18:00:09 +0000 (UTC)
Local: Mon, Oct 8 2012 2:00 pm
Subject: Re: Race condition when switching to ex-commands
The problem does not occur on any other
situations with vim.
Only when switching temporarily to ex-mode with ":".
In any other situation no characters are missing,
even under heavy load.Only when the ":" is involved.

Looks like ":" triggers a sleep-command, eats up
some chars and then does go to insert mode.

When going diretcly to insert mode, nothing is missing.

I doubt that thois specific behaviour is caused by
some other reasons than vim.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ZyX  
View profile   Translate to Translated (View Original)
 More options Oct 8 2012, 2:52 pm
From: ZyX <zyx....@gmail.com>
Date: Mon, 8 Oct 2012 11:52:26 -0700 (PDT)
Local: Mon, Oct 8 2012 2:52 pm
Subject: Re: Race condition when switching to ex-commands

понедельник, 8 октября 2012 г., 22:00:44 UTC+4 пользователь oliver написал:

> The problem does not occur on any other
> situations with vim.
> Only when switching temporarily to ex-mode with ":".
> In any other situation no characters are missing,
> even under heavy load.Only when the ":" is involved.

> Looks like ":" triggers a sleep-command, eats up
> some chars and then does go to insert mode.

> When going diretcly to insert mode, nothing is missing.

> I doubt that thois specific behaviour is caused by
> some other reasons than vim.

What about screen/xdotool tests? And what you see when you run

    :verbose map :<CR>
    :cmap<CR> (shows all command-mode mappings, seek for characters in test-characters)
    :debug normal :test-characters<CR>
    s<CR>
    <CR>
    <CR>
    ...
? (Maybe it is problem with some plugin, it should show up here.)

Does it happen when you type the same thing inside vim launched without configuration:

    vim -u NONE
(it may be not plugin problem, but a problem with a set of specific options.)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jürgen Krämer  
View profile  
 More options Oct 9 2012, 12:50 am
From: Jürgen Krämer <jottka...@googlemail.com>
Date: Tue, 09 Oct 2012 06:50:01 +0200
Local: Tues, Oct 9 2012 12:50 am
Subject: Re: Race condition when switching to ex-commands

Hi,

Oliver wrote:

> this issue has annoyd me since a long time,
> I wonder if nobody else has had a problem with it.

> When I have opened a file and want to do things like

> : set ai

> and then type my text,
> if I tyoe fast and don't wait until the ":" appears in the status line,
> I will be in insert mode and type my text then,
> without the command being executed.

you don't have defined a normal mode mapping for the colon, do you?

Regards,
J rgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »