<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot launch VSCode by &amp;quot;Scripts and Add-ins&amp;quot; -&amp;gt; &amp;quot;Edit&amp;quot; in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12692553#M1673</link>
    <description>&lt;P&gt;It worked to me too. Thanks a lot!!!!&lt;/P&gt;</description>
    <pubDate>Sun, 07 Apr 2024 16:05:19 GMT</pubDate>
    <dc:creator>en9y37</dc:creator>
    <dc:date>2024-04-07T16:05:19Z</dc:date>
    <item>
      <title>Cannot launch VSCode by "Scripts and Add-ins" -&gt; "Edit"</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12688292#M1668</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="スクリーンショット 2024-04-05 100556.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1346086i73FFF90398352295/image-size/medium?v=v2&amp;amp;px=400" role="button" title="スクリーンショット 2024-04-05 100556.png" alt="スクリーンショット 2024-04-05 100556.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The "Edit" button should launch VSCode. But now, it doesn't. I found it with my Windows 11, and verified with Windows 11 Enterprise Evaluation (&lt;A href="https://info.microsoft.com/ww-landing-windows-11-enterprise.html" target="_blank" rel="noopener"&gt;here&lt;/A&gt;) on VirtualBox 7.0.12. VSCode has been changed something?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 01:12:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12688292#M1668</guid>
      <dc:creator>hajime2MRG3</dc:creator>
      <dc:date>2024-04-05T01:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot launch VSCode by "Scripts and Add-ins" -&gt; "Edit"</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12688432#M1669</link>
      <description>&lt;P&gt;The same happened to me today. I believe it was a change in the just released v2024.4.0 of the VSCode python extension. Unfortunately, downgrading the extension to the previously working v2024.2.1 did not solve the problem for me. Luckily it was a fairly simple fix for me so we don't have to wait for Fusion to be updated.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;All we have to do is edit the&amp;nbsp;&lt;EM&gt;pre-run.py&lt;/EM&gt; file to change "pythonFiles" to "python_files". This script can be found in Fusion by opening Preferences &amp;gt; API and navigating to the "Default Path for Scripts and Add-Ins." From here, we just need to navigate to the &lt;EM&gt;./&lt;/EM&gt;&lt;EM&gt;Python/vscode&lt;/EM&gt; directory where the script is stored.&amp;nbsp;On a Mac, the full path may look like &lt;EM&gt;"&lt;/EM&gt;&lt;EM&gt;/Users/&amp;lt;username_goes_here&amp;gt;/Library/Application Support/Autodesk/Autodesk Fusion 360/API/Python/vscode/pre-run.py"&lt;/EM&gt;. Edit this file and find "pythonFiles" when setting msPythonPath and change it to "python_files". Restart Fusion and you should be good to go with v2024.4.0 of the ms-python.python extension. Here's the full difference:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;+++ pre-run.py	2024-04-04
@@ -38,7 +38,7 @@
         msPythonPath = os.path.expandvars(msPythons[0][0].path)
         index = msPythonPath.rfind('.')
         version  = int(msPythonPath[index+1:])
-        msPythonPath = os.path.join(msPythonPath, 'pythonFiles', 'lib','python')
+        msPythonPath = os.path.join(msPythonPath, 'python_files', 'lib','python')
         msPythonPath = os.path.normpath(msPythonPath)
         if os.path.exists(msPythonPath) and os.path.isdir(msPythonPath):
             return msPythonPath&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason for this change is described in the &lt;A href="https://github.com/microsoft/vscode-python/releases" target="_blank" rel="noopener"&gt;vscode-python changelog&amp;nbsp;&lt;/A&gt;where it notes&amp;nbsp;&lt;A href="https://github.com/microsoft/vscode-python/pull/22921" target="_blank" rel="noopener"&gt;Issue #22921&lt;/A&gt;&amp;nbsp;"Rename pythonFiles to python_files". Hope that works for you too!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 03:33:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12688432#M1669</guid>
      <dc:creator>KarlRBS</dc:creator>
      <dc:date>2024-04-05T03:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot launch VSCode by "Scripts and Add-ins" -&gt; "Edit"</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12688458#M1670</link>
      <description>&lt;P&gt;It worked like a charm! Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 03:58:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12688458#M1670</guid>
      <dc:creator>hajime2MRG3</dc:creator>
      <dc:date>2024-04-05T03:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot launch VSCode by "Scripts and Add-ins" -&gt; "Edit"</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12688806#M1671</link>
      <description>&lt;P&gt;me too - worked fine thismorning, now I can't get anything done!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above solution did nothing for me (Windows 10N)&lt;/P&gt;&lt;P&gt;** Update - you have to close and restart Fusion for this to start working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also fixes "debug":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic_2024-04-05_17.52.41_482.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1346189i0708421D3AB3AC84/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic_2024-04-05_17.52.41_482.png" alt="pic_2024-04-05_17.52.41_482.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It probably should not be marked as "Fixed" ... editing system files manually is a workaround - someone else really needs to find and fix the root problem here.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 08:04:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12688806#M1671</guid>
      <dc:creator>OceanHydroAU</dc:creator>
      <dc:date>2024-04-05T08:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot launch VSCode by "Scripts and Add-ins" -&gt; "Edit"</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12689019#M1672</link>
      <description>&lt;P&gt;The above fix did not completely resolve the issue on my PC (Windows 11). There was something wrong with the Python Debugger extension :&lt;/P&gt;&lt;LI-CODE lang="general"&gt;20240405T114111 I .15948 VSCode:Starting script run
