Google Antigravity & Plateform.io extension and pyhton version 3.14 crash plateform.io does not start

Here how Gemini fast 3 fix my plateform.io extension: :magnifying_glass_tilted_left: Root Cause Analysis

By examining the Extension Host logs (exthost.log), I found a critical activation error:
TypeError: Cannot read properties of undefined (reading ‘packageJSON’)

This error occurred because the PlatformIO extension fork you are using (davidgomes.platformio-ide-cursor) was still looking for itself using the original PlatformIO identifier (platformio.platformio-ide). Since it couldn’t find an extension with that ID, it returned undefined, crashing the activation process.

:hammer_and_wrench: Actions Taken

  1. Patched the Extension: I have modified the compiled code in the extension’s directory:
    • File: C:\Users\miche.antigravity\extensions\davidgomes.platformio-ide-cursor-0.0.1-universal\dist\extension.js
    • Change: Replaced the hardcoded ID platformio.platformio-ide with the correct ID for your environment: davidgomes.platformio-ide-cursor.
  2. Verified Environment:
    • Confirmed Python 3.13 is now your primary system Python (3.14 has been removed from PATH).
    • Confirmed PlatformIO’s internal environment (penv) is using Python 3.11.1, which is stable and compatible.

:rocket: Next Steps for You

To apply the fix, please:

  1. Fully Close VS Code / Antigravity.
  2. Restart the application.

PlatformIO should now activate correctly. If you see it downloading the PIO Core, let it finish; it’s a one-time setup after cleaning the environment.

Starting logs check summary:

  • Status: Fixed (Activation error resolved).
  • Python Status: Compatible (3.13 on PATH, 3.11 in penv).
1 Like

worked for me, thanks a lot :>

I successfully applied Gemini’s fix on Debian 12 and it works perfectly.

For those using Linux/Debian, the file paths and the method to patch the extension.js file are slightly different. Here is how to do it via terminal:

1. Locate the extension folder The extensions for Antigravity/Cursor are usually located in your home directory. Open your terminal and find the exact folder name: ls ~/.antigravity/extensions/ | grep platformio

2. Apply the Patch (Quick Fix via sed) Navigate to the dist folder of the extension (replace the folder name with yours) and run this command to replace the hardcoded ID:

cd ~/.antigravity/extensions/davidgomes.platformio-ide-cursor-0.0.1-universal/dist/
# Backup the original file
cp extension.js extension.js.bak
# Patch the extension ID
sed -i 's/platformio.platformio-ide/davidgomes.platformio-ide-cursor/g' extension.js

3. Ensure Python dependencies are present On Debian 12, make sure you have the necessary Python tools for PlatformIO to build its environment: sudo apt update && sudo apt install python3-venv python3-pip

4. Restart Restart Antigravity. The extension should now activate and begin the PIO Core installation.