{"action":"created","issue":{"url":"https://api.github.com/repos/PolymerElements/paper-input/issues/345","repository_url":"https://api.github.com/repos/PolymerElements/paper-input","labels_url":"https://api.github.com/repos/PolymerElements/paper-input/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/paper-input/issues/345/comments","events_url":"https://api.github.com/repos/PolymerElements/paper-input/issues/345/events","html_url":"https://github.com/PolymerElements/paper-input/issues/345","id":135180606,"number":345,"title":"paper-input breaking vulcanize gulp task.","user":{"login":"runia1","id":6709518,"avatar_url":"https://avatars.githubusercontent.com/u/6709518?v=3","gravatar_id":"","url":"https://api.github.com/users/runia1","html_url":"https://github.com/runia1","followers_url":"https://api.github.com/users/runia1/followers","following_url":"https://api.github.com/users/runia1/following{/other_user}","gists_url":"https://api.github.com/users/runia1/gists{/gist_id}","starred_url":"https://api.github.com/users/runia1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runia1/subscriptions","organizations_url":"https://api.github.com/users/runia1/orgs","repos_url":"https://api.github.com/users/runia1/repos","events_url":"https://api.github.com/users/runia1/events{/privacy}","received_events_url":"https://api.github.com/users/runia1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-21T09:06:29Z","updated_at":"2016-02-21T18:48:03Z","closed_at":"2016-02-21T18:48:03Z","body":"Using Polymer Starter Kit, when including paper-input in my elements.html file like such:\r\n\r\n`<link rel=\"import\" href=\"../bower_components/paper-input/paper-input.html\">`\r\n\r\nthen running:\r\n\r\n`gulp default`\r\n\r\nBuild goes smoothly until it attempts to vulcanize the elements.html, when I take out the include for paper-input the other includes are able to vulcanize and build finishes.  Any ideas what may be causing this?  I can provide more info if needed."},"comment":{"url":"https://api.github.com/repos/PolymerElements/paper-input/issues/comments/186884253","html_url":"https://github.com/PolymerElements/paper-input/issues/345#issuecomment-186884253","issue_url":"https://api.github.com/repos/PolymerElements/paper-input/issues/345","id":186884253,"user":{"login":"runia1","id":6709518,"avatar_url":"https://avatars.githubusercontent.com/u/6709518?v=3","gravatar_id":"","url":"https://api.github.com/users/runia1","html_url":"https://github.com/runia1","followers_url":"https://api.github.com/users/runia1/followers","following_url":"https://api.github.com/users/runia1/following{/other_user}","gists_url":"https://api.github.com/users/runia1/gists{/gist_id}","starred_url":"https://api.github.com/users/runia1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runia1/subscriptions","organizations_url":"https://api.github.com/users/runia1/orgs","repos_url":"https://api.github.com/users/runia1/repos","events_url":"https://api.github.com/users/runia1/events{/privacy}","received_events_url":"https://api.github.com/users/runia1/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T18:48:03Z","updated_at":"2016-02-21T18:48:03Z","body":"After doing some investigation I found that the problem was actually being caused by <iron-input> that was included by <paper-input>.  I also found a bug in the gulp-vulcanize build tool.  gulp-vulcanize was not reporting the error, I don't know enough about node to fully understand why, but here's what I found:\r\n\r\nBy adding a console.log() to gulp-vulcanize's index.js I was able to finally see where the problem was occurring:\r\n`(new Vulcanize(opts)).process(file.path, function(err, inlinedHtml) {\r\n      if(err) {\r\n        console.log('error on vulcanize' + err);\r\n        cb(new gutil.PluginError('gulp-vulcanize', err, {fileName: file.path}));\r\n        return;\r\n      }\r\n\r\n      file.contents = new Buffer(inlinedHtml);\r\n      cb(null, file);\r\n    }.bind(this));`\r\n\r\nThen when I ran:\r\n`$ gulp default`\r\nIt finally printed out the following error message:\r\n`[11:25:37] Starting 'vulcanize'...\r\nerror on vulcanizeError: Error parsing script in /Users/mar/PhpstormProjects/skedMeWeb2/app/bower_components/iron-input/iron-input.html at 75:13\r\nError: Line 62: Unexpected token :\r\n    at throwError (/Users/mar/PhpstormProjects/skedMeWeb2/node_modules/vulcanize/node_modules/hydrolysis/node_modules/espree/espree.js:2070:17)\r\n    at throwUnexpected (/Users/mar/PhpstormProjects/skedMeWeb2/node_modules/vulcanize/node_modules/hydrolysis/node_modules/espree/espree.js:2133:5)\r\n    at consumeSemicolon (/Users/mar/PhpstormProjects/skedMeWeb2/node_modules/vulcanize/node_modules/hydrolysis/node_modules/espree/espree.js:2214:9)\r\n    at parseStatement (/Users/mar/PhpstormProjects/skedMeWeb2/node_modules/vulcanize/node_modules/hydrolysis/node_modules/espree/espree.js:4361:5)\r\n    at parseStatement (/Users/mar/PhpstormProjects/skedMeWeb2/node_modules/vulcanize/node_modules/hydrolysis/node_modules/espree/espree.js:4356:23)\r\n    at parseSourceElement (/Users/mar/PhpstormProjects/skedMeWeb2/node_modules/vulcanize/node_modules/hydrolysis/node_modules/espree/espree.js:5187:16)\r\n    at parseStatementList (/Users/mar/PhpstormProjects/skedMeWeb2/node_modules/vulcanize/node_modules/hydrolysis/node_modules/espree/espree.js:3616:21)\r\n    at parseBlock (/Users/mar/PhpstormProjects/skedMeWeb2/node_modules/vulcanize/node_modules/hydrolysis/node_modules/espree/espree.js:3632:13)\r\n    at parseStatement (/Users/mar/PhpstormProjects/skedMeWeb2/node_modules/vulcanize/node_modules/hydrolysis/node_modules/espree/espree.js:4289:16)\r\n    at parseStatement (/Users/mar/PhpstormProjects/skedMeWeb2/node_modules/vulcanize/node_modules/hydrolysis/node_modules/espree/espree.js:4356:23)\r\n`\r\nFrom here I was able to see that <iron-input> was causing the problem.  The fact that I had to put a console.log() in there to see the error makes me think that gulp-vulcanize's cb (callback) isn't working the way they intended.\r\n\r\nLastly, in <iron-input> I found the culprit towards the end of the comment block:\r\n` <!-- only allow characters that match [0-9] -->\r\n  <\r\n  input\r\n  is = \"iron-input\"\r\n  prevent - invalid - input\r\n  allowed - pattern = \"[0-9]\" >\r\n\r\n  @\r\n  hero\r\n  hero.svg\r\n  @\r\n  demo\r\n  demo / index.html\r\n  * /\r\n\r\n  Polymer({`\r\n\r\nWhy the Comment was all screwed up like that I do not know.  I've checked the current master branch and the comment does not look like that, so possibly it got screwed up by bower or some other reason."}}