Skip to content

Default ruby path /usr/bin/ruby fails on Windows, and no message is shown #5

Open

Description

@dpc00

Claude reports:

The default ruby_check_on_save_cmd is /usr/bin/ruby, which does not exist on Windows, and a failed start of Ruby gives no message.

Sublime Text build 4215, Windows, files from the repo master, with the settings-name problem from the other issue patched locally. Saving a .rb file then gave FileNotFoundError: [WinError 2] The system cannot find the file specified in the console only; no dialog or status message. (Ruby is not installed on this machine, so the syntax check itself was not run.)

The same would happen on macOS with Homebrew/rbenv Ruby, where ruby is not at /usr/bin/ruby.

Fix: default to "ruby" (found via PATH) and catch OSError around Popen, showing sublime.error_message that names the setting.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions