Skip to content

0.19.0 regression. move-node-to-workspace returns non-zero exit code #1563

@nikitabobko

Description

@nikitabobko

Steps to reproduce:

  1. Run a move-node-to-workspace command like aerospace move-node-to-workspace 6 --window-id 239 where the window is not already on the target workspace
  2. See that the window got moved successfully
  3. Check exit code with echo $?

Expected result: Since the window got successfully moved the command should return a 0 exit code.
Actual result: It returns an exit code of 1.

Additional info

This started happening recently, it worked fine until some time ago. The change broke my scratchpad script since it has errexit set.

Ironically it does return a 0 exit code if the window is already on the target workspace.

$ aerospace -v
aerospace CLI client version: 0.19.0-Beta 1bc5df2846a54932849af5b5ce15597129e07fa0
AeroSpace.app server version: 0.19.0-Beta 1bc5df2846a54932849af5b5ce15597129e07fa0

Originally posted by @majutsushi in #1561

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expectedregressionThe behavior changed between versions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions