[VS Code] Upgrade to the latest Python extension?

[VS Code] Upgrade to the latest Python extension?

JeromeBriot
Mentor Mentor
1,466 Views
5 Replies
Message 1 of 6

[VS Code] Upgrade to the latest Python extension?

JeromeBriot
Mentor
Mentor

Hello,

 


@goyals wrote:

It is already done and changes were delivered as part of Fusion April release. You can upgrade to latest extension from VSCode itself. Thanks.


I tried yesterday the upgrade suggested by @goyals in this message but it did'nt work on my machine (Windows 10 & ms-python 2020.4.76186).

 

After the upgrade, I restarded VS Code and the message below appeared:

fusion-360-ms-python-upgrade.png

 

I restarted Fusion 360 and my computer but then Fusion 360 refused to open VS Code. No error message.

 

I found that there was a remaining dll in the ms-python folder:

 

fusion-360-ms-python-upgrade-dll.png

 

Finally I downgraded ms-python back to version 2019.9.34911 😞

 

 

 

0 Likes
Accepted solutions (1)
1,467 Views
5 Replies
Replies (5)
Message 2 of 6

goyals
Autodesk
Autodesk
Accepted solution

Is it possible for you to give one more try by deleting all the ms-python extensions present at this place .vscode\extensions in your user's directory manually and restart Fusion and edit a script. It will install latest extension by itself. If you still notice problem, We will investigate it further. Thanks.



Shyam Goyal
Sr. Software Dev. Manager
Message 3 of 6

JeromeBriot
Mentor
Mentor

It works perfectly by first manually deleting the ms-python.python-2019.9.34911 folder in "C:\Users\<USERNAME>\.vscode\extensions"

 

Glad to see this extension up to date. 👍

 

Thank you.

0 Likes
Message 4 of 6

regalheros
Explorer
Explorer

Hi,

I have experimented and learned:

1.  Downgrading the VSCode Python Extension to 2019.9.34911 will allow Fusion 360 to open a Python script in VSCode.  Good.

2.  Once in VSCode, upgrade the Python Extension to the latest, in this case 2020.8.103604.  Great.

3.  Run the script from VSCode; press F5.

4.  Script result appears in Fusion 360.  The process is working properly!

 

So, VSCode to Fusion 360 is ok.

Fusion 360 to VSCode is not ok.

 

Is there a fix for this?

 

Regards

 

RH

 

0 Likes
Message 5 of 6

regalheros
Explorer
Explorer

Hi,

Is there a solution to the "downgrade Python extension to fix VSCode not opening"?

I have:

1. Downgraded VSCode Python Extension to 2019.9.34911.  <Begrudgingly>

2. Opened a Python script for editing in Fusion 360.

3. VSCode opens.  <Great>

4. Upgrade Python Extension to 2020.8.103604 (latest today).

5. Running the script from VSCode (press f5) results in object appearing in Fusion 360.  <Fantastic>

 

It appears Fusion can't 'link' to VSCode.  No problem with VSCode.

 

As I don't only use VSCode for Fusion 360 programming I would like a fix to this.  Is there a time frame for this?

 

Regards

RH

0 Likes
Message 6 of 6

JeromeBriot
Mentor
Mentor

@regalheros wrote:

4. Upgrade Python Extension to 2020.8.103604 (latest today).


Hi,

 

It works only until the 2020.6.91350 version.

 

0 Likes