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

Characters misplaced in inputted command #86

Open
aczekajski opened this issue Nov 24, 2023 · 1 comment
Open

Characters misplaced in inputted command #86

aczekajski opened this issue Nov 24, 2023 · 1 comment

Comments

@aczekajski
Copy link

aczekajski commented Nov 24, 2023

I have following terminal defined which has relatively long command:

{
  "name": "storybook here",
  "command": "npm run storybook:watch -- $(winpty -Xallow-non-tty -Xplain node C:/PROJECTS/foo/some-script.mjs \"[relativeFile]\")",
  "open": "true",
  "onlySingle": "true"
},

sometimes the command is being inputted into terminal with some of the characters placed in the wrong place. In this command in most cases it's the n in -Xplain missing but sometimes some other characters are getting missing as well. The strange thing is that they're not actually missing but are being placed somewhere later in the command. Resulting command always has the same length as the one that is not malformed, but there may be like 1, 2, maybe 3 characters that are in the wrong place.
It probably depends on the length of the command and maybe on the length of the prompt since one of the characters that is getting misplaced is consistently the same one.

Dunno if that helps but this is an example of misplaced characters that actually happened to me today:

// proper command with irrelevant characters replaced with underscore, showing where are the ones that got misplaced:
$ __________________________________________________________n_________________________________p________________________________n___________________________________________________________________
// example 1: first "n" and "p" got misplaced
$ __________________________________________________________________________________________________np_________________________n___________________________________________________________________
// example 2: first "n" and "p" are ok but the second "n" is misplaced
$ __________________________________________________________n_________________________________p_______________________________________________________n____________________________________________

My terminal is a git bash on windows 10.

@aczekajski aczekajski changed the title Characters missing in inputted command Characters misplaced in inputted command Nov 24, 2023
@aczekajski
Copy link
Author

99% not a problem of this extension but the general problem of vscode terminal on windows :(
Described here: microsoft/vscode#127699
If you have any idea on possibly mitigating this issue on your side, that would be awesome. If not, feel free to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant