Getting Started
This guide will walk you through installing and configuring Pike LSP for VS Code.
Requirements
Before installing Pike LSP, ensure you have:
Installing Pike
Linux (Debian/Ubuntu)
# Download from Lysator (recommended)
wget https://pike.lysator.liu.se/pub/pike/latest/Pike-v8.0.1116-linux-x64.tar.bz2
tar -xjf Pike-v8.0.1116-linux-x64.tar.bz2
cd Pike-v8.0.1116-linux-x64
sudo ./install.sh
# Or install from repository (may be outdated)
sudo apt update
sudo apt install pike
macOS
# Using Homebrew
brew install pike
# Or download from https://pike.lysator.liu.se/download/
Windows (WSL)
Install Pike inside WSL using the Linux instructions above.
Verifying Installation
pike --version
Expected: Pike v8.0.1116 or later.
Installing the VS Code Extension
From VS Code Marketplace
- Open VS Code
- Go to Extensions (
Ctrl+Shift+XorCmd+Shift+Xon macOS) - Search for "Pike Language Support"
- Click Install
From VSIX File
If you have a VSIX file:
code --install-extension pike-lsp.vsix
Build from Source
For development or the latest features:
# Clone the repository
git clone https://github.com/TheSmuks/pike-lsp.git
cd pike-lsp
# Install dependencies
bun install
# Build all packages
bun run build
# Package the VS Code extension
cd packages/vscode-pike
bun run package
Configuration
Basic Configuration
Open VS Code settings (Ctrl+,) and search for "Pike":
| Setting | Description | Default |
|---|---|---|
pike.pikePath | Path to Pike executable | "pike" |
pike.trace.server | LSP trace level | "off" |
File Associations
To enable Pike LSP for additional file extensions:
{
"files.associations": {
"*.rjs": "pike",
"*.inc": "pike"
}
}
Environment Variables (Development)
For running tests or developing Pike LSP:
export PIKE_SRC=/path/to/Pike-v8.0.1116
export ROXEN_SRC=/path/to/Roxen
Add these to your .bashrc or .zshrc for persistence.
Verification
After installation:
- Open a
.pikeor.pmodfile - Check the VS Code status bar for "Pike LSP" indicator
- Try hovering over a function to see type information
- Press
F12to navigate to a symbol definition - Press
Ctrl+Spacefor code completion
Troubleshooting
Pike Not Found
If you see "Pike executable not found":
- Verify Pike is in your PATH:
pike --version - Set
pike.pikePathin VS Code settings to the full path
Extension Not Activating
- Check the Output panel (View > Output > Pike Language Server)
- Ensure the file has a
.pikeor.pmodextension - Reload VS Code window if needed
Performance Issues
- Large workspaces: Initial indexing may take time, but runs in background
- Check the Troubleshooting page for more solutions
Next Steps
- Features - Explore all available features
- Configuration - Advanced configuration options
- Contributing - How to contribute to Pike LSP