ID 519449 - Python Console history does not save across sessions

Follow

Problem summary
Python Console history does not save across sessions
 
Customer reported version
Mari 5.0v4
 
Customer reported platform
Windows 10
 
Steps to reproduce
 
1) Rename/remove your current .mari\TheFoundry (on Windows) or .config/TheFoundry (on Linux) folder
 
2) Launch Mari
 
3) Run a script in the Python Console, e.g.:
 
print('TestCode')
 
4) Exit Mari and relaunch
 
5) Check the Python Console
 
Expected behaviour
The script run in step 3 should be remembered and still present in the Console's input panel.
 
Actual behaviour
The script has disappeared.
 
Workaround
Renaming or deleting any of the script tabs will save the current code so it's available in the next session.
 
Reproduced by support
This bug has been reproduced in:
Mari 5.0v4 - Window 10 - CentOS 7.9
Mari 4.8v3 - Window 10 - CentOS 7.9 - regression
 
Unable to reproduce bug in:
Mari 4.8v2 - Windows 10 - CentOS 7.9
 
Earliest version tested
Mari 4.8v2 - This issue doesn't appear in this version and has regressed
 
 

    We're sorry to hear that

    Please tell us why