{"action":"opened","issue":{"url":"https://api.github.com/repos/santagada/xontrib-powerline/issues/20","repository_url":"https://api.github.com/repos/santagada/xontrib-powerline","labels_url":"https://api.github.com/repos/santagada/xontrib-powerline/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/santagada/xontrib-powerline/issues/20/comments","events_url":"https://api.github.com/repos/santagada/xontrib-powerline/issues/20/events","html_url":"https://github.com/santagada/xontrib-powerline/issues/20","id":367694870,"node_id":"MDU6SXNzdWUzNjc2OTQ4NzA=","number":20,"title":"Powerline fails with 'Unknown environment variable: $0'","user":{"login":"StreakyCobra","id":1587877,"node_id":"MDQ6VXNlcjE1ODc4Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/1587877?v=4","gravatar_id":"","url":"https://api.github.com/users/StreakyCobra","html_url":"https://github.com/StreakyCobra","followers_url":"https://api.github.com/users/StreakyCobra/followers","following_url":"https://api.github.com/users/StreakyCobra/following{/other_user}","gists_url":"https://api.github.com/users/StreakyCobra/gists{/gist_id}","starred_url":"https://api.github.com/users/StreakyCobra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StreakyCobra/subscriptions","organizations_url":"https://api.github.com/users/StreakyCobra/orgs","repos_url":"https://api.github.com/users/StreakyCobra/repos","events_url":"https://api.github.com/users/StreakyCobra/events{/privacy}","received_events_url":"https://api.github.com/users/StreakyCobra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-08T09:02:00Z","updated_at":"2018-10-08T09:02:00Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\n\r\nAfter upgrading xonsh this morning (version https://github.com/xonsh/xonsh/commit/aca294b86cce5275ce77761c38ac1cf50cefd3e8), powerline is not working any longer. Here is the trackeback of the error:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.7/site-packages/xonsh/proc.py\", line 1696, in wait\r\n    r = self.f(self.args, stdin, stdout, stderr, spec, spec.stack)\r\n  File \"/usr/lib/python3.7/site-packages/xonsh/proc.py\", line 1197, in proxy_two\r\n    return f(args, stdin)\r\n  File \"/usr/lib/python3.7/site-packages/xonsh/xontribs.py\", line 178, in xontribs_main\r\n    return _MAIN_XONTRIB_ACTIONS[ns.action](ns)\r\n  File \"/usr/lib/python3.7/site-packages/xonsh/xontribs.py\", line 98, in _load\r\n    xontribs_load(ns.names, verbose=ns.verbose)\r\n  File \"/usr/lib/python3.7/site-packages/xonsh/xontribs.py\", line 90, in xontribs_load\r\n    update_context(name, ctx=ctx)\r\n  File \"/usr/lib/python3.7/site-packages/xonsh/xontribs.py\", line 69, in update_context\r\n    modctx = xontrib_context(name)\r\n  File \"/usr/lib/python3.7/site-packages/xonsh/xontribs.py\", line 33, in xontrib_context\r\n    m = importlib.import_module(spec.name)\r\n  File \"/usr/lib/python3.7/importlib/__init__.py\", line 127, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 1006, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 983, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 967, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 677, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 728, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\r\n  File \"/home/fabien/.local/lib/python3.7/site-packages/xontrib/powerline.xsh\", line 223, in <module>\r\n    pl_build_prompt()\r\n  File \"/home/fabien/.local/lib/python3.7/site-packages/xontrib/powerline.xsh\", line 213, in pl_build_prompt\r\n    if varname not in __xonsh_env__:\r\n  File \"/usr/lib/python3.7/site-packages/xonsh/built_ins.py\", line 1468, in __getitem__\r\n    return self.obj.__getitem__(item)\r\n  File \"/usr/lib/python3.7/site-packages/xonsh/environ.py\", line 1154, in __getitem__\r\n    raise KeyError(e.format(key))\r\nKeyError: 'Unknown environment variable: $0'\r\n```\r\n\r\nLet me know if you need more information!"}}
{"actor":{"display_login":"StreakyCobra"}}