Skip to content

0.9.5 broke something with cmdloop() #577

Closed
@rowdyrotifer

Description

@rowdyrotifer

Has anything been changed recently regarding the cmdloop command or some of the core loop functionality? It seems that upgrading from 0.9.4 to 0.9.5 broke my existing program. The cmdloop method seems to just return.

mark@charmander:~/.local/bin$ ls
chardetect  clanvas  html2text  tabulate
mark@charmander:~/.local/bin$ ./clanvas
mwl58@canvas.case.edu:~:~/.local/bin $ lc
EECS455-13682
EECS428-15077
EECS444-14976
EECS341-14990
mwl58@canvas.case.edu:~:~/.local/bin $ quit
mark@charmander:~/.local/bin$ pip3 install -U cmd2
Collecting cmd2
  Using cached https://files.pythonhosted.org/packages/5f/c9/f45aeb4b0c24413f00084d9e46f90a52717acaa9fc3fb2a9ce67b90d334b/cmd2-0.9.5-py3-none-any.whl
Collecting attrs>=16.3.0 (from cmd2)
  Using cached https://files.pythonhosted.org/packages/3a/e1/5f9023cc983f1a628a8c2fd051ad19e76ff7b142a0faf329336f9a62a514/attrs-18.2.0-py2.py3-none-any.whl
Collecting colorama (from cmd2)
  Using cached https://files.pythonhosted.org/packages/0a/93/6e8289231675d561d476d656c2ee3a868c1cca207e16c118d4503b25e2bf/colorama-0.4.0-py2.py3-none-any.whl
Collecting pyperclip>=1.5.27 (from cmd2)
Collecting wcwidth; sys_platform != "win32" (from cmd2)
  Using cached https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
Installing collected packages: attrs, colorama, pyperclip, wcwidth, cmd2
Successfully installed attrs-18.2.0 cmd2-0.9.5 colorama-0.4.0 pyperclip-1.7.0 wcwidth-0.1.7
mark@charmander:~/.local/bin$ ./clanvas
mark@charmander:~/.local/bin$ echo ":("
:(

It seems like stuff not through cmdloop will run as usual though.

mark@charmander:~/.local/bin$ python3
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from clanvas import clanvas
>>> cmd2 = clanvas.Clanvas()
>>> cmd2.cmdloop()
>>> cmd2.onecmd('help')

Documented commands (type help <topic>):

Clanvas
=======
catann  cc  la  lann  lc  lg  login  pullf  ua  whoami  wopen

Other
=====
alias  edit  history  macro  pyscript  set    shortcuts
cd     help  load     py     quit      shell

>>>

All this tested on a fresh install of Ubuntu 18.04.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions