Message 1 of 2
Script "Edit" button broken on latest release on Mac, doesn't open VS Code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Something happened to the debugger connection between Fusion and VS Code in the last release. I had this issue yesterday, which was resolved using 'Repair' in the new Fusion 360 Service Utility, however, the problem quickly re-appeared. I assumed this was something with my system, until a co-worker observed the exact same behavior. The only evidence I have right now is a stack trace from the fusion logs ( see below). Any help would be greatly appreciated, as repairing fusion every time you need to debug an add-in is a significant time sink. Also, the edit button immediately opens Xcode for C++ scripts/add-ins.
20220330T143446 E .7529761 NUBASE.PYTHON: failed to start python debugger:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "***/.vscode/extensions/ms-python.python-2022.2.1924087327/pythonFiles/lib/python/debugpy/__init__.py", line 111, in listen
from debugpy.server import api
File "***/.vscode/extensions/ms-python.python-2022.2.1924087327/pythonFiles/lib/python/debugpy/server/__init__.py", line 9, in <module>
import debugpy._vendored.force_pydevd # noqa
File "***/.vscode/extensions/ms-python.python-2022.2.1924087327/pythonFiles/lib/python/debugpy/_vendored/force_pydevd.py", line 45, in <module>
preimport('pydevd', [
File "***/.vscode/extensions/ms-python.python-2022.2.1924087327/pythonFiles/lib/python/debugpy/_vendored/__init__.py", line 128, in preimport
import_module(name)
File "***/Application Support/Autodesk/webdeploy/production/72d19e910ebc40dfc279257a6b68f345b813a145/Autodesk Fusion 360.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "***/.vscode/extensions/ms-python.python-2022.2.1924087327/pythonFiles/lib/python/debugpy/_vendored/pydevd/pydevd_plugins/__init__.py", line 5, in <module>
__import__('pkg_resources').declare_namespace(__name__)
AttributeError: module 'pkg_resources' has no attribute 'declare_namespace'