{"action":"created","issue":{"url":"https://api.github.com/repos/miracle2k/flask-assets/issues/83","labels_url":"https://api.github.com/repos/miracle2k/flask-assets/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/miracle2k/flask-assets/issues/83/comments","events_url":"https://api.github.com/repos/miracle2k/flask-assets/issues/83/events","html_url":"https://github.com/miracle2k/flask-assets/issues/83","id":44894144,"number":83,"title":"Parse Templates Error w/ Script Command","user":{"login":"joehand","id":684965,"avatar_url":"https://avatars.githubusercontent.com/u/684965?v=3","gravatar_id":"","url":"https://api.github.com/users/joehand","html_url":"https://github.com/joehand","followers_url":"https://api.github.com/users/joehand/followers","following_url":"https://api.github.com/users/joehand/following{/other_user}","gists_url":"https://api.github.com/users/joehand/gists{/gist_id}","starred_url":"https://api.github.com/users/joehand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joehand/subscriptions","organizations_url":"https://api.github.com/users/joehand/orgs","repos_url":"https://api.github.com/users/joehand/repos","events_url":"https://api.github.com/users/joehand/events{/privacy}","received_events_url":"https://api.github.com/users/joehand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-10-04T20:44:29Z","updated_at":"2015-05-11T20:41:25Z","closed_at":null,"body":"I am getting the following error when I try to build assets using the `--parse-templates` option. Im not really sure where to start debugging this...\r\n\r\n```\r\nSearching templates...\r\nTraceback (most recent call last):\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/jinja2/nodes.py\", line 386, in as_const\r\n    return f(self.left.as_const(eval_ctx), self.right.as_const(eval_ctx))\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/jinja2/nodes.py\", line 365, in as_const\r\n    raise Impossible()\r\njinja2.nodes.Impossible\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/jinja2/nodes.py\", line 386, in as_const\r\n    return f(self.left.as_const(eval_ctx), self.right.as_const(eval_ctx))\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/jinja2/nodes.py\", line 388, in as_const\r\n    raise Impossible()\r\njinja2.nodes.Impossible\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"manage.py\", line 110, in <module>\r\n    manager.run()\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/flask_script/__init__.py\", line 412, in run\r\n    result = self.handle(sys.argv[0], sys.argv[1:])\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/flask_script/__init__.py\", line 383, in handle\r\n    res = handle(*args, **config)\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/flask_script/commands.py\", line 216, in __call__\r\n    return self.run(*args, **kwargs)\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/flask_assets.py\", line 422, in run\r\n    return impl.main(args)\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/webassets/script.py\", line 557, in main\r\n    return self.run_with_argv(argv)\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/webassets/script.py\", line 549, in run_with_argv\r\n    return self.run_with_ns(ns)\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/webassets/script.py\", line 531, in run_with_ns\r\n    env = self._setup_assets_env(ns, log)\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/flask_assets.py\", line 364, in _setup_assets_env\r\n    env.add(*[b for b in self.load_from_templates(env, ns.jinja_extension)\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/flask_assets.py\", line 391, in load_from_templates\r\n    load_bundles()\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/webassets/ext/jinja2.py\", line 218, in load_bundles\r\n    bundles.extend(self.with_file(filename, self._parse) or [])\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/webassets/loaders.py\", line 301, in with_file\r\n    return then_run(filename, contents)\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/webassets/ext/jinja2.py\", line 246, in _parse\r\n    _recurse_node(node)\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/webassets/ext/jinja2.py\", line 244, in _recurse_node\r\n    _recurse_node(node)\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/webassets/ext/jinja2.py\", line 237, in _recurse_node\r\n    *AssetsExtension.resolve_contents(files.as_const(), self.asset_env),\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/jinja2/nodes.py\", line 490, in as_const\r\n    return [x.as_const(eval_ctx) for x in self.items]\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/jinja2/nodes.py\", line 490, in <listcomp>\r\n    return [x.as_const(eval_ctx) for x in self.items]\r\n  File \"/Users/joe/Sites/_projects/words/venv3/lib/python3.4/site-packages/jinja2/nodes.py\", line 388, in as_const\r\n    raise Impossible()\r\njinja2.nodes.Impossible\r\n```"},"comment":{"url":"https://api.github.com/repos/miracle2k/flask-assets/issues/comments/101041413","html_url":"https://github.com/miracle2k/flask-assets/issues/83#issuecomment-101041413","issue_url":"https://api.github.com/repos/miracle2k/flask-assets/issues/83","id":101041413,"user":{"login":"joehand","id":684965,"avatar_url":"https://avatars.githubusercontent.com/u/684965?v=3","gravatar_id":"","url":"https://api.github.com/users/joehand","html_url":"https://github.com/joehand","followers_url":"https://api.github.com/users/joehand/followers","following_url":"https://api.github.com/users/joehand/following{/other_user}","gists_url":"https://api.github.com/users/joehand/gists{/gist_id}","starred_url":"https://api.github.com/users/joehand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joehand/subscriptions","organizations_url":"https://api.github.com/users/joehand/orgs","repos_url":"https://api.github.com/users/joehand/repos","events_url":"https://api.github.com/users/joehand/events{/privacy}","received_events_url":"https://api.github.com/users/joehand/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T20:41:24Z","updated_at":"2015-05-11T20:41:24Z","body":"@manuelbua interesting, thanks. I'll try that out..."}}