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

Weird escape codes in Powershell when using Turborepo v2.2.1 #9304

Open
1 task done
mdreyes opened this issue Oct 21, 2024 · 8 comments
Open
1 task done

Weird escape codes in Powershell when using Turborepo v2.2.1 #9304

mdreyes opened this issue Oct 21, 2024 · 8 comments
Labels
kind: bug Something isn't working needs: author input

Comments

@mdreyes
Copy link

mdreyes commented Oct 21, 2024

Verify canary release

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

Link to code that reproduces this issue

See screenshot of the gibberish characters when interacting with the terminal

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?

2.2.1

Describe the Bug

I'm encountering a problem with the latest Turborepo version (v2.2.1) where it generates strange escape codes in the terminal when I hover my mouse. The codes look like this:

image

This issue occurs after upgrading to version 2.2.1, cleaning up the node_modules and reinstalling with pnpm install. After running turbo dev, quitting the server, and hovering over the terminal, the weird escape codes start appearing.

Expected Behavior

There should be no escape codes or gibberish characters when interacting with the terminal after running Turborepo.

To Reproduce

Rolling back to version 2.2.0 resolves the issue. This behavior did not occur in previous versions.

Additional context

No response

@mdreyes mdreyes added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage labels Oct 21, 2024
@macrozone
Copy link

is this still present in 2.2.2 and 2.2.3? the changelog is a bit cryptic for those versions

@chris-olszewski
Copy link
Member

chris-olszewski commented Oct 22, 2024

This should be fixed in 2.2.2. If anyone is seeing this with 2.2.2 or 2.2.3, please comment and include your terminal emulator, OS, and shell.

@mdreyes Out of curiosity, what terminal and shell are you using?

@macrozone The fix for this is in #9296 where we should be disabling mouse events when we exit due to Ctrl-C

@chris-olszewski chris-olszewski added needs: author input and removed needs: triage New issues get this label. Remove it after triage labels Oct 22, 2024
@kodermax
Copy link

@chris-olszewski the error has not been fixed. I have version 2.2.3 of Windows 10, Powershell

@chris-olszewski
Copy link
Member

@kodermax Can you share your Powershell settings? I'm unable to reproduce on my Windows machine.

Also, just confirming that this only happens after you Ctrl-C in a fresh terminal?

@chris-olszewski chris-olszewski changed the title Weird escape codes in terminal when using Turborepo v2.2.1 Weird escape codes in Powershell when using Turborepo v2.2.1 Oct 23, 2024
@Netail
Copy link

Netail commented Oct 23, 2024

Facing the same issue with turbo 2.2.1 till 2.2.3 + iTerm2 3.5.5, the characters appear on every mouse movement after exiting turbo with Ctrl-C

@kodermax
Copy link

@chris-olszewski no, I get this error after I run pnpm dev. and I'm not pressing anything.
image

@chris-olszewski
Copy link
Member

@kodermax Could you share a reproduction repository?

@ugurkellecioglu
Copy link

I was using 2.2.1 on macos sonama 14.2.1, updating to version 2.2.3 fixed the issue for me.

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 needs: author input
Projects
None yet
Development

No branches or pull requests

6 participants