{"action":"closed","issue":{"url":"https://api.github.com/repos/hylang/vim-hy/issues/16","repository_url":"https://api.github.com/repos/hylang/vim-hy","labels_url":"https://api.github.com/repos/hylang/vim-hy/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/hylang/vim-hy/issues/16/comments","events_url":"https://api.github.com/repos/hylang/vim-hy/issues/16/events","html_url":"https://github.com/hylang/vim-hy/issues/16","id":312295397,"node_id":"MDU6SXNzdWUzMTIyOTUzOTc=","number":16,"title":"Getting a `HyTypeError` on load","user":{"login":"callum-oakley","id":11499545,"node_id":"MDQ6VXNlcjExNDk5NTQ1","avatar_url":"https://avatars0.githubusercontent.com/u/11499545?v=4","gravatar_id":"","url":"https://api.github.com/users/callum-oakley","html_url":"https://github.com/callum-oakley","followers_url":"https://api.github.com/users/callum-oakley/followers","following_url":"https://api.github.com/users/callum-oakley/following{/other_user}","gists_url":"https://api.github.com/users/callum-oakley/gists{/gist_id}","starred_url":"https://api.github.com/users/callum-oakley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callum-oakley/subscriptions","organizations_url":"https://api.github.com/users/callum-oakley/orgs","repos_url":"https://api.github.com/users/callum-oakley/repos","events_url":"https://api.github.com/users/callum-oakley/events{/privacy}","received_events_url":"https://api.github.com/users/callum-oakley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-08T10:54:39Z","updated_at":"2018-11-30T23:01:59Z","closed_at":"2018-11-30T23:01:59Z","author_association":"NONE","body":"`:python import hy` is all good, but when trying to load a `.hy` file with the plugin enabled I get\r\n\r\n```\r\n\"awesome.hy\" 1L, 67C\r\nError detected while processing function provider#python#Call:\r\nline   18:\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/importer.py\", line 240, in load_module\r\n    return import_file_to_module(fullname, self.path, self)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/importer.py\", line 99, in import_file_to_module\r\n    _ast = import_file_to_ast(fpath, module_name)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/importer.py\", line 57, in import_file_to_ast\r\n    return hy_compile(import_file_to_hst(fpath), module_name)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 2239, in hy_compile\r\n    result = compiler.compile(tree)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 460, in compile\r\n    ret = self.compile_atom(_type, tree)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 447, in compile_atom\r\n    else _compile_table[atom_type](self, atom))\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 1738, in compile_expression\r\n    ret = self.compile_atom(fn, expression)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 447, in compile_atom\r\n    else _compile_table[atom_type](self, atom))\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 819, in compile_do\r\n    return self._compile_branch(expression)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 545, in _compile_branch\r\n    return _branch(self.compile(expr) for expr in exprs)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 318, in _branch\r\n    results = list(results)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 545, in <genexpr>\r\n    return _branch(self.compile(expr) for expr in exprs)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 460, in compile\r\n    ret = self.compile_atom(_type, tree)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 447, in compile_atom\r\n    else _compile_table[atom_type](self, atom))\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 1738, in compile_expression\r\n    ret = self.compile_atom(fn, expression)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 447, in compile_atom\r\n    else _compile_table[atom_type](self, atom))\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 1800, in compile_def_expression\r\n    return self._compile_assign(expression[0], expression[1])\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 1819, in _compile_assign\r\n    result = self.compile(result)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 460, in compile\r\n    ret = self.compile_atom(_type, tree)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 447, in compile_atom\r\n    else _compile_table[atom_type](self, atom))\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 1738, in compile_expression\r\n    ret = self.compile_atom(fn, expression)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 447, in compile_atom\r\n    else _compile_table[atom_type](self, atom))\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 372, in checker\r\n    return fn(self, expression)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 2007, in compile_function_def\r\n    body = self._compile_branch(expression)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 545, in _compile_branch\r\n    return _branch(self.compile(expr) for expr in exprs)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 318, in _branch\r\n    results = list(results)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 545, in <genexpr>\r\n    return _branch(self.compile(expr) for expr in exprs)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 460, in compile\r\n    ret = self.compile_atom(_type, tree)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 447, in compile_atom\r\n    else _compile_table[atom_type](self, atom))\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 1781, in compile_expression\r\n    func = self.compile(fn)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 460, in compile\r\n    ret = self.compile_atom(_type, tree)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 447, in compile_atom\r\n    else _compile_table[atom_type](self, atom))\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 1738, in compile_expression\r\n    ret = self.compile_atom(fn, expression)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 447, in compile_atom\r\n    else _compile_table[atom_type](self, atom))\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 372, in checker\r\n    return fn(self, expression)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/compiler.py\", line 2131, in compile_dispatch_tag_macro\r\n    expr = tag_macroexpand(tag, expression.pop(0), self)\r\n  File \"/home/callum/.local/lib/python2.7/site-packages/hy/macros.py\", line 226, in tag_macroexpand\r\n    \"`{0}' is not a defined tag macro.\".format(tag)\r\nHyTypeError:   File \"/home/callum/.config/nvim/plugged/vim-hy/indent/hy_indent.hy\", line 10, column 1\r\n  (defn syn-id-attr [id attr]\r\n  ^--------------------------\r\n    (#v\"synIDattr\" id attr))\r\n  -------------------------^\r\nHyTypeError: `v' is not a defined tag macro.\r\n```\r\n\r\n`hy --version` is `hy 0.14.0+98.g096aac2`\r\n\r\nThis is in neovim if that makes a difference."}}
{"actor":{"display_login":"callum-oakley"}}