openroberta-lab icon indicating copy to clipboard operation
openroberta-lab copied to clipboard

FunctionCall-block does not update parameters after copy/pasting

Open PamoCurtis opened this issue 2 years ago • 0 comments

Describe the bug

Copying a functionCall-block (robProcedures_call*), then changing the parameters on the functionDefinition-block (robProcedures_def*) by:

  • adding/deleting them
  • changing the name
  • changing the datatype

and pasting the functionCall-block back in, the parameters are not updated. Sometimes when opening the simulation or code-view, atleast the name of the first parameter is updated.

To Reproduce

Steps to reproduce the behavior:

  1. Generate a program like this. Bildschirmfoto von 2022-03-18 10-54-25

  2. Copy the functionCall-block. (i deleted the original functionCall-block afterwards so its more clear in the screenshots)

  3. Change the parameters e.g add/remove parameters, change the name/datatype. Bildschirmfoto von 2022-03-18 11-02-41

  4. Paste the copied functionCall-block back in. The pasted block still has the old parameter and is not updated. Bildschirmfoto von 2022-03-18 11-04-00

    • Opening the code-view updates the name of the parameter but does not throw an error. Bildschirmfoto von 2022-03-18 11-06-14

Expected behavior

Pasting the block in should update its parameters

Example program

exampleFaultyProgram.xml.txt

PamoCurtis avatar Mar 18 '22 10:03 PamoCurtis