Opened 3 months ago

Last modified 6 weeks ago

#2967 reviewing defect

Ctrl+Z removes all code in C# scripts

Reported by: abeham Owned by: abeham
Priority: medium Milestone: HeuristicLab 3.3.16
Component: Scripting Version: trunk
Keywords: Cc:

Description

Create a new script and press Ctrl+Z.

Expected: Nothing happens.

Result: The whole script is gone.

Probably, in some way the "before" state of the script is initialized to empty.

Change History (4)

comment:1 Changed 6 weeks ago by jkarder

  • Owner set to jkarder
  • Status changed from new to accepted

comment:2 Changed 6 weeks ago by jkarder

r16528: fixed ctrl+z removing all code and improved code handling in programmable operators

comment:3 Changed 6 weeks ago by jkarder

  • Version set to trunk

comment:4 Changed 6 weeks ago by jkarder

  • Owner changed from jkarder to abeham
  • Status changed from accepted to reviewing

I have also made some changes within the ProgrammableOperator and its view. The code editor that is used there creates some protected areas within the code that cannot be edited directly (e.g. the using directives) or at all (e.g. the method signature). Using directives can be added/removed by (un-)checking the respective tree nodes on the left. Previously, all using directives where shown in the code editor and adding/removing a directive was recorded in the edit history of the code editor. This lead to inconsistent states between tree view and code and also caused problems with the protected areas. Using directives are therefore not shown anymore.

Note: See TracTickets for help on using tickets.