Sign in Join

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

Mailing lists / lazarus / 2015-11

A big thank you!

18 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

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

Torsten Bonde Christiansen

Dear Coder of code-completion

Today after having updated my trunk Lazarus I started coding and did what I usually do with
code completion. I was starting to implement a new OnSomething method and did the normal

   OnSomething := @OnSomethingMethod

and pressed CTRL + SHIFT + C and then this showed up:

I cannot count how many times I have been annoyed that the code was autoplaced in the published
section.

To whoever implemented this feature: THANK YOU! :D

Regards,
Torsten.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151104/d97d35cb/attachment.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: jgigdfce.png
Type: image/png
Size: 12650 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151104/d97d35cb/attachment.png>

Reply by email

Ondrej Pokorny
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 16 lines
Dear Coder of code-completion Today after having updated my trunk Lazarus I started coding and did what I usually do with code completion. I was starting to implement a new OnSomething method and did the normal OnSomething := @OnSomethingMethod and pressed CTRL + SHIFT + C and then this showed up: I cannot count how many times I have been annoyed that the code was autoplaced in the published section. To whoever implemented this feature: THANK YOU! :D

It was me. You are welcome ;)

Ondrej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151104/43d870e9/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 12650 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151104/43d870e9/attachment-0001.png>

Reply by email

Graeme Geldenhuys
to Torsten Bonde Christiansen: Dear Coder of code-completion Today after having updated my trunk Lazarus I started…
Torsten Bonde Christiansen wrote
I cannot count how many times I have been annoyed that the code was autoplaced in the published section.

Ah yes... that change would be very welcome. It is something that has bugged me since 2006! Thank you very much to the author of that change.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Ondrej Pokorny
to Graeme Geldenhuys: Ah yes... that change would be very welcome. It is something that has bugged me since…
Graeme Geldenhuys wrote 5 lines
On 2015-11-04 07:23, Torsten Bonde Christiansen wrote: > I cannot count how many times I have been annoyed that the code was autoplaced > in the published section. Ah yes... that change would be very welcome. It is something that has bugged me since 2006! Thank you very much to the author of that change.

I think it was you who filled the issue report:
http://mantis.freepascal.org/view.php?id=13994 You are welcome to close it ;)

Honestly, if I had been annoyed by a missing feature for so long, I'd have implemented it by myself. It wasn't so hard, I definitely didn't need longer than a couple of hours. The biggest problem was to get the settings working.

Mattias cannot do everything ;)

Ondrej

Reply by email

Graeme Geldenhuys
to Ondrej Pokorny
Ondrej Pokorny wrote
I think it was you who filled the issue report:

Thanks, I'll test and close it.

Honestly, if I had been annoyed by a missing feature for so long, I'd have implemented it by myself.

Over the years I've contributed in various places in Lazarus and LCL, but to be honest, I've never had the time to look at CodeTools yet.

Mattias cannot do everything ;)

Agreed! :)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Anthony Walter
to Ondrej Pokorny: It was me. You are welcome ;) Ondrej -------------- next part -------------- An HTML…

Ondrej, do you think you could look at this CodeTools issue which has been sitting around for a while?

http://mantis.freepascal.org/view.php?id=27847

Basically what happens is you can define a type which refers to itself "type IBitmap = interface(ICloneable<IBitmap>)". If you ever try to use code insight (Ctrl+ Space after a dot) on that type, CodeTools jumps out of whatever file you're in and takes you to the definition of what it thinks is a bad type. A red error is put into the messages window.

procedure TForm1.Button1Click(Sender: TObject);
begin
  FBitmap. // Press [Ctrl + Space] after the dot and CodeTools takes you
out of this file
  // .. more code
end;
*Red error in the message window* clonebug.pas(13,34) Error: identifier not
found: IBitmap

And here is an example of a file which offends CodeTools:

unit CloneBug;
{$mode delphi}
interface
type
  ICloneable<T> = interface
  ['{2C3BA33B-97E5-485C-B765-462B575A1011}']
    function Clone: T;
  end;
  IBitmap = interface(ICloneable<IBitmap>) // CodeTools takes you here with
an error message
    function Clone: IBitmap;
    procedure Draw;
  end;
implementation
end.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151104/92d56e31/attachment.html>

Reply by email

Maciej Izak
to Anthony Walter

2015-11-04 20:12 GMT+01:00 Anthony Walter :

Show quoted text 5 lines
Ondrej, do you think you could look at this CodeTools issue which has been sitting around for a while? http://mantis.freepascal.org/view.php?id=27847

There exist also many bug reports related to Generics.Collections library and CodeTools :

http://mantis.freepascal.org/view.php?id=25595
http://mantis.freepascal.org/view.php?id=25619
http://mantis.freepascal.org/view.php?id=25618
http://mantis.freepascal.org/view.php?id=25617
http://mantis.freepascal.org/view.php?id=25615
http://mantis.freepascal.org/view.php?id=25613

Best regards, Maciej Izak -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151104/32709209/attachment.html>

Reply by email

Maciej Izak
to Anthony Walter

2015-11-04 20:30 GMT+01:00 Anthony Walter :

I was looking through the issues you posted. Why are all those CodeTools issues assigned to Sven Barth? AFAIK Sven does work on the compiler and not CodeTools.

Look again and more carefully :) - all those issues are "related" (not assigned) to Generics.Collections library (which is assigned to Sven).

Best regards, Maciej Izak -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151104/3cb2c2b3/attachment.html>

Reply by email

Florian Klämpfl
to Torsten Bonde Christiansen: Dear Coder of code-completion Today after having updated my trunk Lazarus I started…
Torsten Bonde Christiansen wrote 14 lines
Dear Coder of code-completion Today after having updated my trunk Lazarus I started coding and did what I usually do with code completion. I was starting to implement a new OnSomething method and did the normal OnSomething := @OnSomethingMethod and pressed CTRL + SHIFT + C and then this showed up: I cannot count how many times I have been annoyed that the code was autoplaced in the published section. To whoever implemented this feature: THANK YOU! :D

+1

Actually I was always wondered if I missed some setting, but apparently not :)

Reply by email

Ondrej Pokorny
to Anthony Walter: Ondrej, do you think you could look at this CodeTools issue which has been sitting around…

I can't promise you anything. I am a freelancer and if I work on Lazarus/FPC it means I don't earn any money for this particular time. I only tell my girlfriend that I work :) I don't have any company or university behind me.

Therefore I unfortunately have to say I will be (and have been) solving issues I am interested in. Maybe they will be the issues you are interested in as well, maybe not. Sorry.

In particular I don't use Generics because of the issues with compiler and CodeTools. I can live without them. (I am not telling that I don't like them - I do.)

Still I am of the opinion that if everybody did the same I do - solve the issues he is interested in, we would have a great IDE quite fast ;) I will be happy to review IDE patches, of course.

Ondrej

Reply by email

Sven Barth
to Ondrej Pokorny
"Ondrej Pokorny" wrote
In particular I don't use Generics because of the issues with compiler

and CodeTools. I can live without them. (I am not telling that I don't like them - I do.)

Issues that are addressed in 3.0.0? Issues fixed in 3.1.1? Reported issues? Unknown issues?

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151105/cb287c33/attachment.html>

Reply by email

Ondrej Pokorny
to Anthony Walter
Anthony Walter wrote
Regarding the state of generics, Sven has crushed it. Using trunk I haven't had a compiler problem with them in while. I consider them solid at this point. Go Sven!

I know Sven is working hard on them! I didn't want to offend anybody!

Ondrej

Reply by email

Sven Barth
to Ondrej Pokorny
"Ondrej Pokorny" wrote
On 05.11.2015 01:02, Anthony Walter wrote: > > Regarding the state of generics, Sven has crushed it. Using trunk I

haven't had a compiler problem with them in while. I consider them solid at this point. Go Sven!

I know Sven is working hard on them! I didn't want to offend anybody!

I didn't take any offence, but if you have problems with generics I need to know whether I've already fixed them or don't even know about them.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151105/79bcd2be/attachment.html>

Reply by email