You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing this issue to flag an issue that used to work in 2.0.1 but does not work in 2.1.
When I try to delete an existing line it returns an error.
The original issue is here: #388
Current Behaviour
It is easy to reproduce by simply creating a line and then trying to remove it with following command:
forlineinself.chart.lines():
line.delete()
I get the following error.
Exception in thread Thread-2 (loop):
Traceback (most recent call last):
File "/home/zed/repos/trading_sw/.env/lib/python3.12/site-packages/lightweight_charts/chart.py", line 89, in loop
window.evaluate_js(arg)
File "/home/zed/repos/trading_sw/.env/lib/python3.12/site-packages/webview/window.py", line 50, in wrapper
return function(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zed/repos/trading_sw/.env/lib/python3.12/site-packages/webview/window.py", line 487, in evaluate_js
raise JavascriptException(result)
webview.errors.JavascriptException: {'name': 'NotFoundError', 'line': 6, 'column': 55, 'stack': 'removeChild@[native code]\neval code@\neval@[native code]\nglobal code@http://127.0.0.1:60360/index.html:4:33'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
self.run()
File "/usr/lib/python3.12/threading.py", line 1012, in run
self._target(*self._args, **self._kwargs)
File "/home/zed/repos/trading_sw/.env/lib/python3.12/site-packages/lightweight_charts/chart.py", line 94, in loop
raise JavascriptException(f"\n\nscript -> '{arg}',\nerror -> {msg['name']}[{msg['line']}:{msg['column']}]\n{msg['message']}")
~~~^^^^^^^^^^^
KeyError: 'message'
Expected Behavior
Hi,
I am writing this issue to flag an issue that used to work in 2.0.1 but does not work in 2.1.
When I try to delete an existing line it returns an error.
The original issue is here: #388
Current Behaviour
It is easy to reproduce by simply creating a line and then trying to remove it with following command:
I get the following error.
See below for a reproducible example.
Reproducible Example
Environment
The text was updated successfully, but these errors were encountered: