Skip to content

Bug with passing arguments for non-tty stdin. #159

Closed
@Tseyang

Description

@Tseyang

In https://github.com/ruby-syntax-tree/syntax_tree/pull/152/files#diff-9c0147bbfba8210004d93e758fd167a09f12f0749003f15bd8ea5f41da995f9bR390, I believe the conditional changed from

$stdin.tty? || arguments.any? to $stdin.tty? && (arguments.any? || options.scripts.any?). This seems to alter the conditional to prevent non-tty stdin from using FileItem types. Instead you get the following warning:

[warn] stdin
The listed files did not match the expected format.

This popped up for me when I tried to upgrade syntax_tree and it broke CI checks I had previously setup.

If this was intentional, is there a better recommended way to run stree:check in CI?

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