Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread IDE issue
Wed, Nov 18 2015 6:35 AMPermanent Link

Uli Becker

If I change code in the IDE and there is an error when trying to compile
the code, no undo is possible.

Uli
Wed, Nov 18 2015 7:33 AMPermanent Link

Rick

On 18/11/15 22:35, Uli Becker wrote:
> If I change code in the IDE and there is an error when trying to compile
> the code, no undo is possible.

I think it's just a case of the unit being saved before compilation
regardless of any errors. After a save there is nothing to undo until
the next code change is made.

--
Rick
Wed, Nov 18 2015 8:23 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< If I change code in the IDE and there is an error when trying to compile the code, no undo is possible. >>

Do you have the "Automatically save before project compilation" option enabled in the Environment/Options dialog ?  If so, then that's why.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Nov 18 2015 8:31 AMPermanent Link

Uli Becker

Tim,

> Do you have the "Automatically save before project compilation" option enabled in the Environment/Options dialog ?  If so, then that's why.

I forgot to mention that: No, this option is not enabled.

Uli
Wed, Nov 18 2015 8:47 AMPermanent Link

Matthew Jones

Tim Young [Elevate Software] wrote:

> Uli,
>
> << If I change code in the IDE and there is an error when trying to
> compile the code, no undo is possible. >>
>
> Do you have the "Automatically save before project compilation"
> option enabled in the Environment/Options dialog ?  If so, then
> that's why.

FWIW, Delphi has an option to allow undo after save, and I keep it on.
No sane programmer doesn't have the auto-save on compile set (certainly
no Delphi programmer!), so it would be nice to have undo past save if
it was possible sometime. Not often used of course.

--

Matthew Jones
Wed, Nov 18 2015 9:17 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< I forgot to mention that: No, this option is not enabled. >>

Yep, this is a bug.  The fix that added the cleanup code on invalid event assignments is clearing the editor undo, even when it isn't warranted.

A fix will be in the next build.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Nov 18 2015 9:23 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< FWIW, Delphi has an option to allow undo after save, and I keep it on. No sane programmer doesn't have the auto-save on compile set (certainly no Delphi programmer!), so it would be nice to have undo past save if it was possible sometime. Not often used of course. >>

EWB actually defaults to allowing undo after save.  The current behavior is a bug (see above).  The only thing that EWB doesn't allow (currently) is undo after form designer/object inspector modifications that affect the source unit, but that will change with 2.5 and the productivity improvements in the editing environment.

Tim Young
Elevate Software
www.elevatesoft.com
Image