Create file with method you call in JS (frappe.call)
Save file with error
Run frappe.call('method.name')
Edit file to fix error
Call method again
Observed result
Error still caused by the old version of the file, but the stack trace is now inaccurate and shows the new files code.
Expected result
It updates properly
Stacktrace / full error message
"traceback": "Traceback (most recent call last):\n File \"/home/me/bench/apps/frappe/frappe/app.py\", line 66, in application\n response = frappe.handler.handle()\n File \"/home/me/bench/apps/frappe/frappe/handler.py\", line 45, in handle\n data = execute_cmd(cmd)\n File \"/home/me/bench/apps/frappe/frappe/handler.py\", line 83, in execute_cmd\n return frappe.call(method, **frappe.form_dict)\n File \"/home/me/bench/apps/frappe/frappe/__init__.py\", line 1585, in call\n return fn(*args, **newargs)\n File \"/home/me/bench/apps/frappe/frappe/weird_error.py\", line 455, in error_function\n # This error is happening on a line that is a comment...\nKeyError: 'redirect_flows'\n"
Additional information
OS version / distribution, Frappe install method, etc.
Linux frappe 5.15.0-50-generic #56-Ubuntu SMP Tue Sep 20 13:23:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Description of the issue
Context information (for bug reports)
Output of
bench version
Steps to reproduce the issue
Observed result
Error still caused by the old version of the file, but the stack trace is now inaccurate and shows the new files code.
Expected result
It updates properly
Stacktrace / full error message
Additional information
OS version / distribution,
Frappe
install method, etc.Linux frappe 5.15.0-50-generic #56-Ubuntu SMP Tue Sep 20 13:23:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux