Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-06

Lazarus adds two empty lines after new setters

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vojtěch Čihák

Hello,
?
I've a little issue. It happens only in Lazarus 1.3 (Linux+Qt). In 1.2.0 (Wine) it is OK. ?
When I define a new property with setter and hit Ctrl+Shift+C, Lazarus adds a setter to implementation + two empty lines. Should be only one. ?
Is it something wrong with Lazarus or only with my local settings? I want to be sure before I open a issue on mantis. ?
Thanks
?
Vojt?ch a.k.a. Blaazen
?
PS: Demo code where you can test:
?
unit Unit1;
{$mode objfpc}{$H+}

interface
uses
 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs;
type
 { TMyC }
 TMyC = class(TCustomControl)
 private
 public
 //property MyO: Integer read FMyO write SetMyO; //Ctrl+Shift+C
 property MyP: Integer read FMyP write SetMyP; //Ctrl+Shift+C
 end;
 { TForm1 }
 TForm1 = class(TForm)
 private
 { private declarations }
 public
 { public declarations }
 procedure Q;
 procedure W;
 end;
var
 Form1: TForm1;
implementation
{$R *.lfm}

end. ?
?

Reply by email

zeljko
to Vojtěch Čihák
Vojt?ch ?ih?k wrote 7 lines
Hello, I've a little issue. It happens only in Lazarus 1.3 (Linux+Qt). In 1.2.0 (Wine) it is OK. When I define a new property with setter and hit Ctrl+Shift+C, Lazarus adds a setter to implementation + two empty lines. Should be only one. Is it something wrong with Lazarus or only with my local settings? I want to be sure before I open a issue on mantis.

That works fine here: lazarus 1.3 + Qt on linux.

zeljko

Reply by email

Vojtěch Čihák
to Vojtěch Čihák: ? I've a little issue. It happens only in Lazarus 1.3 (Linux+Qt). In 1.2.0 (Wine) it is…

Hello,
?
I found revision that broke it:
?
Revision 42177 - Directory Listing
Modified Mon Jul 22 22:08:53 2013 UTC (10 months, 2 weeks ago) by mattias codetools: started ability to load code completion snippets from an xml files, thanks to Don Ziesig, patch 15922 ?
I took a look to codecompetiontemplates.xml and I see nothing wrong there but this was complex commit modifying 17 files. ?
I wonder why no one can reproduce it, maybe it comes to light only in combination with my settings. ?
Vojt?ch a.k.a. Blaazen

Reply by email

Mattias Gaertner
to Vojtěch Čihák
Show quoted text 7 lines
Hello, ? I found revision that broke it: ? Revision 42177 - Directory Listing Modified Mon Jul 22 22:08:53 2013 UTC (10 months, 2 weeks ago) by mattias codetools: started ability to load code completion snippets from an xml files, thanks to Don Ziesig, patch 15922

That is only activated when compiled with -dEnableCodeCompleteTemplates. Have you?

?

I took a look to codecompetiontemplates.xml and I see nothing wrong there but this was complex commit modifying 17 files. ? I wonder why no one can reproduce it, maybe it comes to light only in combination with my settings.

Mattias

Reply by email

Vojtěch Čihák
to Mattias Gaertner

Yes, I have. I tried to disable it and rebuild and now it's OK. ?
Thanks.?
______________________________________________________________

Show quoted text 5 lines
Od: Mattias Gaertner Komu: Datum: 10.06.2014 19:10 P?edm?t: Re: [Lazarus] Lazarus adds two empty lines after new setters

On Tue, 10 Jun 2014 16:50:10 +0200
Vojt?ch ?ih?k wrote:

That is only activated when compiled with -dEnableCodeCompleteTemplates. Have you?

Mattias

Reply by email