Debugger XML write error when using Debug Console
I am using PyCharm 2023.3.1 Professional (Build #PY-233.11799.298).
My OS is Windows 10.
I get this error every time I am debugging and input anything in the debug console:In [5]: print('Hello')HelloTraceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm2022.2.2\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 219, in run self._on_run() File "C:\Program Files\JetBrains\PyCharm2022.2.2\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 1932, in _on_run xml.write(pydevd_xml.var_to_xml(var_obj, name, evaluate_full_value=True, user_type_renderers=self.user_type_renderers)) File "C:\Program Files\JetBrains\PyCharm2022.2.2\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_xml.py", line 330, in var_to_xml value = _get_default_var_string_representation(v, _type, typeName, format, do_trim) File "C:\Program Files\JetBrains\PyCharm2022.2.2\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_xml.py", line 273, in _get_default_var_string_representation str_from_provider = _str_from_providers(v, _type, typeName, do_trim) File "C:\Program Files\JetBrains\PyCharm2022.2.2\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_xml.py", line 209, in str_from_providers return provider.get_str(o, do_trim)TypeError: get_str() takes 2 positional arguments but 3 were givenTraceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm2022.2.2\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 219, in run self._on_run() File "C:\Program Files\JetBrains\PyCharm2022.2.2\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 1932, in _on_run xml.write(pydevd_xml.var_to_xml(var_obj, name, evaluate_full_value=True, user_type_renderers=self.user_type_renderers)) File "C:\Program Files\JetBrains\PyCharm2022.2.2\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_xml.py", line 330, in var_to_xml value = _get_default_var_string_representation(v, _type, typeName, format, do_trim) File "C:\Program Files\JetBrains\PyCharm2022.2.2\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_xml.py", line 273, in _get_default_var_string_representation str_from_provider = _str_from_providers(v, _type, typeName, do_trim) File "C:\Program Files\JetBrains\PyCharm2022.2.2\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_xml.py", line 209, in str_from_providers return provider.get_str(o, do_trim)TypeError: get_str() takes 2 positional arguments but 3 were given
This problem started after updating to the most recent version of Pycharm and switching to using the Github Copilot plugin.
I tried disabling the Copilot Plugin, but the problem persists.
Can someone please help me solve this?
Thanks!
请先登录再写评论。
If not, does the issue reproduce in a new project, with a new clean interpreter and some minimal code?
Yes, I do use OmegaConf.
I use hydra to build an OmegaConf object from yaml files.
Is there a way to keep using it without having this problem?
Sorry, there's not yet a known workaround it seems. Please try disabling cython speedups just in case, by adding `PYDEVD_USE_CYTHON=NO` environment variable to your run/debug configuration.
Also, please follow PY-64588 for updates – once we find the workaround, we'll be sure to post it there.
I also encountered this problem ! And I dont know how to fix it … Please inform me if you have known what to do, thank~