Sign in Join

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

Mailing lists / lazarus / 2016-11

Is the TODO list working?

14 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

silvioprog

Hello,

I've tried to see some TODOs in my code, but it seems the TODO list windows isn't working, however I don't know if it is happening only with my Lazarus copy.

Could anybody confirm if it is working properly?

Thank you!

Environment: Lazarus 1.7 r53323 FPC 3.1.1 x86_64-linux-gtk 2

Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161121/ce9b14a7/attachment.html>

Reply by email

silvioprog
to silvioprog

Oops,

On Mon, Nov 21, 2016 at 3:14 PM, silvioprog wrote: [...]

... it seems the TODO list windows isn't working, however I don't know ...

I meant: "... it seems the TODO list window isn't working, it always return an empty list, however I don't know ..."

Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161121/3b49c618/attachment.html>

Reply by email

silvioprog
to Bart

On Tue, Nov 22, 2016 at 6:34 PM, Bart via Lazarus <

Show quoted text 12 lines
wrote: On 11/22/16, Mattias Gaertner via Lazarus wrote: > http://wiki.lazarus.freepascal.org/IDE_Window:_ToDo_List Most of my ToDo's are in //ToDo: format, which I see is not handled. I must admit I never tried that package. Bart

I can see three valid TODOs (please see attached picture), but only when I add the unit to the lpi. The problem happen when I have the unit declared only in the lpr uses clause.

So, for Delphi compatibility it should look TODOs in the opened units at the source editor tabs too.

(Lazarus is flexible, so it would be nice to have an extra option: search TODOs at project's folder too :-) )

Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161123/eb4d979f/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: 01.png Type: image/png Size: 75322 bytes Desc: not available URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161123/eb4d979f/attachment-0001.png>

Reply by email

Marcos Douglas B. Santos
to silvioprog: On Tue, Nov 22, 2016 at 6:34 PM, Bart via Lazarus < I can see three valid TODOs (please…
silvioprog wrote 9 lines
I can see three valid TODOs (please see attached picture), but only when I add the unit to the lpi. The problem happen when I have the unit declared only in the lpr uses clause. So, for Delphi compatibility it should look TODOs in the opened units at the source editor tabs too. (Lazarus is flexible, so it would be nice to have an extra option: search TODOs at project's folder too :-) )

+1

Perhaps search in all path that project uses.
I have many projects with no unit included. I just point paths.

—
Marcos Douglas

Reply by email

Mattias Gaertner
to Marcos Douglas B. Santos: On Wed, Nov 23, 2016 at 1:06 AM, silvioprog via Lazarus +1 Perhaps search in all path…

On Wed, 23 Nov 2016 16:15:39 -0200
"Marcos Douglas B. Santos via Lazarus"

[...] Perhaps search in all path that project uses. I have many projects with no unit included. I just point paths.

It now searches in all used project units, excluding used packages. Formerly it only searched in the units listed in the project inspector.

Mattias

Reply by email

Marcos Douglas B. Santos
to Mattias Gaertner
Mattias Gaertner wrote
It now searches in all used project units, excluding used packages. Formerly it only searched in the units listed in the project inspector

Hmm, I didn't know... Thanks for that.

Marcos Douglas

Reply by email

silvioprog
to Mattias Gaertner: On Wed, 23 Nov 2016 16:15:39 -0200 "Marcos Douglas B. Santos via Lazarus" It now searches…

On Wed, Nov 23, 2016 at 9:46 PM, Mattias Gaertner via Lazarus <

wrote:

[...]

Formerly it only searched in the units listed in the project inspector. Mattias

I sent a patch (issue #31006 <http://bugs.freepascal.org/view.php?id=31006>) extending IDEIntf and allowing the ToDo window to find units opened as tabs at source editor. It's easy to test:

1. open Lazarus keeping its default new project opened;
2. choose some unit (declaring some ToDo) outside project and drop that to the project, now it is just a tab at source editor;
3. open the ToDo window and finally you can see that unit's ToDo (or any opened).

It works in same way on Delphi, and it would be nice if Lazarus could provide this same functionality. :-)

Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161125/c1fc2e7a/attachment.html>

Reply by email

Mattias Gaertner
to silvioprog
Show quoted text 16 lines
On Wed, Nov 23, 2016 at 9:46 PM, Mattias Gaertner via Lazarus < > wrote: [...] > Formerly it only searched in the units listed in the project inspector. > > Mattias I sent a patch (issue #31006 <http://bugs.freepascal.org/view.php?id=31006>) extending IDEIntf and allowing the ToDo window to find units opened as tabs at source editor. It's easy to test: 1. open Lazarus keeping its default new project opened; 2. choose some unit (declaring some ToDo) outside project and drop that to the project, now it is just a tab at source editor;

What do you mean with "drop that to the project"?

Show quoted text 5 lines
3. open the ToDo window and finally you can see that unit's ToDo (or any opened). It works in same way on Delphi, and it would be nice if Lazarus could provide this same functionality. :-)

Mattias

Reply by email

silvioprog
to Mattias Gaertner

On Fri, Nov 25, 2016 at 9:57 AM, Mattias Gaertner via Lazarus <

wrote:

[...]

What do you mean with "drop that to the project"?

Oops, sorry, I meant when a user drag some unit (even units from other projects) from his system file manager and drop to the source editor.

So I reopened the issue sending a new patch applying a big upgrade in the ToDo list window.

(ps. I don't know why but I'm not receiving all e-mails from the Lazarus list, I was lucky I've opened the archives link and saw your message there :-/ - http://lists.lazarus-ide.org/pipermail/lazarus/2016-November /thread.html)

Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161126/1dee1eeb/attachment.html>

Reply by email