Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unable to Parse Ruby Version from .tool-versions Since v1.222.0 #719

@Karibash

Description

@Karibash

Since version v1.222.0, the tool is unable to correctly parse the Ruby version from the .tool-versions file. This issue was introduced by PR #717, which changed the version parsing logic.

Steps to Reproduce

  1. Create a .tool-versions file with multiple spaces between the tool name and version:
flutter 3.29.1  
ruby    3.4.2  
  1. Try to retrieve the Ruby version using the tool.

Expected Behavior

The tool should correctly parse and return the Ruby version (3.4.2).

Actual Behavior

The tool fails to retrieve the Ruby version when multiple spaces exist between the tool name and version.

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