[Lazarus] Bug in cody. Exploding a hanging with block.
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Jun 9 21:34:10 CEST 2014
On Mon, 09 Jun 2014 21:49:32 +0300
ListMember <listmember at letterboxes.org> wrote:
>[...]
> 1) Could there be an option so that cody leaves (within the source
> itself) a commented-out copy of the block it has altered.
Feel free to send a patch for that.
> This is needed for 2 reasons.
>
> a) I have noticed that cody saves a copy of the altered file to disk
> immediately.
Huh? Not that I know.
>[...]
> b) I also noticed that cody works within the active compiler switches
> ($IFDEF stuff). While this is good, it also means it leaves out the code
> in the '$ELSE' part. This may/will become problematic when the '$ELSE'
> becomes active but there's no way to 'explode with' for it.
Changing the $ELSE part is dangerous, because the context is wrong.
The parser does not parse structures within $ELSE parts (e.g. with).
It should warn the user to check carefully those parts.
> 2) It would be immensely more useful if it could do its thing on
> unit-wide, class-wide and function/procedure-wide.
>
> Where can I write these requests so that they don't get forgotten?
http://wiki.freepascal.org/Feature_Ideas
Mattias
More information about the Lazarus
mailing list