Skip to content

rokit update leaves tool launchers unusable on Windows (os error 3) until rokit install is run #115

Description

@lewis-netizen

Environment

  • OS: Windows 11
  • Shell: PowerShell
  • Rokit version: <output of rokit --version>

Description

After updating tools with rokit update, the installed tool launchers become unusable.

For example, after updating, running:

rojo --version

results in:

ERROR: The system cannot find the path specified. (os error 3)

The launcher executable still exists in:

%USERPROFILE%\.rokit\bin\rojo.exe

and rokit list still reports the tool as installed.

Steps to reproduce

  1. Install tools using rokit install.
  2. Run rokit update.
  3. Execute a tool, for example:
rojo --version

Expected behavior

Updated tools should continue working immediately after rokit update.

Actual behavior

The launcher fails with:

ERROR: The system cannot find the path specified. (os error 3)

Workaround

Running:

rokit install

restores the tools and they begin working again.

Notes

It appears that rokit update leaves the launcher pointing to an invalid tool path, while rokit install rebuilds or refreshes the installation correctly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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