Skip to content

Menubar can’t find codeburn from user-managed Node PATH #331

@vaibhavarora14

Description

@vaibhavarora14

Problem

On macOS, the menubar app can fail with:

env: codeburn: No such file or directory

when codeburn is installed under user-managed Node paths (for example via nvm). GUI-launched apps often inherit a reduced PATH, so the binary is not found even though it works in Terminal.

Impact

  • Menubar refresh silently fails for affected users.
  • The app appears broken despite a valid CLI install.
  • Users with nvm/volta/asdf/npm-global layouts are disproportionately affected.

Reproduction

  1. Install codeburn in a user-managed Node location (e.g. nvm under ~/.nvm/versions/node/.../bin).
  2. Launch CodeBurn menubar app from Finder (not from an interactive shell).
  3. Trigger refresh.
  4. Observe error: env: codeburn: No such file or directory.

Root Cause

The menubar process used GUI environment PATH values that can omit user-managed Node bin directories.

Proposed / Implemented Approach

  • Augment menubar process PATH with known locations (/opt/homebrew/bin, /usr/local/bin) and discovered user bins (~/.volta/bin, ~/.npm-global/bin, ~/.asdf/shims, and nvm Node version bins containing an executable codeburn).
  • Cache discovered user PATH entries as a one-time computation so refreshes do not repeatedly rescan filesystem directories.
  • Add deterministic tests for:
    • nvm executable/bin discovery behavior
    • PATH augmentation dedupe behavior

Notes

No debug instrumentation should be kept in production for this fix line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions