VS Code Tasks Safety Guide¶
๐ก๏ธ Prerequisite Safety System¶
All ReViewPoint VS Code tasks now include automatic prerequisite checking to prevent failures and provide helpful guidance.
๐ Tasks with Built-in Safety Checks¶
Setup & Prerequisites¶
Task Name | Safety Checks | What It Installs |
---|---|---|
Setup Fresh Windows Machine | None (installs everything) | Chocolatey, Git, Node.js, pnpm, Python, pipx, Hatch |
Quick Prerequisites Check | Verifies all tools | Nothing (verification only) |
Validate Complete Setup | Full system validation | Dependencies + functionality test |
Development Tasks¶
Task Name | Checks For | Stops If Missing | Error Message |
---|---|---|---|
Start Backend | Node.js | โ | "โ Node.js not found! Run 'Setup Fresh Windows Machine' task first" |
Start Frontend | pnpm | โ | "โ pnpm not found! Run 'Setup Fresh Windows Machine' task first" |
Start Both - SQLite | pnpm | โ | "โ pnpm not found! Run 'Setup Fresh Windows Machine' task first" |
Start Both - PostgreSQL | pnpm | โ | "โ pnpm not found! Run 'Setup Fresh Windows Machine' task first" |
Testing Tasks¶
Task Name | Checks For | Stops If Missing | Error Message |
---|---|---|---|
Run All Backend Tests | Node.js | โ | "โ Node.js not found! Run 'Setup Fresh Windows Machine' task first" |
Run Fast Backend Tests | Node.js | โ | "โ Node.js not found! Run 'Setup Fresh Windows Machine' task first" |
Install Dependencies | pnpm, hatch | โ | "โ Prerequisites missing! Run 'Setup Fresh Windows Machine' task first" |
๐ฆ Safety Flow¶
Successful Flow:¶
Missing Prerequisites Flow:¶
1. User runs task โ 2. Prerequisites check fails โ 3. โ Clear error message โ 4. Guidance to installer
๐ก Error Messages & Guidance¶
Standard Error Format:¶
โ [Tool] not found! Run "Setup Fresh Windows Machine" task first
๐ก Or run: .\scripts\install-prerequisites.ps1
Success Message Format:¶
๐ง How to Fix Missing Prerequisites¶
Method 1: VS Code Task (Recommended)¶
- Press
Ctrl+Shift+P
- Type "Tasks: Run Task"
- Select "ReViewPoint: Setup Fresh Windows Machine"
- Wait for completion
- Try your original task again
Method 2: Command Line¶
Method 3: Quick Check¶
Run "ReViewPoint: Quick Prerequisites Check" to verify what's installed.
๐ฏ Benefits for Academic Grading¶
For Professors:¶
- Zero surprises: Clear list of what gets installed before proceeding
- No silent failures: Tasks stop with helpful messages if tools are missing
- One-click setup: Single task installs everything needed
- Complete transparency: Every tool installation is clearly documented
For Students:¶
- Foolproof setup: Impossible to accidentally skip prerequisites
- Helpful guidance: Clear error messages with exact fix instructions
- Safety first: No task will fail mysteriously due to missing tools
๐ Verification Commands¶
Manual Verification:¶
# Check each tool individually
git --version
node --version
pnpm --version
python --version
hatch --version
docker --version # Optional
Automated Verification:¶
Use the "ReViewPoint: Validate Complete Setup" task for comprehensive validation.
๐ Task Descriptions¶
All task descriptions now include safety indicators:
- โ Checks prerequisites โ (indicates safety checking enabled)
- ๐ FIRST TIME SETUP: (indicates tool installation)
- โ Verify (indicates verification only)
- ๐งช Complete validation (indicates comprehensive testing)
This safety system ensures 100% reliability for academic grading scenarios where the project must work on any fresh Windows machine!