Skip to content

VSCode is installed but 'code' is not available in the PATH - should be detected by init/config #372

@rexsilex

Description

@rexsilex
Diagnostic Information
Property Value
CLI Version 0.4.1
Node.js Version v24.9.0
OS darwin
OS Version 24.5.0
Architecture arm64
Capabilities web
Claude CLI Version 2.0.73 (Claude Code)

VSCode is installed but 'code' is not available in the PATH - should be detected by init/config


Enhancement Request Analysis

Questions for Reporter

Question Answer
Is VSCode installed via the standard installer, from homebrew, or another method? @rexsilex, to reply, please edit this issue to answer these questions.
When you run which code in terminal, what output do you get?
Does VSCode's "Shell Command: Install 'code' command in PATH" option work when run from inside VSCode?
Are you able to manually add the code command to PATH, and if so, what path works?

Problem Summary
VSCode is installed and functional on the system but the code command is not available in the terminal PATH, preventing iloom from launching the IDE when starting a loom workspace. The il init command should detect this situation and provide guidance to resolve it.

User Impact
Users with VSCode installed cannot take advantage of the automatic IDE launch feature during il start, reducing the seamless workflow experience that iloom provides. They must manually open their loom workspace in VSCode after creation.

Enhancement Goal
The il init configuration wizard should detect when VSCode is installed but the code command is missing from PATH, then provide platform-specific instructions or automated fixes to resolve the PATH issue.

Next Steps

  • Reporter to answer questions above for full context
  • Investigate VSCode installation detection methods beyond PATH checking
  • Consider adding automatic PATH configuration or clear user guidance in init wizard

📋 Complete Context & Details (click to expand)

Current Behavior
According to the TECHNICAL_ARCHITECTURE.md, iloom detects VS Code using which code (line 598). If the command is not in PATH, iloom silently skips IDE launch. The il init command configures IDE preferences but doesn't validate that the chosen IDE is actually accessible.

Proposed Solution

  1. Enhanced detection in il init:

    • Check for VS Code installation in common locations:
      • macOS: /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code
      • Windows: %LOCALAPPDATA%\\Programs\\Microsoft VS Code\\bin\\code.cmd
      • Linux: /usr/bin/code or /usr/local/bin/code
  2. When VS Code is found but code command is missing:

    • Display clear instructions for adding to PATH
    • Offer to create symlink/alias automatically (with user permission)
    • Provide VS Code's built-in PATH installation command instructions
  3. Update SettingsManager to validate IDE accessibility during configuration

  4. Consider adding a diagnostic command like il doctor to check all dependencies

Benefits

  • Smoother onboarding experience for new users
  • Reduced friction when VS Code is installed but not properly configured
  • Better error messages when IDE launch fails
  • Proactive problem detection during initial setup

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions