View Issue Details

IDProjectCategoryView StatusLast Update
0003327Far ManagerEditorpublic2016-10-13 20:42
ReporterNightRoman Assigned Tozg  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version3.0 
Summary0003327: ECTL_REDRAW does not redraw during processing
DescriptionPlugin FarNet, module PowerShellFar.

- open some file in the editor, e.g. a new empty
- F11 \ PowerShellFar \ Invoke commands
- paste the following command:

0..9 | %{$Far.Editor.InsertText($_); Start-Sleep 1; $Far.Editor.Redraw()}

- press Enter

As a result, in about 10 seconds the editor shows the added text "0123456789".

But it is expected that after each elapsed second an added digit is shown in the editor.

What is "broken" from a user point of view. In PowerShellFar interactive editor "slow" commands with some output do not show anything, as it used to be. It looks like a command hangs. In fact, it works and outputs text to the editor, it is just not shown until the command is completed.

This is a regression, so I consider the severity major. You may change it to whatever you want.
TagsNo tags attached.
Build4823

Activities

shmuel

2016-10-13 11:55

developer   bugnote:0014902

This is a regression

NightRoman
Could you tell then a Far build number that did that properly?

NightRoman

2016-10-13 12:35

reporter   bugnote:0014903

@shmuel, thank you for your interest. Unfortunately, I cannot tell when it happened, presumably quite a while ago.

I am rather confident that it used to work. And some of my code has indicators of this fact.

For example,
https://github.com/nightroman/FarNet/blob/master/PowerShellFar/OutputWriters.cs#L346

EditorOutputWriter2 writes output to the editor and uses Stopwatch in order to avoid too frequent Redraw() on many fast writes. Without Stopwatch it worked much slower. That means that Redraw() did actually work.

shmuel

2016-10-13 13:13

developer   bugnote:0014904

Unfortunately, I cannot tell when it happened

NightRoman
It happened in 4097 or 4098 (I don't have 4097 available to tell for sure).

zg

2016-10-13 15:18

developer   bugnote:0014906

4823.

NightRoman

2016-10-13 20:12

reporter   bugnote:0014909

4823 works as expected

Issue History

Date Modified Username Field Change
2016-10-12 20:19 NightRoman New Issue
2016-10-13 11:55 shmuel Note Added: 0014902
2016-10-13 12:35 NightRoman Note Added: 0014903
2016-10-13 13:13 shmuel Note Added: 0014904
2016-10-13 15:18 zg Note Added: 0014906
2016-10-13 20:12 NightRoman Note Added: 0014909
2016-10-13 20:42 zg Build => 4823
2016-10-13 20:42 zg Status new => closed
2016-10-13 20:42 zg Assigned To => zg
2016-10-13 20:42 zg Resolution open => fixed