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

The term 'Y' is not recognized as the name of a cmdlet, function, script file, or operable program. #142145

Closed
andrewpmk opened this issue Feb 4, 2022 · 4 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster

Comments

@andrewpmk
Copy link

I keep getting this error when I run commands like npm install, etc. in Visual Studio Code:

Y : The term 'Y' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1

  • Y
  • ~
    • CategoryInfo : ObjectNotFound: (Y:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

Is this caused by this feature:
The terminal is now able to automatically reply when a specific sequence of characters is received. A good example of where this is useful is the Windows batch script message Terminate batch job (Y/N)? after hitting Ctrl+C when running a batch script. This typically just ends up causing problems for the user and so a default automatic reply was added. The terminal will now automatically reply with Y and enter (\r), which makes Ctrl+C in Windows feel much better.

  • VS Code Version: 1.6.4 (user setup)
  • OS Version: Windows_NT x64 10.0.19044
@Tyriar
Copy link
Member

Tyriar commented Feb 4, 2022

Did you hit ctrl+c to trigger this? A screenshot of the terminal around where the bad Y happened would be helpful.

@Tyriar Tyriar added the info-needed Issue requires more information from poster label Feb 4, 2022
@Tyriar
Copy link
Member

Tyriar commented Feb 4, 2022

Also do you use Clink? Can you share your terminal profile/how your shell is launched?

@chrisant996
Copy link

chrisant996 commented Feb 5, 2022

@Tyriar can you please see #142255? VSCode mentions the abandoned mridgers Clink repo, and it would be great to update the links to point at the current official resurrected Clink repo. The chrisant996 fork of Clink has extensive significant enhancements and fixes, currently on v1.3.5 (vs the abandoned mridgers v0.4.9 from 2017).

@Tyriar
Copy link
Member

Tyriar commented Feb 7, 2022

/duplicate #142341

@Tyriar Tyriar closed this as completed Feb 7, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

5 participants
@Tyriar @andrewpmk @chrisant996 @meganrogge and others