20240405T114111 I .15948 VSCode:Python manager initializing
20240405T114111 I .15948 VSCode:Running script
20240405T114111 I .15948 VSCode:Python manager initializing
20240405T114111 I .15948 VSCode:Running python script
20240405T114111 E .15948 NUBASE.PYTHON: failed to start python debugger:

Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
ModuleNotFoundError: No module named 'debugpy'

20240405T114111 I .15948 VSCode:Launching visual studio code editor failed&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to downgrade the "Python" extension and the "Python Debugger" extension in VS Code to version v2024.2.1 and to version v2024.2.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 10:00:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12689019#M1672</guid>
      <dc:creator>JeromeBriot</dc:creator>
      <dc:date>2024-04-05T10:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot launch VSCode by "Scripts and Add-ins" -&gt; "Edit"</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12692553#M1673</link>
      <description>&lt;P&gt;It worked to me too. Thanks a lot!!!!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 16:05:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12692553#M1673</guid>
      <dc:creator>en9y37</dc:creator>
      <dc:date>2024-04-07T16:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot launch VSCode by "Scripts and Add-ins" -&gt; "Edit"</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12693326#M1674</link>
      <description>&lt;P&gt;On Windows, the pre-run.py file is located under :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Users\&amp;lt;USERNAME&amp;gt;\AppData\Local\Autodesk\webdeploy\production\b6226a03d2af9e144aa8b1b7e17cf8eb0cd990f1\Python\vscode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't find the b6226a03d2af9e144aa8b1b7e17cf8eb0cd990f1 folder, search for the newest one.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 06:12:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12693326#M1674</guid>
      <dc:creator>JeromeBriot</dc:creator>
      <dc:date>2024-04-08T06:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot launch VSCode by "Scripts and Add-ins" -&gt; "Edit"</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12715654#M1675</link>
      <description>&lt;P&gt;edit: still broken&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 01:22:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12715654#M1675</guid>
      <dc:creator>GAAS.Design</dc:creator>
      <dc:date>2024-04-18T01:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot launch VSCode by "Scripts and Add-ins" -&gt; "Edit"</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12753000#M1676</link>
      <description>&lt;P&gt;Hey, I tried this but sadly it dosen't seem to work anymore. Is there some other solution?&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2024 21:33:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12753000#M1676</guid>
      <dc:creator>erik_per_rosen</dc:creator>
      <dc:date>2024-05-04T21:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot launch VSCode by "Scripts and Add-ins" -&gt; "Edit"</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12753126#M1677</link>
      <description>&lt;P&gt;See this post for a solution.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/fusion-api-and-scripts/can-t-edit-or-debug-my-python-scripts/m-p/12753123#M21475" target="_blank"&gt;https://forums.autodesk.com/t5/fusion-api-and-scripts/can-t-edit-or-debug-my-python-scripts/m-p/12753123#M21475&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2024 00:20:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/cannot-launch-vscode-by-quot-scripts-and-add-ins-quot-gt-quot/m-p/12753126#M1677</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2024-05-05T00:20:37Z</dc:date>
    </item>
  </channel>
</rss>

