vercel / turbo

Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turbopack and Turborepo.
https://turbo.build
MIT License
25.65k stars 1.74k forks source link

@Turbo/codemod version 2.0.3 terminal cannot be copied #8446

Closed limuen closed 1 month ago

limuen commented 1 month ago

Verify canary release

Link to code that reproduces this issue

https://github.com/limuen/monorepo-project

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

pnpm

What operating system are you using?

Mac

Which canary version will you have in your reproduction?

devDependencies: turbo 2.0.3

Describe the Bug

run: pnpm dev --filter react-low-code WechatIMG79 And then I kept getting stuck here, trying to input in the browser http://localhost:5173 But I found that it could be opened, but the terminal was stuck there and couldn't copy any information。 I had to use Ctrl+C to terminate the current program, but the console printed me the information and port for starting the project. WechatIMG78

Expected Behavior

My normal behavior should be running my pnpm dev -- filter react low code, then executing the build command for packages/viteconfig, and then running my apps/react low code pnpm dev --filter react-low-code 

monorepo-project@ dev /Users/limuen/Documents/github/monorepo-project dotenv -e .env -e .env.development -- turbo dev "--filter" "react-low-code"  • Packages in scope: react-low-code • Running dev in 1 packages • Remote caching disabled ┌ @limuen/viteconfig#build > cache hit (outputs already on disk), replaying logs 0b5e44bcd9f5abd6 │ │ > @limuen/viteconfig@1.0.0 build /Users/limuen/Documents/github/monorepo-project/packages/viteco │ nfig │ > tsup │ │ CLI Building entry: src/vite.config.ts │ CLI Using tsconfig: tsconfig.json │ CLI tsup v8.0.2 │ CLI Using tsup config: /Users/limuen/Documents/github/monorepo-project/packages/viteconfig/tsup. │ config.ts │ CLI Target: esnext │ ESM Build start │ ESM dist/vite.config.js 1.61 KB │ ESM ⚡️ Build success in 24ms │ success │ DTS Build start │ DTS ⚡️ Build success in 1918ms │ DTS dist/vite.config.d.ts 113.00 B └────> ┌ react-low-code#dev > cache bypass, force executing bfbaf4ed4d2a2bb2 │ │ > react-low-code@0.0.0 dev /Users/limuen/Documents/github/monorepo-project/apps/react-low-code │ > vite │ │ │ │ │ VITE v5.2.11 ready in 639 ms │ │ ➜ Local: http://localhost:5173/ │ ➜ Network: http://172.16.99.74:5173/ │ ➜ press h + enter to show help └────>

To Reproduce

{ "$schema": "https://turbo.build/schema.json", "globalDependencies": [".env"], "ui": "tui", "tasks": { "defaultProject#dev": { "dependsOn": ["@limuen/viteconfig#build"], "cache": false, "persistent": true, "inputs": ["$TURBO_DEFAULT$", ".env.development.local", ".env.development", ".env.local", ".env"] }, "defaultProject#build": { "dependsOn": ["@limuen/viteconfig#build"], "outputs": ["dist/"], "inputs": ["$TURBO_DEFAULT$", ".env.development.local", ".env.development", ".env.local", ".env"] }, "react-low-code#dev": { "dependsOn": ["@limuen/viteconfig#build"], "cache": false, "persistent": true, "inputs": ["$TURBO_DEFAULT$", ".env.development.local", ".env.development", ".env.local", ".env"] }, "react-low-code#build": { "dependsOn": ["@limuen/viteconfig#build"], "outputs": ["dist/"], "inputs": ["$TURBO_DEFAULT$", ".env.development.local", ".env.development", ".env.local", ".env"] }, "dev:weapp": { "dependsOn": ["^dev:weapp"], "persistent": true, "cache": false }, "dev:alipay": { "dependsOn": ["^dev:alipay"], "persistent": true, "cache": false }, "build:alipay": { "dependsOn": ["^build:alipay"], "outputs": [] }, "dev:tt": { "dependsOn": ["^dev:tt"], "persistent": true, "cache": false }, "build:tt": { "dependsOn": ["^build:tt"], "outputs": [] }, "dev": { "cache": false, "persistent": true, "inputs": ["$TURBO_DEFAULT$", ".env.development.local", ".env.development", ".env.local", ".env"] }, "build": { "dependsOn": ["^build"], "outputs": ["dist/"], "inputs": ["$TURBO_DEFAULT$", ".env.production.local", ".env.production", ".env.local", ".env"] }, "test": { "dependsOn": ["^test"], "outputs": ["dist/"], "inputs": ["$TURBO_DEFAULT$", ".env.test.local", ".env.test", ".env.local", ".env"] }, "lint": { "dependsOn": [] } } }

Additional context

It is normal in version 1.3. x, but the above issues occur when upgrading to version 2. x

anthonyshew commented 1 month ago

This appears to be a duplicate of https://github.com/vercel/turbo/issues/8372, if I'm understanding correctly.

If so, would you mind closing this issue and upvoting that one to express your interest?

limuen commented 1 month ago

Not only is it impossible to copy, but I execute the command pnpm dev -- filter react low code. Normally, after running the build package, I will run apps/react low code, and the terminal should appear ┌ react-low-code#dev > cache bypass, force executing bfbaf4ed4d2a2bb2 │ │ > react-low-code@0.0.0 dev /Users/limuen/Documents/github/monorepo-project/apps/react-low-code │ > vite │ │ │ │ │ VITE v5.2.11 ready in 639 ms │ │ ➜ Local: http://localhost:5173/ │ ➜ Network: http://172.16.99.74:5173/

But now I can't see what I want, I have to end the terminal to see this output

limuen commented 1 month ago

executing pnpm dev in the root directory also directly loads the terminal continuously WechatIMG80 Is it because I configured something incorrectly? But in version 1.3. x, it's okay

limuen commented 1 month ago

executing pnpm dev in the root directory also directly loads the terminal continuously WechatIMG80 Is it because I configured something incorrectly? But in version 1.3. x, it's okay

WechatIMG81

CTRL+C ends and the terminal comes out again, but the service has already been stopped this confusion has been bothering me since I upgraded to 2. Can you help me? thank you

limuen commented 1 month ago

Oh my god, I just saw that using arrows to select projects would only appear. I always thought it would appear in the first one and you can simply scroll down to see it.