Pumas VS Code Extension
This extension helps you manage and use different versions of Pumas and DeepPumas within VS Code.
What This Extension Does
The extension allows you to:
- Install and manage multiple versions of Pumas and DeepPumas
- Switch between different versions for different projects
- Open a Julia REPL with a specific Pumas version loaded
- Configure VS Code's Julia extension to work with your selected Pumas version
Requirements
- Julia installed on your system
- juliaup for managing Julia versions (the extension will help you install this if needed)
- VS Code version 1.102.0 or higher
Getting Started
- After installing the extension, use the Command Palette (
Ctrl+Shift+P
or Cmd+Shift+P
on Mac)
- Run
Pumas: Get Started
to see the welcome page with documentation links
- Run
Pumas: List Versions
to see available Pumas and DeepPumas versions
- Select a version to install or open in the REPL
How to Install Pumas Versions
When you run Pumas: List Versions
, you'll see a list of all available versions:
- Stable releases are marked with a package icon (📦)
- Prereleases are marked with a flask icon (🧪)
- Installed versions show "- Installed" in the description
To install a version:
- Select the version you want from the list
- A menu appears with available actions:
- If not installed: Choose "Install"
- If already installed: Choose "Open REPL" or "Configure VS Code"
- For installation, choose between:
- Global installation: Makes the version available system-wide
- Project installation: Installs in a specific project folder
The installation runs in the terminal so you can see the progress.
How to Use Installed Versions
Once you have a version installed:
- Run
Pumas: List Versions
- Select your installed version (shows "- Installed" in description)
- Choose from the menu:
- Open REPL: Starts Julia with that specific Pumas version loaded
- Configure VS Code: Sets this version as your default for all Julia operations
- Remove: Uninstalls the product (removes juliaup channel and environment folder)
Setting a Default Pumas Version
You can configure VS Code to always use a specific Pumas version:
- Click on an installed version in the list
- Select "Configure VS Code"
- Choose between:
- Set Globally: Makes this the default for all VS Code windows
- Set for Workspace: Only applies to the current project/workspace
Once configured, the Julia extension's "Start REPL" command will automatically use your selected Pumas version. This is the recommended way to work with a consistent Pumas version across your projects
Removing a Pumas Version
To uninstall a Pumas product:
- Select an installed version from the list
- Choose "Remove" from the menu
- Confirm the removal when prompted
This will:
- Remove the juliaup channel (for global installations)
- Delete the environment folder at
~/.julia/environments/{productId}
Note: Removal cannot be undone. You'll need to reinstall the product if you want to use it again.
Available Commands
All commands are available through the Command Palette (Ctrl+Shift+P
or Cmd+Shift+P
):
Pumas: Get Started
- Opens the welcome page with links to documentation
Pumas: List Versions
- Shows all available Pumas and DeepPumas versions with install/open options
Pumas: Show Logs
- Opens the output panel to see installation progress and diagnostic messages
Settings
The extension provides these settings (accessible in VS Code settings):
pumas.showWelcomeOnStartup
: Whether to show the welcome page when VS Code starts (default: true)
Working with Projects
You can install different Pumas versions for different projects:
- Open your project folder in VS Code
- Run
Pumas: List Versions
- Click "Install" and choose "Install in project"
- Select your project folder
This keeps your project isolated with its own Pumas version.
Background Operations
The extension handles several things automatically:
- Installs PumasProductManager.jl (the Julia package that manages Pumas versions) when first needed
- Checks for and offers to install juliaup if it's not found
- Suggests installing the Julia and Quarto VS Code extensions for the best experience
- Caches version information for faster access
Troubleshooting
If you encounter issues:
No versions appearing: The extension may be setting up in the background. Wait a few seconds and try again.
Installation fails: Run Pumas: Show Logs
to see detailed error messages.
Julia not found: Make sure Julia is installed and available in your system PATH.
Juliaup not found: The extension will prompt you to install it. Follow the provided instructions.
REPL doesn't start: Check that the Julia extension is installed and configured correctly.
Technical Details
The extension works by:
- Using juliaup to manage different Julia channels for each Pumas version
- Installing Pumas products through PumasProductManager.jl
- Configuring the VS Code Julia extension to use the correct executable and environment
- Managing terminals and REPLs for running Julia with specific Pumas versions
Resources
License
This extension is proprietary software. Please refer to your Pumas license agreement for details.