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

On windows 10, pyocd eats the first character of my CLI #1314

Open
gerrywangqd opened this issue Jan 20, 2022 · 5 comments
Open

On windows 10, pyocd eats the first character of my CLI #1314

gerrywangqd opened this issue Jan 20, 2022 · 5 comments

Comments

@gerrywangqd
Copy link

The CLI might "eat" what I typed, especially for the first character I typed,
For example, if I typed the CLI show cores, the session will be,

pyocd> how cores
Error: unrecognized command 'how'

I tried both the old "command.exe" and Powershell.

I don't find this issue in Linux (Ubuntu 20.4.3, Centos 8,4)

@flit
Copy link
Member

flit commented Jan 21, 2022

Oh, that's really strange! I test on Windows pretty regularly, and I haven't seen this. I'll try again this weekend. Thanks for the bug report.

@cederom
Copy link
Contributor

cederom commented Jan 21, 2022

Sorry for the offtopic but you inspired me to set how alias to man 😎

@elfmimi
Copy link

elfmimi commented Jan 22, 2022

I know I have experienced this behaviour. But now my installation of pyocd does not show this behaviour. Why is it?
The answer is here #1129. After applying the treatment I mentioned in that comment, this behaviour has been gone.

To try it with ease, I made a branch.
First do: pip uninstall pyocd pyocd-pemicro
Then do: pip install git+https://github.com/elfmimi/pyOCD.git@remove-pemicro-dependency

@gerrywangqd
Copy link
Author

Thanks @elfmimi , I tried your fix, it works well on my machine.
@flit

@flit
Copy link
Member

flit commented Jan 25, 2022

Thanks! Fyi, there's another issue #1319 to make pyocd-pemicro optional for a different reason.

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

No branches or pull requests

4 participants