Created
June 2, 2014 14:03
-
-
Save farhaven/1ede9a36eafd9f6fd4d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat test.hy | |
(defmain [&rest args] | |
(print "foo")) | |
$ hy test.hy | |
Traceback (most recent call last): | |
File "/usr/local/bin/hy", line 9, in <module> | |
load_entry_point('hy==0.10.0', 'console_scripts', 'hy')() | |
File "/usr/local/lib/python2.7/site-packages/hy/cmdline.py", line 295, in hy_main | |
sys.exit(cmdline_handler("hy", sys.argv)) | |
File "/usr/local/lib/python2.7/site-packages/hy/cmdline.py", line 283, in cmdline_handler | |
return run_file(options.args[0]) | |
File "/usr/local/lib/python2.7/site-packages/hy/cmdline.py", line 190, in run_file | |
import_file_to_module("__main__", filename) | |
File "/usr/local/lib/python2.7/site-packages/hy/importer.py", line 71, in import_file_to_module | |
_ast = import_file_to_ast(fpath, module_name) | |
File "/usr/local/lib/python2.7/site-packages/hy/importer.py", line 63, in import_file_to_ast | |
return hy_compile(import_file_to_hst(fpath), module_name) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 2172, in hy_compile | |
result = compiler.compile(tree) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 398, in compile | |
ret = self.compile_atom(_type, tree) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 390, in compile_atom | |
ret = _compile_table[atom_type](self, atom) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 544, in compile_raw_list | |
ret = self._compile_branch(entries) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 429, in _compile_branch | |
return _branch(self.compile(expr) for expr in exprs) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 290, in _branch | |
results = list(results) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 429, in <genexpr> | |
return _branch(self.compile(expr) for expr in exprs) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 398, in compile | |
ret = self.compile_atom(_type, tree) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 390, in compile_atom | |
ret = _compile_table[atom_type](self, atom) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 1735, in compile_expression | |
args, ret = self._compile_collect(expression[1:]) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 424, in _compile_collect | |
ret += self.compile(expr) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 398, in compile | |
ret = self.compile_atom(_type, tree) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 390, in compile_atom | |
ret = _compile_table[atom_type](self, atom) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 1845, in compile_list | |
elts, ret = self._compile_collect(expression) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 424, in _compile_collect | |
ret += self.compile(expr) | |
File "/usr/local/lib/python2.7/site-packages/hy/compiler.py", line 412, in compile | |
raise HyCompileError(Exception("Unknown type: `%s'" % _type)) | |
hy.errors.HyCompileError: Internal Compiler Bug 😱 | |
⤷ Exception: Unknown type: `<class 'hy.models.lambdalist.HyLambdaListKeyword'>' | |
Compilation traceback: | |
No traceback available. 😟 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment