Can't edit Python scripts

Can't edit Python scripts

Twernmilt
Explorer Explorer
2,352 Views
7 Replies
Message 1 of 8

Can't edit Python scripts

Twernmilt
Explorer
Explorer

When I click "Edit" from the "Scripts and Add-ins" dialog, it doesn't open VS Code. Instead it opens another copy of Fusion 360.

 

The log says there is an error, but it doesn't say what the error is:

 

20191031T162958 I error happened when enable attach VSCode:
20191031T162958 I
0 Likes
2,353 Views
7 Replies
Replies (7)
Message 2 of 8

JesusFreke
Advocate
Advocate

Was this on a Mac by chance? That sounds suspiciously similar to the behavior someone mentioned when they were trying to get PyCharm to attach to the Fusion process on a Mac  (here).

0 Likes
Message 3 of 8

Twernmilt
Explorer
Explorer

I am on a mac. Sorry, I forgot to post my platform.

 

Specifically I'm on a Macbook Pro running macOS 10.15.1, but it also happened before I upgraded yesterday.

0 Likes
Message 4 of 8

Twernmilt
Explorer
Explorer

I've got it working now. Thanks for the link. I told macOS to open all *.py files with VS Code, which got it running.

0 Likes
Message 5 of 8

Twernmilt
Explorer
Explorer

Well, it looks like I spoke too soon. I did get it working briefly, but it went back to the old behavior once I created my own script.

0 Likes
Message 6 of 8

Nilesh.Mohite
Autodesk
Autodesk

Hi @Twernmilt ,

It is issue with latest python extension installed in VSCode.

Please refer to the following similar issue.

API debugger doesn't work after Oct 2019 update

Solutions provided by @goyals will work for you. Go to Solution.

Let us know if you need more help.

 

Thanks & Regards,

Nilesh Mohite


Nilesh Mohite
LinkedIn

If my answer helped you, please use  ACCEPT SOLUTION .
Also be generous with Likes!  Thank you and enjoy!

0 Likes
Message 7 of 8

Anonymous
Not applicable

I have same issue on my mac. It did not help me to change the systemwide file association of .py with VS Code though. It still only launches a second instance of Fusion.

0 Likes
Message 8 of 8

Nilesh.Mohite
Autodesk
Autodesk

Hi @Anonymous ,

This is due latest python extension installed in VSCode. You need to downgrade extension to lower version 2019.9.34911.

Please refer to the following similar issue.

API debugger doesn't work after Oct 2019 update

Solutions provided by @goyals will work for you. Go to Solution.

Thanks and Regards,

Nilesh Mohite


Nilesh Mohite
LinkedIn

If my answer helped you, please use  ACCEPT SOLUTION .
Also be generous with Likes!  Thank you and enjoy!

0 Likes