Skip to content

0.77.0 broke my def-env command #8467

Closed

Description

@Araxeus

Question

Here's my command:

def-env lsi [...path: string] { 
     let output = (ls-interactive ($path | str collect ' ')) 
     cd ( 
         if ($output | is-empty) { $env.PWD }  
         else { $output } 
     ) 
 } 

ls-interactive is an interactive file chooser, but now suddenly it doesn't seem to show its stdout while it's running or something
I'm not sure what's going on, it just doesn't display anything

It was working fine on <=0.76.0

Additional context and details

I have read the release notes and the breaking changes specifically, but I don't see anything that I use here? what am I missing? is this a bug?

Activity

  1. added
    deprecated:question
    on Mar 15, 2023
  2. Araxeus commented on Mar 15, 2023

    @Araxeus
    Author

    I isolated the problem to the Parentheses () operator

    just go to the command line and run ls-interactive - its all working fine
    now run (ls-interactive) and there is nothing displayed at all

    this wasn't the behavior in v0.76.0 and I think this might be a bug actually since it doesn't seem to be documented?

  3. Araxeus commented on Mar 16, 2023

    @Araxeus
    Author

    Ok lol I have the easiest reproducible case:

    (cargo build) 
    

    or

    (cargo install nu)
    

    on v0.76.0 it renders fine, on v0.77.0 the animation is clearly broken

    this is definitely a bug

  4. added
    A:external-commands
    category:regression
    A:redirection-pipe
    and removed
    deprecated:question
    on Mar 16, 2023
  5. sholderbach commented on Mar 16, 2023

    @sholderbach
    Member

    Could this be related to the changes in #8204 that prompt the issue #8472 ?

  6. Araxeus commented on Mar 17, 2023

    @Araxeus
    Author
  7. added this to the v0.78.0 milestone on Mar 17, 2023
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

    A:external-commandsA:redirection-pipecategory:regression

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions