Issue summary:
When using the "Run Script" command, the user hits scripts\modules\bpy\ops.py", line 60, in _parse_args raise ValueError("1-2 args execution context is supported") ValueError: 1-2 args execution context is supported
Issue cause:
This issue is connected to a breaking change that was introduced in Blender's 4.0 Python API update
Issue summary: When using the "Run Script" command, the user hits
scripts\modules\bpy\ops.py", line 60, in _parse_args raise ValueError("1-2 args execution context is supported") ValueError: 1-2 args execution context is supported
Issue cause: This issue is connected to a breaking change that was introduced in Blender's 4.0 Python API update
https://wiki.blender.org/wiki/Reference/Release_Notes/4.0/Python_API
For Blender 4.0 in
.\pythonFiles\include\blender_vscode\operators\script_runner.py
instead of thisbpy.ops.dev.run_script(context, filepath=path)
We need to use this
Tested "Run Script" and Add-on Debugging under Blender 2.9 and Blender 4.0