Re: [lazarus] Code Completion don't understand new generic sintax

2007-08-16 Thread Mattias Gaertner
On Wed, 15 Aug 2007 18:05:18 -0300 Carlos German Tejero [EMAIL PROTECTED] wrote: Hi to Lazarus Team (sorry for my poor english): I probe the new FPC generic support, and work fine, but the Lazarus Code Completion don't understand new generic sintax. For example in the next code

Re: [lazarus] Code Completion don't understand new generic sintax

2007-08-16 Thread Carlos German Tejero
Code Completion don't understand new generic sintax. For example in the next code: program test; {$apptype console} {$mode objfpc}{$H+} uses SysUtils, Classes; type generic TTestTDato = class(TObject) function sum(a,b:TDato):TDato; end; TIntTest

[lazarus] Code Completion don't understand new generic sintax

2007-08-15 Thread Carlos German Tejero
Hi to Lazarus Team (sorry for my poor english): I probe the new FPC generic support, and work fine, but the Lazarus Code Completion don't understand new generic sintax. For example in the next code: program test; {$apptype console} {$mode objfpc}{$H+} uses SysUtils, Classes; type generic

Re: [lazarus] Code completion formatted code incorrectly

2007-01-20 Thread Graeme Geldenhuys
On 1/19/07, Mattias Gaertner [EMAIL PROTECTED] wrote: Ah. This explains. What Delphi calls 'Code completion' is called under Lazarus 'Identifier completion'. And 'Code completion' under Lazarus is a bunch of features including 'Class completion'. See

Re: [lazarus] Code completion formatted code incorrectly

2007-01-19 Thread Mattias Gaertner
On Thu, 18 Jan 2007 17:29:55 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 1/18/07, Mattias Gaertner [EMAIL PROTECTED] wrote: So, the bug is somewhere in the normal class completion. I added some more verbosity. I did the same reverse class completion test as before. Here is the

Re: [lazarus] Code completion formatted code incorrectly

2007-01-19 Thread Graeme Geldenhuys
On 1/19/07, Mattias Gaertner [EMAIL PROTECTED] wrote: Hope that made sense to you... :) No. Where are the lines 'CreateMissingProcBodies InsertProcBody'? It does not add any procedure, does it? Yes it created the stub in the interface section. I just got another update (r10478) and tried

Re: [lazarus] Code completion formatted code incorrectly

2007-01-19 Thread Mattias Gaertner
On Fri, 19 Jan 2007 14:15:34 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 1/19/07, Mattias Gaertner [EMAIL PROTECTED] wrote: Hope that made sense to you... :) No. Where are the lines 'CreateMissingProcBodies InsertProcBody'? It does not add any procedure, does it? Yes it

Re: [lazarus] Code completion formatted code incorrectly

2007-01-19 Thread Mattias Gaertner
On Fri, 19 Jan 2007 14:44:01 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 1/19/07, Mattias Gaertner [EMAIL PROTECTED] wrote: On Fri, 19 Jan 2007 14:15:34 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 1/19/07, Mattias Gaertner [EMAIL PROTECTED] wrote: Hope that made

Re: [lazarus] Code completion formatted code incorrectly

2007-01-18 Thread Mattias Gaertner
On Thu, 18 Jan 2007 08:30:38 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 1/17/07, Mattias Gaertner [EMAIL PROTECTED] wrote: Using Code Completion (pressing Ctrl-Space) in the interface section of a class, so I can override a method, formats the code incorrectly. I have Lazarus's

Re: [lazarus] Code completion formatted code incorrectly

2007-01-18 Thread Graeme Geldenhuys
On 1/18/07, Mattias Gaertner [EMAIL PROTECTED] wrote: The 'preview' window is correct. What in generated for Class Completion is different to the preview. Strange. I added two debugln. Please update svn and try to reproduce the bug. Then send the console output. Here goes... I've also

Re: [lazarus] Code completion formatted code incorrectly

2007-01-18 Thread Mattias Gaertner
On Thu, 18 Jan 2007 14:52:54 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 1/18/07, Mattias Gaertner [EMAIL PROTECTED] wrote: The 'preview' window is correct. What in generated for Class Completion is different to the preview. Strange. I added two debugln. Please update svn

