Skip to content

How to update the Pythagora VS Code extension

Weston Ludeke edited this page Dec 4, 2024 · 1 revision

When a new version of the Pythagora VS Code extension is released you should update your extension to get the latest version. New releases typically include bug fixes and improvements to the application.

Note: To find out which version of Pythagora is the most recent, you can see the history of all Pythagora versions including the release dates of each version on the VS Code Marketplace listing on the Version History tab.

Updating the Extension

To update the Pythagora extension in VS Code, open the Extensions view by clicking the Extensions icon in the Activity Bar on the side of the window. Look for Pythagora, and if an update is available, you’ll see a reload icon or an Update button next to it. Click the button to update the extension, and then reload VS Code if prompted to apply the changes.

After updating the extension, we also recommend restarting VS Code as this will force the Pythagora extension to fetch any additional updates.

New Installation of Pythagora

After updating the extension, inside the directory on your local machine where you chose to install Pythagora's files, you will see some changes. The previous directory pythagora-core will be renamed to to something like pythagora-core-backup-xxx-xxx-xx and a new pythagora-core directory will be added.

This new pythagora-core directory is where the latest version of Pythagora is installed. Any directory titled pythagora-core-backup-xxx-xxx-xx is the previous version of the extension you were using before the update, to ensure previous versions of Pythagora are preserved.

Any projects you were previously working on before updating are automatically added to the new pythagora-core directory, under the workspace subdirectory.

If Your Apps Failed to Migrate

After updating Pythagora, if any of your previously developed applications aren't showing in the workspace directory, you can still migrate the apps over.

Inside the old pythagora-core-backup-xxx-xxx-xx directory where you previously had Pythagora's core files installed, manually copy the pythagora.db file. Paste the old pythagora.db file inside the new pythagora-core directory, replacing the default pythagora.db file in the new pythagora-core directory.

Running Your App Locally via the Command Line

If you want to run your application locally via the command line, be sure to cd into the new pythagora-core directory, then cd into workspace, finally cd into your app's directory before running your application.

Handling Errors When Running Application

After updating Pythagora, if you run into any errors when starting your application, you may need to delete node_modules directory inside the application's directory, then run npm install to reinstall the project's dependencies. This issue could occur due to mismatched dependencies after the update.