Deleting the "default" code generation task for project upgraded from 5.2 to 5.10

Posts   
 
    
Posts: 27
Joined: 02-Oct-2008
# Posted on: 25-Feb-2023 00:53:19   

I was having trouble deleting a pre-existing code generation task in a project file upgraded from 5.2 to 5.10.

Basically, some settings from the previous version 5.2 are invalid now, so I created a new task with the correct values and then went to delete the "old" task but the "Remove selected..." button is greyed out.

I looked in the project file and I see that there is a CodeGenerationCyclePreferences and an AdditionalCodeGenerationCyclePreferences with the original task under CodeGenerationCyclePreferences and the new one under AdditionalCodeGenerationCyclePreferences.

So instead, I deleted the new task and then just edited the pre-existing task in place and that worked.

I don't really have a question but this could perhaps be more clear in the UI somehow?

Thanks!

Posts: 27
Joined: 02-Oct-2008
# Posted on: 25-Feb-2023 07:23:02   

I get dumber as I get older, obviously. Also, since the generated code has always been so reliable (kudos, btw) I don't use the designer all that often. That's my excuse and I'm sticking to it.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 25-Feb-2023 07:47:40   

Reproduced.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 25-Feb-2023 10:23:25   

The reason it's greyed out is that it's a pre-generated task by the designer, and the one you added is a custom one (which can be deleted). This is to prevent people from deleting all tasks.

I admit this could be smoother tho. flushed We'll look into making this less confusing (as I am also getting older and understand completely things should be less confusing smile )

Frans Bouma | Lead developer LLBLGen Pro