\

Ask HN: Antigravity 2.0 installer breaks existing Antigravity IDEs

3 points - yesterday at 8:27 PM


If you had Antigravity IDE installed before yesterday's 2.0 release, both products now live in the same directory and only one of them actually runs. Double-clicking Antigravity IDE.exe launches 2.0.

Electron exes load resources/app.asar first, then resources/app/, from the same folder as the exe. The exe name has no effect on this lookup. The 2.0 installer dropped app.asar (2.0 code) next to the IDE's app/ folder, and the asar wins — so both Antigravity IDE.exe and Antigravity.exe end up loading 2.0. if you window, Turn on the powershell

Workaround: cd "$env:LOCALAPPDATA\Programs\Antigravity\resources" Rename-Item app.asar app.asar.bak

Antigravity IDE.exe then falls back to the IDE's app/ folder and launches the real IDE 1.107.0. Rename back to restore 2.0.

Caveat: only one at a time. With app.asar renamed aside, Antigravity.exe also falls back to the IDE folder. Permanent fix is to uninstall both and reinstall to separate directories — the installer is Inno Setup (unins000.exe), so /DIR="..." should work. Not an Electron bug. Location-based loading is documented behavior. This is a packaging mistake in Google's 2.0 installer assuming two separate Electron products can share an install directory.

  • quietforgelabs

    yesterday at 10:18 PM

    A friend of mine ran into the exact same issue. I just ended up uninstalling 2.0 and reinstalling the IDE for them.