forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Description
Environment data
- debugpy version: 1.2.1 (run
import debugpy; print(debugpy.__version__)if uncertain) - OS and version: 3.4.0
- Python version (& distribution if applicable, e.g. Anaconda): 3.6.7 64-bit
- Using VS Code or Visual Studio: VS Code web
Actual behavior
启动code-server后,第一次访问页面做debug操作时正常。尝试刷新页面或关闭页面时,再次尝试debug会提示异常。
Debugger Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.
Debugger Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.
Error
Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.
at /home/oppoer/.falcon/code-server-3.9.1-linux-x86_64/.share/extensions/ms-python.python-2020.5.80290/out/client/debugger/debugAdapter/main.js:16:49625
at Array.forEach (<anonymous>)
at e (/home/oppoer/.falcon/code-server-3.9.1-linux-x86_64/.share/extensions/ms-python.python-2020.5.80290/out/client/debugger/debugAdapter/main.js:16:49188)
at Object.t.plan (/home/oppoer/.falcon/code-server-3.9.1-linux-x86_64/.share/extensions/ms-python.python-2020.5.80290/out/client/debugger/debugAdapter/main.js:16:49703)
at /home/oppoer/.falcon/code-server-3.9.1-linux-x86_64/.share/extensions/ms-python.python-2020.5.80290/out/client/debugger/debugAdapter/main.js:16:46360
at e._get (/home/oppoer/.falcon/code-server-3.9.1-linux-x86_64/.share/extensions/ms-python.python-2020.5.80290/out/client/debugger/debugAdapter/main.js:16:46269)
at e.get (/home/oppoer/.falcon/code-server-3.9.1-linux-x86_64/.share/extensions/ms-python.python-2020.5.80290/out/client/debugger/debugAdapter/main.js:16:44980)
at a.get (/home/oppoer/.falcon/code-server-3.9.1-linux-x86_64/.share/extensions/ms-python.python-2020.5.80290/out/client/debugger/debugAdapter/main.js:16:169479)
at new b (/home/oppoer/.falcon/code-server-3.9.1-linux-x86_64/.share/extensions/ms-python.python-2020.5.80290/out/client/debugger/debugAdapter/main.js:1:230351)
at /home/oppoer/.falcon/code-server-3.9.1-linux-x86_64/.share/extensions/ms-python.python-2020.5.80290/out/client/debugger/debugAdapter/main.js:1:233593
我尝试根据社区提供的相关问题的解决方案,code-server升级为3.4.1,python-vscode升级为2020.5.86806,依然无法解决问题。
经过我长时间的探索,通过一个很简单的办法解决了它,但我不明白具体是什么原因导致这个异常。
我的解决方案:
cod-server启动后
cp code-server-3.4.0-linux-x86_64/.share/data/User/state/globa.json /home/work/globa.json
当出现这个异常的时候
rm code-server-3.4.0-linux-x86_64/.share/data/User/state/globa.json
cp /home/work/globa.json code-server-3.4.0-linux-x86_64/.share/data/User/state/globa.json
刷新网页 就可以正常debug
如果再次出现该问题 重复
rm code-server-3.4.0-linux-x86_64/.share/data/User/state/globa.json
cp /home/work/globa.json code-server-3.4.0-linux-x86_64/.share/data/User/state/globa.json
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug