Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: Executing a running task leaves you in the wrong directory. #6579

Open
1 task done
quisido opened this issue Oct 26, 2024 · 0 comments
Open
1 task done

[Bug?]: Executing a running task leaves you in the wrong directory. #6579

quisido opened this issue Oct 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@quisido
Copy link

quisido commented Oct 26, 2024

Self-service

  • I'd be willing to implement a fix

Describe the bug

This is a really niche bug. As a testament for how much I love Yarn, I feel the need to report it, as it's the biggest problem I personally face with it.

If I have a running process ^1, and my shell dies ^2, my restored shell state is always in the package directory instead of the root directory.

  1. e.g. a running process, a Node server
  2. my shell dies, because my computer reboots or my SSH tunnel disconnects when I close VS Code

To reproduce

# Start a process, e.g. NextJS.
/path/to/app > yarn packages/xyz run dev

# close the terminal

# open the terminal
/path/to/app/packages/xyz

Environment

OS:
Windows, VS Code terminal, running Yarn
Windows, VS Code terminal, connected to Linux host running Yarn with zsh

Binaries:
Yarn 4.5, but I believe this has been long-standing since the introduction of Yarn workspaces.

Additional context

Expected behavior:

After opening the terminal, my restored state should be /path/to/app instead of /path/to/app/packages/xyz.

@quisido quisido added the bug Something isn't working label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant