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

Turborepo 1.12.x stopped passing command input to Vite dev server #7332

Closed
1 task done
jacobcarpenter opened this issue Feb 9, 2024 · 3 comments
Closed
1 task done
Labels
kind: bug Something isn't working

Comments

@jacobcarpenter
Copy link

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/vercel/turbo/tree/main/examples/with-vite

What package manager are you using / does the bug impact?

Yarn v1

What operating system are you using?

Mac

Which canary version will you have in your reproduction?

[email protected]

Describe the Bug

Vite's dev server is interactive. It accepts commands to perform operations like open the browser (o) and restart the server (r).

Turborepo 1.11.3 passes terminal input along to a dev server that was started through turbo dev.

Turborepo 1.12.3 however no longer seems to pass the terminal input along to the dev server instance. The keyboard input is echoed to the terminal, but does not seem to be passed along to the persistent task. This is a unfortunate disruption to a convenient workflow.

Expected Behavior

After starting the vite dev server via turbo, pressing o, then Enter opens the browser.

To Reproduce

Install the vite example and run yarn dev; once the servers start, hit o and press Enter. Notice that nothing happens.

Next run

yarn add [email protected] -W

... or whatever the appropriate command to downgrade the workspace root dependency in your preferred package manager is.

Then repeat the yarn dev followed by o and Enter. Notice that the browser opens to the dev server.

Additional context

No response

@jacobcarpenter jacobcarpenter added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo labels Feb 9, 2024
@jacobcarpenter jacobcarpenter changed the title Turborepo 1.12.x breaks Vite interactive dev server Turborepo 1.12.x stopped passing command input to Vite dev server Feb 9, 2024
@chris-olszewski
Copy link
Member

Turbo 1.11 unintentionally spawned all tasks with inherited stdin. This was fixed in 1.12 and now that turbo is spawning tasks hooked up to a psuedoterminals we cannot spawn tasks that inherit turbo's stdin.

Proper support for interactive tasks is coming with 1.13.

@chris-olszewski chris-olszewski removed the needs: triage New issues get this label. Remove it after triage label Feb 9, 2024
@shaywiin

This comment was marked as spam.

@chris-olszewski
Copy link
Member

With 1.13 this is now fixed with the new UI: https://turbo.build/blog/turbo-1-13-0#new-terminal-ui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants