{"action":"created","issue":{"url":"https://api.github.com/repos/gmarty/xgettext/issues/49","repository_url":"https://api.github.com/repos/gmarty/xgettext","labels_url":"https://api.github.com/repos/gmarty/xgettext/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/gmarty/xgettext/issues/49/comments","events_url":"https://api.github.com/repos/gmarty/xgettext/issues/49/events","html_url":"https://github.com/gmarty/xgettext/issues/49","id":164400757,"number":49,"title":"Error: Lexical error on line 1. Unrecognized text.","user":{"login":"tombertrand","id":19352322,"avatar_url":"https://avatars.githubusercontent.com/u/19352322?v=3","gravatar_id":"","url":"https://api.github.com/users/tombertrand","html_url":"https://github.com/tombertrand","followers_url":"https://api.github.com/users/tombertrand/followers","following_url":"https://api.github.com/users/tombertrand/following{/other_user}","gists_url":"https://api.github.com/users/tombertrand/gists{/gist_id}","starred_url":"https://api.github.com/users/tombertrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombertrand/subscriptions","organizations_url":"https://api.github.com/users/tombertrand/orgs","repos_url":"https://api.github.com/users/tombertrand/repos","events_url":"https://api.github.com/users/tombertrand/events{/privacy}","received_events_url":"https://api.github.com/users/tombertrand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-07T20:32:58Z","updated_at":"2016-07-07T21:10:05Z","closed_at":null,"body":"Working on Mac when creating folders it also creates a bunch of extra invisible files such as .DS_Store, these files then gets included by the xgettext package and obviously throws an error because they are invalid handlebars files.\r\n\r\nCould the `-D` parameter references and parse only `.hbs` or `.handlebars` files?\r\n\r\nHad to clear extra files using the commands described inside https://github.com/mikeal/tako/issues/4 but then as soon as something is modified, the file gets created again\r\n\r\n```javascript\r\n// Of course create an extention-language mapping array for the other supported languages: Swig, Volt and EJS\r\nif (options.directory) {\r\n  readdirp({root: options.directory, fileFilter: ['*.hbs', '*.handlebars']}, function(err, res) {\r\n    if (err) {\r\n      throw err;\r\n    }\r\n\r\n    parseFiles(res.files.map(function (file) {\r\n      return file.fullPath;\r\n    }), output);\r\n  });\r\n} else {\r\n```"},"comment":{"url":"https://api.github.com/repos/gmarty/xgettext/issues/comments/231208346","html_url":"https://github.com/gmarty/xgettext/issues/49#issuecomment-231208346","issue_url":"https://api.github.com/repos/gmarty/xgettext/issues/49","id":231208346,"user":{"login":"smhg","id":2411348,"avatar_url":"https://avatars.githubusercontent.com/u/2411348?v=3","gravatar_id":"","url":"https://api.github.com/users/smhg","html_url":"https://github.com/smhg","followers_url":"https://api.github.com/users/smhg/followers","following_url":"https://api.github.com/users/smhg/following{/other_user}","gists_url":"https://api.github.com/users/smhg/gists{/gist_id}","starred_url":"https://api.github.com/users/smhg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smhg/subscriptions","organizations_url":"https://api.github.com/users/smhg/orgs","repos_url":"https://api.github.com/users/smhg/repos","events_url":"https://api.github.com/users/smhg/events{/privacy}","received_events_url":"https://api.github.com/users/smhg/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T21:10:05Z","updated_at":"2016-07-07T21:10:05Z","body":"Could you post the whole command (including parameters) which you use to run xgettext-template?\r\nI haven't used it much outside of Poedit."}}
{"actor":{"display_login":"smhg"}}