pyOCD icon indicating copy to clipboard operation
pyOCD copied to clipboard

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

Open gerrywangqd opened this issue 4 years ago • 5 comments

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)

gerrywangqd avatar Jan 20 '22 08:01 gerrywangqd

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.

flit avatar Jan 21 '22 23:01 flit

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

cederom avatar Jan 21 '22 23:01 cederom

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

elfmimi avatar Jan 22 '22 02:01 elfmimi

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

gerrywangqd avatar Jan 24 '22 09:01 gerrywangqd

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

flit avatar Jan 25 '22 19:01 flit