{"action":"created","issue":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/1558","repository_url":"https://api.github.com/repos/xonsh/xonsh","labels_url":"https://api.github.com/repos/xonsh/xonsh/issues/1558/labels{/name}","comments_url":"https://api.github.com/repos/xonsh/xonsh/issues/1558/comments","events_url":"https://api.github.com/repos/xonsh/xonsh/issues/1558/events","html_url":"https://github.com/xonsh/xonsh/issues/1558","id":171054202,"number":1558,"title":"EOF in multi-line string (always; without EOF)","user":{"login":"OJFord","id":3946014,"avatar_url":"https://avatars.githubusercontent.com/u/3946014?v=3","gravatar_id":"","url":"https://api.github.com/users/OJFord","html_url":"https://github.com/OJFord","followers_url":"https://api.github.com/users/OJFord/followers","following_url":"https://api.github.com/users/OJFord/following{/other_user}","gists_url":"https://api.github.com/users/OJFord/gists{/gist_id}","starred_url":"https://api.github.com/users/OJFord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OJFord/subscriptions","organizations_url":"https://api.github.com/users/OJFord/orgs","repos_url":"https://api.github.com/users/OJFord/repos","events_url":"https://api.github.com/users/OJFord/events{/privacy}","received_events_url":"https://api.github.com/users/OJFord/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xonsh/xonsh/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-14T11:23:57Z","updated_at":"2016-08-18T02:16:41Z","closed_at":null,"body":"The second hit of return in a multiline string consistently results in a \"SyntaxError: EOF in multiline string\": \r\n```sh\r\n$ a = \"\"\"<CR>\r\n<CR>\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/site-packages/xonsh/__amalgam__.py\", line 16049, in _parse_ctx_free\r\n    debug_level=(self.debug_level > 1))\r\n  File \"/usr/lib/python3.5/site-packages/xonsh/parsers/base.py\", line 310, in parse\r\n    tree = self.parser.parse(input=s, lexer=self.lexer, debug=debug_level)\r\n  File \"/usr/lib/python3.5/site-packages/ply/yacc.py\", line 331, in parse\r\n    return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)\r\n  File \"/usr/lib/python3.5/site-packages/ply/yacc.py\", line 1181, in parseopt_notrack\r\n    tok = call_errorfunc(self.errorfunc, errtoken, self)\r\n  File \"/usr/lib/python3.5/site-packages/ply/yacc.py\", line 193, in call_errorfunc\r\n    r = errorfunc(token)\r\n  File \"/usr/lib/python3.5/site-packages/xonsh/parsers/base.py\", line 2337, in p_error\r\n    self.xonsh_code)\r\n  File \"/usr/lib/python3.5/site-packages/xonsh/parsers/base.py\", line 411, in _parse_error\r\n    raise err\r\n  File \"<string>\", line None\r\nSyntaxError: <xonsh-code>:2:9: Unmatched \"]\" at line 2, column 9\r\n![a = \"\"\"]\r\n         ^\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/site-packages/xonsh/ptk/shell.py\", line 100, in push\r\n    locs=None)\r\n  File \"/usr/lib/python3.5/site-packages/xonsh/__amalgam__.py\", line 15996, in compile\r\n    tree = self.parse(input, ctx, mode=mode, transform=transform)\r\n  File \"/usr/lib/python3.5/site-packages/xonsh/__amalgam__.py\", line 15967, in parse\r\n    tree, input = self._parse_ctx_free(input, mode=mode)\r\n  File \"/usr/lib/python3.5/site-packages/xonsh/__amalgam__.py\", line 16107, in _parse_ctx_free\r\n    raise original_error\r\n  File \"/usr/lib/python3.5/site-packages/xonsh/__amalgam__.py\", line 16049, in _parse_ctx_free\r\n    debug_level=(self.debug_level > 1))\r\n  File \"/usr/lib/python3.5/site-packages/xonsh/parsers/base.py\", line 310, in parse\r\n    tree = self.parser.parse(input=s, lexer=self.lexer, debug=debug_level)\r\n  File \"/usr/lib/python3.5/site-packages/ply/yacc.py\", line 331, in parse\r\n    return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)\r\n  File \"/usr/lib/python3.5/site-packages/ply/yacc.py\", line 1181, in parseopt_notrack\r\n    tok = call_errorfunc(self.errorfunc, errtoken, self)\r\n  File \"/usr/lib/python3.5/site-packages/ply/yacc.py\", line 193, in call_errorfunc\r\n    r = errorfunc(token)\r\n  File \"/usr/lib/python3.5/site-packages/xonsh/parsers/base.py\", line 2337, in p_error\r\n    self.xonsh_code)\r\n  File \"/usr/lib/python3.5/site-packages/xonsh/parsers/base.py\", line 411, in _parse_error\r\n    raise err\r\n  File \"<string>\", line None\r\nSyntaxError: <xonsh-code>:0:0: EOF in multi-line string\r\na = \"\"\"\r\n^\r\n$ xonsh --version\r\n('xonsh/0.4.4',)\r\n$ uname -r\r\n4.7.0-1-ARCH\r\n```"},"comment":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/comments/240605246","html_url":"https://github.com/xonsh/xonsh/issues/1558#issuecomment-240605246","issue_url":"https://api.github.com/repos/xonsh/xonsh/issues/1558","id":240605246,"user":{"login":"laerus","id":6930157,"avatar_url":"https://avatars.githubusercontent.com/u/6930157?v=3","gravatar_id":"","url":"https://api.github.com/users/laerus","html_url":"https://github.com/laerus","followers_url":"https://api.github.com/users/laerus/followers","following_url":"https://api.github.com/users/laerus/following{/other_user}","gists_url":"https://api.github.com/users/laerus/gists{/gist_id}","starred_url":"https://api.github.com/users/laerus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laerus/subscriptions","organizations_url":"https://api.github.com/users/laerus/orgs","repos_url":"https://api.github.com/users/laerus/repos","events_url":"https://api.github.com/users/laerus/events{/privacy}","received_events_url":"https://api.github.com/users/laerus/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T02:16:41Z","updated_at":"2016-08-18T02:16:41Z","body":"thanks for reporthing this @OJFord! i think this is annoying and definitely something we should fix."}}
{"actor":{"display_login":"laerus"}}