numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
18 stars 6 forks source link

[BUG] Complete reparse of procedures before execution #77

Closed raphael-sys closed 1 year ago

raphael-sys commented 1 year ago

DESCRIPTION

Describe the bug When using the auto-save function of NumeRe the code execution for procedures starts while the file is still being reparsed. Therefore always the older code is executed.

To Reproduce Steps to reproduce the behavior:

  1. Generate a procedure with the following lines: a=3
  2. Save the procedure
  3. Change the value form 3 to 4, don't save the procedure change.
  4. Execute the procedure with saving.
  5. [BUG] See error (value will be old one and not the changed one)
  6. When run again, the value is correct

Expected behavior The file should be updated before being executed.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

That's kind of simple, it only needs a call to m_terminal->UpdateLibrary() added to two locations in NumeReWindow.cpp:

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST