Skip to content

Instantly share code, notes, and snippets.

@anddam
Created April 7, 2017 06:07
Show Gist options
  • Save anddam/c64dde77fa3573add97a705f25f5b9dd to your computer and use it in GitHub Desktop.
Save anddam/c64dde77fa3573add97a705f25f5b9dd to your computer and use it in GitHub Desktop.
~ $ ${'PATH'}
....................
tako: To log full traceback to a file, set: $TAKO_SETTINGS.traceback_logfile = <filename>
Traceback (most recent call last):
File "/home/anddam/.local/lib/python3.5/site-packages/takoshell/base_shell.py", line 118, in push
locs=None)
File "/home/anddam/.local/lib/python3.5/site-packages/takoshell/execer.py", line 118, in compile
tree = self.parse(input, ctx, mode=mode, transform=transform)
File "/home/anddam/.local/lib/python3.5/site-packages/takoshell/execer.py", line 89, in parse
tree, input = self._parse_ctx_free(input, mode=mode)
File "/home/anddam/.local/lib/python3.5/site-packages/takoshell/execer.py", line 184, in _parse_ctx_free
raise original_error from None
File "/home/anddam/.local/lib/python3.5/site-packages/takoshell/execer.py", line 171, in _parse_ctx_free
debug_level=(self.debug_level > 1))
File "/home/anddam/.local/lib/python3.5/site-packages/takoshell/parsers/base.py", line 308, in parse
tree = self.parser.parse(input=s, lexer=self.lexer, debug=debug_level)
File "/home/anddam/.local/lib/python3.5/site-packages/takoshell/ply/yacc.py", line 325, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/home/anddam/.local/lib/python3.5/site-packages/takoshell/ply/yacc.py", line 1175, in parseopt_notrack
tok = call_errorfunc(self.errorfunc, errtoken, self)
File "/home/anddam/.local/lib/python3.5/site-packages/takoshell/ply/yacc.py", line 187, in call_errorfunc
r = errorfunc(token)
File "/home/anddam/.local/lib/python3.5/site-packages/takoshell/parsers/base.py", line 2351, in p_error
self.tako_code)
File "/home/anddam/.local/lib/python3.5/site-packages/takoshell/parsers/base.py", line 416, in _parse_error
raise err
File "<string>", line None
SyntaxError: <tako-code>:1:2: ("code: 'PATH'",)
${'PATH'}
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment