Skip to content

Error looping over files #37

@raymon-roos

Description

@raymon-roos

Hi! Thanks for your work on this plugin, I'm super excited for the potential!

I tried looping over some audio files in a directory to view their metada:

ls | get name | each {sound meta $in}

and ran into the following error:

Error: nu::shell::only_supports_this_input_type

  × Input type not supported.
    ╭─[repl_entry #68:1:1]
  1 │ ls | get name | each {sound meta $in}
    ·   ─┬                     ─────┬────
    ·    │                          ╰── only nothing and binary input data is supported
    ·    ╰── input type: string
    ╰────

Incidentally sound meta (ls | get 0.name) succeeds.

I'm sorry if I misunderstand how it's supposed to work.

I'm using version v.0.2.4 of the plugin, and Nushell version 0.111. Built from source on NixOS.

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