Re: [lazarus] Code completion formatted code incorrectly

2007-01-18 Thread Mattias Gaertner
On Thu, 18 Jan 2007 16:05:35 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 1/18/07, Mattias Gaertner [EMAIL PROTECTED] wrote: Sorry, I forgot: Can you do a reverse class completion? http://wiki.lazarus.freepascal.org/Lazarus_IDE_Tools#Reversed_Class_Completion Then you should see:

Re: [lazarus] Code completion formatted code incorrectly

2007-01-18 Thread Graeme Geldenhuys
On 1/18/07, Mattias Gaertner [EMAIL PROTECTED] wrote: So, the bug is somewhere in the normal class completion. I added some more verbosity. I did the same reverse class completion test as before. Here is the console output. --- [graemeg-linux]

[lazarus] Code completion formatted code incorrectly

2007-01-17 Thread Graeme Geldenhuys
Hi, Using Code Completion (pressing Ctrl-Space) in the interface section of a class, so I can override a method, formats the code incorrectly. I have Lazarus's CodeTools Options - Space tab setup to not include any spaces in front of elements. No checkboxes are checked in the Insert space in

Re: [lazarus] Code completion formatted code incorrectly

2007-01-17 Thread Mattias Gaertner
On Wed, 17 Jan 2007 10:11:23 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, Using Code Completion (pressing Ctrl-Space) in the interface section of a class, so I can override a method, formats the code incorrectly. I have Lazarus's CodeTools Options - Space tab setup to not include

Re: [lazarus] Code completion formatted code incorrectly

2007-01-17 Thread Graeme Geldenhuys
On 1/17/07, Mattias Gaertner [EMAIL PROTECTED] wrote: Using Code Completion (pressing Ctrl-Space) in the interface section of a class, so I can override a method, formats the code incorrectly. I have Lazarus's CodeTools Options - Space tab setup to not include any spaces in front of

Re: [lazarus] code completion and class methods problem

2006-12-13 Thread Micha Nelissen
Graeme Geldenhuys wrote: complained about how long it took to get bugs fixed or features implement. He waited 5 years for a feature and 2 years for a bug fix. Lazarus rock! :-) Unfortunately, not all bugs are fixed so quickly; just take a look at the bug tracker ;-). Micha

Re: [lazarus] Code completion features missing or not ?

2006-09-16 Thread Mattias Gaertner
On Fri, 15 Sep 2006 18:32:26 +1100 Alexander Klenin [EMAIL PROTECTED] wrote: Ok. So GEXpert has a simple word search and not an identifier search. And this is wanted. Then the new functions will be called 'Find next word', 'Find previous word'. Ok? Perhaps Find next word occurrence or

Re: [lazarus] Code completion features missing or not ?

2006-09-15 Thread Alexander Klenin
Ok. So GEXpert has a simple word search and not an identifier search. And this is wanted. Then the new functions will be called 'Find next word', 'Find previous word'. Ok? Perhaps Find next word occurrence or even Find next occurrence of this word? I am afraid 'Find next word' will be easily

Re: [lazarus] Code completion features missing or not ?

