View Issue Details

IDProjectCategoryView StatusLast Update
0025305LazarusIDEpublic2013-11-11 23:52
ReporterDo-wan KimAssigned ToMartin Friebe 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformx86OSWindowsOS Version7
Product Version1.3 (SVN)Product Build43419 
Target Version1.4Fixed in Version1.4 
Summary0025305: code editor lockup.
Descriptionbelow text to copy and paste code editor, lockup and no response.

procedure TForm1.EditExportSelExecute(Sender: TObject);
var
  i,j: Integer;
  newPo : TPoList;
  itemp,etemp:TPoItem;
begin
  if Assigned(mPo) then begin
    //SaveDialogExport.FileName:=ExtractFileName(FileSaveAs1.Dialog.FileName);
    if SaveDialogExport.Execute then
      if ListBoxPO.Count>0 then begin
        newPo:=TPoList.Create;
        try
          with newPo.AddItem do begin
            Add('msgid ""');
            Add('msgstr ""');
            Add('"Export Selections from : '+ExtractFileName(FileOpen1.Dialog.FileName)+'"');
          end;

          for i:=0 to ListBoxPO.Count-1 do begin
            itemp:=TPoItem(ListBoxPO.Items.Objects[i]);
            if itemp<>nil then
              if ListBoxPO.Selected[i] then begin
                etemp:=newPo.AddItem;
                //try
                  if itemp.Count>0 then
                    for j:=0 to itemp.Count-1 do begin
                      etemp.Add(itemp.StrItem[j]);
                    end;
                (*
                except
                  newPo.Delete(newPo.IndexOf(etemp));
                end;
                *)
              end;
          end;
          try
            newPo.Save(SaveDialogExport.FileName);
            MRUManager1.Add(SaveDialogExport.FileName,0);
          except
            on e:exception do ShowMessage(e.Message);
          end;
        finally
          newPo.Free;
        end;
      end;
  end;
end;
Steps To Reproducejust copy & paste code editor above text.
TagsNo tags attached.
Fixed in Revision43421
LazTarget1.4
Widgetset
Attached Files

Activities

Juha Manninen

2013-11-11 08:33

developer   ~0071257

Last edited: 2013-11-11 09:48

View 2 revisions

Indeed. It is caused exactly by r43419.

[Edit] I have used r43418 now for 2 hours and it also froze while editing a different code.
I must test with still earlier version.

Martin Friebe

2013-11-11 13:06

manager   ~0071260

please attach editoroptions.xml

It does not lock up on my IDE

Also Paste into an existing unit (e.g. new project / unit1), leaving the rest of the unit in place? or replace all?

Martin Friebe

2013-11-11 13:56

manager   ~0071261

reproduced

Martin Friebe

2013-11-11 14:02

manager   ~0071262

Missed one file in previous commit

fixed

Issue History

Date Modified Username Field Change
2013-11-11 05:53 Do-wan Kim New Issue
2013-11-11 08:33 Juha Manninen LazTarget => -
2013-11-11 08:33 Juha Manninen Note Added: 0071257
2013-11-11 08:33 Juha Manninen Assigned To => Martin Friebe
2013-11-11 08:33 Juha Manninen Status new => confirmed
2013-11-11 09:48 Juha Manninen Note Edited: 0071257 View Revisions
2013-11-11 13:06 Martin Friebe LazTarget - => 1.4
2013-11-11 13:06 Martin Friebe Note Added: 0071260
2013-11-11 13:06 Martin Friebe Status confirmed => feedback
2013-11-11 13:56 Martin Friebe Note Added: 0071261
2013-11-11 13:56 Martin Friebe Status feedback => assigned
2013-11-11 14:02 Martin Friebe Fixed in Revision => 43421
2013-11-11 14:02 Martin Friebe Note Added: 0071262
2013-11-11 14:02 Martin Friebe Status assigned => resolved
2013-11-11 14:02 Martin Friebe Fixed in Version => 1.4
2013-11-11 14:02 Martin Friebe Resolution open => fixed
2013-11-11 14:02 Martin Friebe Target Version => 1.4
2013-11-11 23:52 Do-wan Kim Status resolved => closed