-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Forward stdin #1235
Comments
I went and made |
|
Are there any workarounds for this? Something like this would be nice: {
"$schema": "https://turborepo.org/schema.json",
"pipeline": { /* ... */ },
"stdin": "web" // Package ID to forward stdin to
} It would also eliminate any uncertainties, since we are able to pass only one package at a time. |
Any input on the priority/interest in this from the Vercel team? Any major engineering blockers? It seems like this would be possible without too much complexity as long as |
I think if we're going to do this, we would need to have the restrictions you mention ( So that brings us to the syntax. I think the proposal for adding |
Today I run into an use case in which maybe having |
Yeah, this would be super helpful, |
another use case is for a turbo command which runs |
another use case is Prisma migrations. After running After ctrl+c exiting the command, I was able to see the last line |
Another use case is with expo when running |
Not being able to run generators, builders, surveys etc feels like a deal-breaker. I'm investigating monorepo tools and for comparison, other tools do not suffer this obvious limitation! |
I am using turbo repos with expo and I can not enter r in the command line to refresh the bundle while development, please fix it |
As mentioned in a linked shopify cli issue also the |
Drizzle is also unusable without this :/ |
I'm having the same issue when running jest in --watch mode. |
Would be interested in this feature too, to forward commands to Metro in React Native projects. |
graph protocol / graph nodes unusable without this |
Hey guys, two weeks ago Turborepo released a new Teminal UI. This seems to be the solution or not? Unfortunately there was no reporting back in this issue, @chris-olszewski @mehulkar could you give us an update? I tried it and it seems to work, but the console output is cut off so I cant see what I am doing: Also it bothers me that when I only have on task running (which is common e.g. for Drizzle) it still shows this task UI and I need to jump into the task with enter key. Instead Turbo could notice I am executing just one task and just show me the output of this task with nothing around it. |
We've now shipped this functionality as a part of 2.0: https://turbo.build/blog/turbo-2-0#interactive-tasks |
I can't understand why this issue has been closed since the OP issue is still present in the latest version ( The shopify cli can't be used, even when the task is selected. |
Watch mode is not the same as forwarding stdin, for example I cannot use the react native debugger from CLI without forwarding stdin |
Apologies, I linked the wrong heading: https://turbo.build/blog/turbo-2-0#interactive-tasks Edited my post two above this one. |
Amazing, thank you! Definitely had me confused for a second! |
Hi @anthonyshew It's not still enabling the interactive CLI. cc: @leerob |
### Description - Adding `ui` to the `turbo.json` allows to have interactive tasks #1235 (comment) ### Testing Instructions 1. Create a new project `npx create-turbo@latest -e with-react-native-web` 2. Run `pnpm run dev` 3. It opens a new terminal UI
Describe the feature you'd like to request
Hi!
I have a pretty standard setup, where I have a
dev
script runningnodemon
.nodemon
allows to type a specialrs
command to stdin, triggering a restart of the process, which is very useful.It works fine when ran directly, but it does not work through turbo, as turbo does not forward stdin to the underlying process.
Describe the solution you'd like
Maybe a task definition in
turbo.json
could have aforwardStdin
option, which would, when enabled, forward stdin!I think
forwardStdin: true
should be mutually exclusive withcache: true
, because stdin could impact the result of the task.TURBO-588
The text was updated successfully, but these errors were encountered: