{"action":"opened","issue":{"url":"https://api.github.com/repos/rix0rrr/gcl/issues/13","labels_url":"https://api.github.com/repos/rix0rrr/gcl/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/rix0rrr/gcl/issues/13/comments","events_url":"https://api.github.com/repos/rix0rrr/gcl/issues/13/events","html_url":"https://github.com/rix0rrr/gcl/issues/13","id":118397450,"number":13,"title":"gcl-print: error while accessing values","user":{"login":"spinus","id":950799,"avatar_url":"https://avatars.githubusercontent.com/u/950799?v=3","gravatar_id":"","url":"https://api.github.com/users/spinus","html_url":"https://github.com/spinus","followers_url":"https://api.github.com/users/spinus/followers","following_url":"https://api.github.com/users/spinus/following{/other_user}","gists_url":"https://api.github.com/users/spinus/gists{/gist_id}","starred_url":"https://api.github.com/users/spinus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinus/subscriptions","organizations_url":"https://api.github.com/users/spinus/orgs","repos_url":"https://api.github.com/users/spinus/repos","events_url":"https://api.github.com/users/spinus/events{/privacy}","received_events_url":"https://api.github.com/users/spinus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-23T14:51:23Z","updated_at":"2015-11-23T14:51:23Z","closed_at":null,"body":"I have example from tests:\r\n```\r\nx = {\r\n  y = {\r\n    z = 3;\r\n  };\r\n  q = {\r\n    z = 4;\r\n  };\r\n};\r\n```\r\nI can do:\r\n```\r\n$ ./build/venv/bin/gcl-print file    \r\n+- x\r\n|  +- q\r\n|  |  +- z => 4\r\n|  +- y\r\n|  |  +- z => 3\r\n\r\n\r\n$ ./build/venv/bin/gcl-print file x\r\nx\r\n+- q\r\n|  +- z => 4\r\n+- y\r\n|  +- z => 3\r\n\r\n\r\n$ ./build/venv/bin/gcl-print file x.y\r\nx.y\r\n+- z => 3\r\n\r\n\r\n```\r\nbut I cannot do\r\n```\r\n$ ./build/venv/bin/gcl-print file x.y.z\r\nx.y.z\r\nTraceback (most recent call last):\r\n  File \"./build/venv/bin/gcl-print\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/home/spinus/build/venv/lib/python2.7/site-packages/gcl/printer.py\", line 160, in main\r\n    print_selectors(model, args.selectors, printer, lowercase=args.lowercase, errors_only=args.errors_only)\r\n  File \"/home/spinus/build/venv/lib/python2.7/site-packages/gcl/printer.py\", line 129, in print_selectors\r\n    printer(value, **kwargs)\r\n  File \"/home/spinus/build/venv/lib/python2.7/site-packages/gcl/printer.py\", line 113, in pretty_print_model\r\n    util.walk(model, PrettyPrintWalker(table, **kwargs))\r\n  File \"/home/spinus/build/venv/lib/python2.7/site-packages/gcl/util.py\", line 99, in walk\r\n    walker.visitScalar(path, value)\r\n  File \"/home/spinus/build/venv/lib/python2.7/site-packages/gcl/printer.py\", line 101, in visitScalar\r\n    if not self._printableKey(key_path[-1]):\r\nIndexError: list index out of range\r\n```"}}