{"action":"created","issue":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/2928","repository_url":"https://api.github.com/repos/xonsh/xonsh","labels_url":"https://api.github.com/repos/xonsh/xonsh/issues/2928/labels{/name}","comments_url":"https://api.github.com/repos/xonsh/xonsh/issues/2928/comments","events_url":"https://api.github.com/repos/xonsh/xonsh/issues/2928/events","html_url":"https://github.com/xonsh/xonsh/issues/2928","id":378129377,"node_id":"MDU6SXNzdWUzNzgxMjkzNzc=","number":2928,"title":"Executing xonsh in xonsh results in AttributeError","user":{"login":"halloleo","id":1521852,"node_id":"MDQ6VXNlcjE1MjE4NTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1521852?v=4","gravatar_id":"","url":"https://api.github.com/users/halloleo","html_url":"https://github.com/halloleo","followers_url":"https://api.github.com/users/halloleo/followers","following_url":"https://api.github.com/users/halloleo/following{/other_user}","gists_url":"https://api.github.com/users/halloleo/gists{/gist_id}","starred_url":"https://api.github.com/users/halloleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halloleo/subscriptions","organizations_url":"https://api.github.com/users/halloleo/orgs","repos_url":"https://api.github.com/users/halloleo/repos","events_url":"https://api.github.com/users/halloleo/events{/privacy}","received_events_url":"https://api.github.com/users/halloleo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-07T03:35:46Z","updated_at":"2018-11-07T14:53:31Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When I'm executing `xonsh` in a running xonsh shell and I load the `vox` xontrib in the `.xonshrc` I get a strange error:\r\n\r\n    xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = <filename>\r\n    Traceback (most recent call last):\r\n      File \"/working/software/venv/xonsh/lib/python3.6/site-packages/xonsh/environ.py\", line 1300, in xonsh_script_run_control\r\n        run_script_with_cache(filename, execer, ctx)\r\n      File \"/working/software/venv/xonsh/lib/python3.6/site-packages/xonsh/codecache.py\", line 162, in run_script_with_cache\r\n        run_compiled_code(ccode, glb, loc, mode)\r\n      File \"/working/software/venv/xonsh/lib/python3.6/site-packages/xonsh/codecache.py\", line 67, in run_compiled_code\r\n        func(code, glb, loc)\r\n      File \"/home/halloleo/.xonshrc\", line 3, in <module>\r\n        xontrib load vox \r\n      File \"/working/software/venv/xonsh/lib/python3.6/site-packages/xonsh/built_ins.py\", line 952, in subproc_captured_hiddenobject\r\n        return run_subproc(cmds, captured=\"hiddenobject\")\r\n      File \"/working/software/venv/xonsh/lib/python3.6/site-packages/xonsh/built_ins.py\", line 904, in run_subproc\r\n        pause_call_resume(proc, builtins.__xonsh__.shell.settitle)\r\n    AttributeError: 'NoneType' object has no attribute 'settitle'\r\n    error running xonsh run control file '/home/halloleo/.xonshrc': 'NoneType' object has no attribute 'settitle'\r\n\r\nThe `.xonshrc` file to make this bug happen is:\r\n\r\n    $XONSH_SHOW_TRACEBACK = True\r\n    $SHELL_TYPE='readline'\r\n    xontrib load vox \r\n\r\nMy `xonfig` output is:\r\n\r\n    +------------------+---------------------------------+\r\n    | xonsh            | 0.8.1                           |\r\n    | Git SHA          | 23246604                        |\r\n    | Commit Date      | Oct 18 09:55:19 2018            |\r\n    | Python           | 3.6.4                           |\r\n    | PLY              | 3.9                             |\r\n    | have readline    | True                            |\r\n    | prompt toolkit   | 2.0.7                           |\r\n    | shell type       | readline                        |\r\n    | pygments         | None                            |\r\n    | on posix         | True                            |\r\n    | on linux         | True                            |\r\n    | distro           | Red Hat Enterprise Linux Server |\r\n    | on darwin        | False                           |\r\n    | on windows       | False                           |\r\n    | on cygwin        | False                           |\r\n    | on msys2         | False                           |\r\n    | is superuser     | False                           |\r\n    | default encoding | utf-8                           |\r\n    | xonsh encoding   | utf-8                           |\r\n    | encoding errors  | surrogateescape                 |\r\n    +------------------+---------------------------------+\r\n\r\n\r\nAlso, how can I better debug an error like this? `$XONSH_DEBUG=3` doesn't seem to give more details about the exception (but rather about the parsing of the input line).\r\n"},"comment":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/comments/436649313","html_url":"https://github.com/xonsh/xonsh/issues/2928#issuecomment-436649313","issue_url":"https://api.github.com/repos/xonsh/xonsh/issues/2928","id":436649313,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjY0OTMxMw==","user":{"login":"gforsyth","id":3596999,"node_id":"MDQ6VXNlcjM1OTY5OTk=","avatar_url":"https://avatars0.githubusercontent.com/u/3596999?v=4","gravatar_id":"","url":"https://api.github.com/users/gforsyth","html_url":"https://github.com/gforsyth","followers_url":"https://api.github.com/users/gforsyth/followers","following_url":"https://api.github.com/users/gforsyth/following{/other_user}","gists_url":"https://api.github.com/users/gforsyth/gists{/gist_id}","starred_url":"https://api.github.com/users/gforsyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gforsyth/subscriptions","organizations_url":"https://api.github.com/users/gforsyth/orgs","repos_url":"https://api.github.com/users/gforsyth/repos","events_url":"https://api.github.com/users/gforsyth/events{/privacy}","received_events_url":"https://api.github.com/users/gforsyth/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T14:53:31Z","updated_at":"2018-11-07T14:53:31Z","author_association":"COLLABORATOR","body":"Hey @halloleo -- glad the issue is resolved!  And documentation improvements are always welcome!\r\n\r\nOne tweak I would suggest -- we create an `xpip` alias that always points to the version of `pip` corresponding to the python installation where `xonsh` is installed, so it would be better to point people in that direction, so something like\r\n\r\n```\r\nxpip install -U xonsh\r\n```"}}
{"actor":{"display_login":"gforsyth"}}