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

tsc --watch changes shell's current directory to ~ in Terminal.app while running #57894

Closed
verhovsky opened this issue Mar 21, 2024 · 4 comments
Labels
External Relates to another program, environment, or user action which we cannot control.

Comments

@verhovsky
Copy link

verhovsky commented Mar 21, 2024

πŸ”Ž Search Terms

watch current directory

πŸ•— Version & Regression Information

  • I was unable to test this on prior versions because it's too much work

⏯ Playground Link

No response

πŸ’» Code

tsc --watch -p ./

πŸ™ Actual behavior

When running the above command in macOS's Terminal.app and pressing Cmd+t to open a new shell it opens a new shell at my home directory

πŸ™‚ Expected behavior

Terminal.app should open the new shell in the same directory that I ran the command from.

Additional information about the issue

webpack --watch

works the way I expect.

@RyanCavanaugh
Copy link
Member

We never call chdir or equivalent as far as I can tell -- I don't know how Terminal.app decides what the new shell directory logic is, but maybe it's something else?

@RyanCavanaugh RyanCavanaugh added the Needs More Info The issue still hasn't been fully clarified label Mar 21, 2024
@verhovsky
Copy link
Author

Yea, it's something to do with Terminal.app. iTerm2 does the right thing after enabling Profiles β†’ Working Directory β†’ Reuse previous session's directory and so does Alacritty.

@verhovsky verhovsky changed the title tsc --watch changes shell's current directory to ~ while running tsc --watch changes shell's current directory to ~ in Terminal.app while running Mar 22, 2024
@RyanCavanaugh RyanCavanaugh added External Relates to another program, environment, or user action which we cannot control. and removed Needs More Info The issue still hasn't been fully clarified labels Mar 22, 2024
@RyanCavanaugh
Copy link
Member

If you can point to what we're doing wrong I'm happy to fix, but we don't have a realistic way to reverse engineer what Terminal.app is looking for / doing.

@typescript-bot
Copy link
Collaborator

This issue has been marked as "External" and has seen no recent activity. It has been automatically closed for house-keeping purposes.

@typescript-bot typescript-bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External Relates to another program, environment, or user action which we cannot control.
Projects
None yet
Development

No branches or pull requests

3 participants