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

abd.exe (Android Debug Bridge) shell history bug #700

Closed
Maximus5 opened this issue Jul 31, 2015 · 24 comments
Closed

abd.exe (Android Debug Bridge) shell history bug #700

Maximus5 opened this issue Jul 31, 2015 · 24 comments

Comments

@Maximus5
Copy link
Owner

Originally reported on Google Code with ID 700

Required information!
OS version: WinXP SP3 x86
ConEmu version: 120904
Far version (if you are using Far Manager): 1.75 build 2619 x86

Если "abd shell" выполняется из cmd файла, то в нем перестает работать история команд
- по стрелкам.
Если запускается напрямую abd.exe - то работает.

Если запускается cmd из консоли без ConEmu - то работает.
Если запускается cmd из Far без ConEmu - то работает.
Если запускается cmd без Far в ConEmu - то работает.

Видимо какой-то нюанс совместимости "запускатора" Far'а для cmd файлов и ConEmu. Подозреваю,
что он чреват не только этим багом.


Reported by LazyRoy on 2012-09-10 13:31:08

@Maximus5
Copy link
Owner Author

Извиняюсь, не "abd", а "adb" - вечно путаю.

Reported by LazyRoy on 2012-09-10 13:35:55

@Maximus5
Copy link
Owner Author

Попробовал 
adb.exe -cur_console:h0 shell 
и
adb.exe -cur_console:h9999 shell 
из cmd файла.

Не помогло.

Reported by LazyRoy on 2012-09-10 13:40:10

@Maximus5
Copy link
Owner Author

запускайте adb с флажком -cur_console:o

Reported by ConEmu.Maximus5 on 2012-09-14 06:17:40

@Maximus5
Copy link
Owner Author

увы, не помогает

Reported by LazyRoy on 2012-09-15 01:16:13

@Maximus5
Copy link
Owner Author

Гм. А что показывает вкладка "Info"? Интересует список процессов, когда перестает история
работать.

Reported by ConEmu.Maximus5 on 2012-09-15 11:52:14

@Maximus5
Copy link
Owner Author

И версию, надеюсь, последнюю используете??

Reported by ConEmu.Maximus5 on 2012-09-15 11:52:49

@Maximus5
Copy link
Owner Author

Вложил скриншот. 
FAIL - истории нет. OK - история есть.

Версии ComEmu и Far в Required information. ADB 1.0.29

Reported by LazyRoy on 2012-09-15 15:49:19


- _Attachment: ConEmu-ADB.PNG
![ConEmu-ADB.PNG](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-700/comment-7/ConEmu-ADB.PNG)_

@Maximus5
Copy link
Owner Author

Comment #3 написан ПОСЛЕ появления версии 120913. 904 морально устарела.

Reported by ConEmu.Maximus5 on 2012-09-15 16:07:01

@Maximus5
Copy link
Owner Author

(Написать же нужно было, что флажок появился в новой версии?)
Обновился, все равно не помогает. Скриншот идентичный.

Reported by LazyRoy on 2012-09-15 16:10:40

@Maximus5
Copy link
Owner Author

долго смотрел на скриншоты...

неправильное использование флажка, надо
shell-test.cmd -cur_console:o

в самом *.cmd смысл флажка уже нулевой

Reported by ConEmu.Maximus5 on 2012-09-15 16:53:17

@Maximus5
Copy link
Owner Author

Да, так работает. 
Но только это же не решение - флаг нужно руками каждый раз набирать - мы же его не
можем в cmd положить?

Reported by LazyRoy on 2012-09-15 16:59:45

@Maximus5
Copy link
Owner Author

Почему не решение? Что мешает его "автоматизировать"?
В фаре есть ассоциации, макросы, юзер-меню.

И еще, если вообще не используется опция "Long console output" (см. макрос на Ctrl+O)
эту самую опцию можно отключить в настроке раз и навсегда.

Почему глючит консоль - я пока не понял.

Reported by ConEmu.Maximus5 on 2012-09-15 17:07:10

@Maximus5
Copy link
Owner Author

По-моему, это подпирание одного костыля другим костылем. Ctrl-O используется.
Пожалуй дождусь понимания проблемы, надеюсь будет общее решение.

Reported by LazyRoy on 2012-09-15 18:16:15

@Maximus5
Copy link
Owner Author

Issue 785 has been merged into this issue.

Reported by ConEmu.Maximus5 on 2012-10-24 19:52:34

@Maximus5
Copy link
Owner Author

Issue 686 has been merged into this issue.

Reported by ConEmu.Maximus5 on 2012-10-24 19:53:41

@Maximus5
Copy link
Owner Author

Issue 785 has been merged into this issue.

Reported by ConEmu.Maximus5 on 2012-10-24 20:08:10

@Maximus5
Copy link
Owner Author

Issue 686 has been merged into this issue.

Reported by ConEmu.Maximus5 on 2012-10-25 08:15:48

@Maximus5
Copy link
Owner Author

Sorry for adding comments under issue 686, because I don't know what you are talking
about in this list. :(

OK, I may know the reason about http://code.google.com/p/conemu-maximus5/issues/detail?id=686#c2
, you are right, it is about the setting on BufferCount, --on my OS, the value is 4,
hence the fifth one can not have a buffer; if I change this value to another, e.g.
6(and choose save for all window with the same title, I don't know the English version
of this message, my OS is Chinese...), the number of cmd can up to 6, and the seventh
failed. So for your setting, you may need to execute 51 cmds to reproduce comment 2.
XD

But finally, does this affect this issue?

Reported by suxpert on 2012-10-25 19:10:42

@Maximus5
Copy link
Owner Author

Well, finally meaning of "Buffers" in console properties are revealed :)

All persons concerned.. Please try to increase buffers in ConEmu console properties:
ConEmu -> System menu -> Debug -> Properties...
On the first page increase number of buffers and press "OK".

Hope, this will fix all issues. If so, I implement large value of buffers in ConEmu
internally.

Reported by ConEmu.Maximus5 on 2012-10-25 19:38:14

@Maximus5
Copy link
Owner Author

This fixed everything for me.

Reported by rwarho1 on 2012-11-05 15:58:54

@Maximus5
Copy link
Owner Author

ConEmu 121029 forces greater number of buffers value (if default value is too small).

Reported by ConEmu.Maximus5 on 2012-11-05 16:03:28

  • Status changed: Fixed

@Maximus5
Copy link
Owner Author

Проверил на 121119. 

"Number of Buffers" по-прежнему 4. Если увеличить руками в Debug-Properties - то все
хорошо, история в adb работает, но измененное значение сохраняется только до перезапуска
процесса.

При этом
[HKEY_CURRENT_USER\Console]
"HistoryBufferSize"=dword:00000032
"NumberOfHistoryBuffers"=dword:00000020

[HKEY_CURRENT_USER\Console\ConEmu]
"HistoryBufferSize"=dword:00000032
"NumberOfHistoryBuffers"=dword:00000020

Откуда вылезает 4 - непонятно.

Reported by LazyRoy on 2012-11-21 08:01:30

@Maximus5
Copy link
Owner Author

Reported by ConEmu.Maximus5 on 2012-11-21 11:01:43

  • Status changed: Accepted

@Maximus5
Copy link
Owner Author

Check build 121121

Reported by ConEmu.Maximus5 on 2012-11-21 22:21:09

  • Status changed: Fixed

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

1 participant