2006-09-15 Thread Michael Van Canneyt
On Thu, 14 Sep 2006, Mattias Gaertner wrote: On Thu, 14 Sep 2006 17:41:34 +0200 (Romance Daylight Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: [cut] At best, make it an option, if you really think it's annoying :-) I think completion when you're in the implementation section is OK

Re: [lazarus] Code completion features missing or not ?

2006-09-15 Thread Mattias Gaertner
On Fri, 15 Sep 2006 17:09:20 +0200 (Romance Daylight Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Thu, 14 Sep 2006, Mattias Gaertner wrote: On Thu, 14 Sep 2006 17:41:34 +0200 (Romance Daylight Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: [cut] At best, make it an

[lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt
Hi, 2 feature requests: First: The following has been bugging me since day 1 of Lazarus: Code completion for methods works from interface - implementation. However, in Delphi, the following also works: Given the form declaration: TForm1 = class(TForm) private { private declarations

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Graeme Geldenhuys
On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote: Second: if you add the 'Gexperts' to the Delphi IDE (highly recommended) then 'ALT Gr'-Arrow Up or 'ALT Gr'-Arrow Down ('Alt Gr' is the right Alt key) moves to the previous/next occurrence of the word/identifier you are standing

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt
On Thu, 14 Sep 2006, Mattias Gaertner wrote: On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: [cut] Aswering the subject: Both are missing. And who should I bribe to add these features ? ;-) Alternatively, whose arm should I twist

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Mattias Gaertner
On Thu, 14 Sep 2006 11:43:35 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote: Second: if you add the 'Gexperts' to the Delphi IDE (highly recommended) then 'ALT Gr'-Arrow Up or 'ALT Gr'-Arrow Down ('Alt Gr' is the right

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Mattias Gaertner
On Thu, 14 Sep 2006 11:52:40 +0200 (Romance Daylight Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Thu, 14 Sep 2006, Mattias Gaertner wrote: On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: [cut] Aswering the

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Graeme Geldenhuys
On 14/09/06, Mattias Gaertner [EMAIL PROTECTED] wrote: Next word or next identifier? It works by pressing Ctrl-Alt-UpArrow or Ctrl-Alt-DownArrow and takes the identifier under the cursor and jump to the Next or Prev occurrence of that identifier. Hence why I call it Identifier Jumping.

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Luk Vandelaer
Mattias Gaertner wrote: On Thu, 14 Sep 2006 11:43:35 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote: Second: if you add the 'Gexperts' to the Delphi IDE (highly recommended) then 'ALT Gr'-Arrow Up or 'ALT Gr'-Arrow Down

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Graeme Geldenhuys
On 14/09/06, Mattias Gaertner [EMAIL PROTECTED] wrote: Alternatively, whose arm should I twist ? ;) I need my arms untwisted for programming. Mattias :-) Maybe after the arm twisting, I can sell you a add-on for Lazarus we created. A VoiceType Dictation add-on for Lazarus. Just excuse

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Mattias Gaertner
On Thu, 14 Sep 2006 12:17:42 +0200 Luk Vandelaer [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Thu, 14 Sep 2006 11:43:35 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote: Second: if you add the 'Gexperts' to

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt
On Thu, 14 Sep 2006, Mattias Gaertner wrote: On Thu, 14 Sep 2006 11:43:35 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote: Second: if you add the 'Gexperts' to the Delphi IDE (highly recommended) then 'ALT Gr'-Arrow Up or 'ALT

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt
On Thu, 14 Sep 2006, Mattias Gaertner wrote: On Thu, 14 Sep 2006 12:17:42 +0200 Luk Vandelaer [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Thu, 14 Sep 2006 11:43:35 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote:

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt
On Thu, 14 Sep 2006, Mattias Gaertner wrote: On Thu, 14 Sep 2006 11:52:40 +0200 (Romance Daylight Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Thu, 14 Sep 2006, Mattias Gaertner wrote: On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time) Michael Van Canneyt [EMAIL

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Marc Weustink
Mattias Gaertner wrote: On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: Hi, 2 feature requests: First: The following has been bugging me since day 1 of Lazarus: Code completion for methods works from interface - implementation

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt
On Thu, 14 Sep 2006, Marc Weustink wrote: Mattias Gaertner wrote: On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: Hi, 2 feature requests: First: The following has been bugging me since day 1 of Lazarus: Code completion for methods

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Marc Weustink
: Code completion for methods works from interface - implementation. However, in Delphi, the following also works: Given the form declaration: TForm1 = class(TForm) private { private declarations } public { public declarations } end; I can type the following

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt
has been bugging me since day 1 of Lazarus: Code completion for methods works from interface - implementation. However, in Delphi, the following also works: Given the form declaration: TForm1 = class(TForm) private { private declarations } public { public declarations

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Mattias Gaertner
On Thu, 14 Sep 2006 12:42:24 +0200 (Romance Daylight Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Thu, 14 Sep 2006, Mattias Gaertner wrote: On Thu, 14 Sep 2006 11:43:35 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED]

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Mattias Gaertner
(Romance Daylight Time) Michael Van Canneyt [EMAIL PROTECTED] wrote: Hi, 2 feature requests: First: The following has been bugging me since day 1 of Lazarus: Code completion for methods works from interface - implementation. However, in Delphi, the following also

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Micha Nelissen
Mattias Gaertner wrote: Ok. So GEXpert has a simple word search and not an identifier search. And this is wanted. Then the new functions will be called 'Find next word', 'Find previous word'. Ok? From a complete outsider who has never used this function yet: wouldn't an identifier search be

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Graeme Geldenhuys
On 14/09/06, Micha Nelissen [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: Ok. So GEXpert has a simple word search and not an identifier search. And this is wanted. Then the new functions will be called 'Find next word', 'Find previous word'. Ok? From a complete outsider who has never

Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Micha Nelissen
Graeme Geldenhuys wrote: From a complete outsider who has never used this function yet: wouldn't an identifier search be more useful ? Usually you want to find where a variable is written or something like that. At least, that's what I often need. (But use 'regular' Find for). That's the

Re: [lazarus] Code completion

2005-09-30 Thread Mattias Gaertner
On Fri, 30 Sep 2005 09:03:09 +0200 Matthijs Willemstein [EMAIL PROTECTED] wrote: On Thu, 2005-09-29 at 20:21 +0200, Mattias Gaertner wrote: Pressing ctrlshiftC (thus invoking code completion) a new skeleton for procedure TFoo.FooProc is made. I think this is not the correct behaviour.

Re: [lazarus] Code completion

2005-09-29 Thread Mattias Gaertner
On Wed, 28 Sep 2005 21:10:31 +0200 Matthijs Willemstein [EMAIL PROTECTED] wrote: Hi all, When I have the following code: type TFoo = class procedure FooProc; end; After invoking code completion the skeleton of procedure TFoo.FooProc is created. Then I change the definition

Re: [lazarus] Code completion

2005-09-29 Thread Tony Maro
Mattias Gaertner wrote: On Wed, 28 Sep 2005 21:10:31 +0200 Matthijs Willemstein [EMAIL PROTECTED] wrote: Hi all, When I have the following code: type TFoo = class procedure FooProc; end; After invoking code completion the skeleton of procedure TFoo.FooProc is created. Then I change

Re: [lazarus] Code completion

2005-09-29 Thread Mattias Gaertner
On Thu, 29 Sep 2005 14:35:59 -0400 Tony Maro [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Wed, 28 Sep 2005 21:10:31 +0200 Matthijs Willemstein [EMAIL PROTECTED] wrote: Hi all, When I have the following code: type TFoo = class procedure FooProc; end; After

Re: [lazarus] Code completion

2005-09-29 Thread Tony Maro
Mattias Gaertner wrote: On Thu, 29 Sep 2005 14:35:59 -0400 Tony Maro [EMAIL PROTECTED] wrote: Wouldn't automatic adapting make overloading harder? Why? The result as happens now is it basically gets created like it's overloaded... Yes. But in the case, that the class

Re: [lazarus] Code completion

2005-09-28 Thread Alexander Todorov
On 9/28/05, Matthijs Willemstein [EMAIL PROTECTED] wrote: Hi all, When I have the following code: type TFoo = class procedure FooProc; end; After invoking code completion the skeleton of procedure TFoo.FooProc is created. Then I change the definition to read as follows: type

Re: [lazarus] Code completion bug or not ?

2005-09-20 Thread Alexander Todorov
On 9/19/05, Mattias Gaertner [EMAIL PROTECTED] wrote: You can submit a feature request in the bug tracker for an option to let class completion check members in ancestors. Done. Issue number #1189 _ To unsubscribe: mail

[lazarus] Code completion bug or not ?

2005-09-19 Thread Alexander Todorov
Hi all, yestarday I had an annoying problem with Kylix 3 at work and decided to try if this happens in Lazarus. The situation is the following : { TBaseObject - a base class (3rd party component) } TBaseObject = class

Re: [lazarus] Code completion bug or not ?

2005-09-19 Thread Mattias Gaertner
On Mon, 19 Sep 2005 22:18:30 +0300 Alexander Todorov [EMAIL PROTECTED] wrote: Hi all, yestarday I had an annoying problem with Kylix 3 at work and decided to try if this happens in Lazarus. The situation is the following :