{"action":"created","issue":{"url":"https://api.github.com/repos/Ensighten/spritesmith/issues/49","labels_url":"https://api.github.com/repos/Ensighten/spritesmith/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/Ensighten/spritesmith/issues/49/comments","events_url":"https://api.github.com/repos/Ensighten/spritesmith/issues/49/events","html_url":"https://github.com/Ensighten/spritesmith/issues/49","id":58147726,"number":49,"title":"NameError when compiling spritesmith Less spritesheet styles.","user":{"login":"Stratus3D","id":1520926,"avatar_url":"https://avatars.githubusercontent.com/u/1520926?v=3","gravatar_id":"","url":"https://api.github.com/users/Stratus3D","html_url":"https://github.com/Stratus3D","followers_url":"https://api.github.com/users/Stratus3D/followers","following_url":"https://api.github.com/users/Stratus3D/following{/other_user}","gists_url":"https://api.github.com/users/Stratus3D/gists{/gist_id}","starred_url":"https://api.github.com/users/Stratus3D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stratus3D/subscriptions","organizations_url":"https://api.github.com/users/Stratus3D/orgs","repos_url":"https://api.github.com/users/Stratus3D/repos","events_url":"https://api.github.com/users/Stratus3D/events{/privacy}","received_events_url":"https://api.github.com/users/Stratus3D/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-18T23:45:37Z","updated_at":"2015-02-19T02:52:54Z","closed_at":"2015-02-19T02:52:54Z","body":"I have spritesmith configured something like this:\r\n\r\n    module.exports.tasks = {\r\n      sprite: {\r\n        generalSprites: {\r\n          src: 'app/img/*.png',\r\n          dest: '<%= yeoman.sprites %>/img/sprites.png',\r\n          destCss: '<%= yeoman.sprites %>/less/sprites.less',\r\n          }\r\n        }\r\n     };\r\n\r\nThis works as expected and my sprites directory contains a `less` directory containing `sprites.less`. However, when I try to compile this file with `lessc` on the command line I get the following error:\r\n\r\n    NameError: variable @spriteOne is undefined in less/sprites.less on line 160, column 23:\r\n    159 @spritesheet-image: '../img/sprites.png';\r\n    160 @spritesheet-sprites: @spriteOne @spriteTwo @spriteThree;\r\n\r\nOpening up `less/sprites.less` reveals this (4th line is line 160):\r\n\r\n    @spritesheet-width: 748px;\r\n    @spritesheet-height: 705px;\r\n    @spritesheet-image: '../img/sprites.png';\r\n    @spritesheet-sprites: @spriteOne @spriteTwo @spriteThree;\r\n    @spritesheet: 748px 705px '../img/sprites.png' @spritesheet-sprites;\r\n\r\nLine 160 seems blatantly wrong. `@spriteOne` `@spriteTwo` `@spriteThree` are never defined anywhere in the file. I opened up the template that was used to generate the Less file part of the spritesheet-templates package (https://github.com/twolfson/spritesheet-templates/blob/master/lib/templates/less.template.mustache) and tried various things to fix the issue but nothing seemed to help. I thought line 36 should have changed from:\r\n\r\n    @{{spritesheet.strings.name_sprites}}:{{#items}} @{{name}}{{/items}};\r\n\r\nTo:\r\n\r\n    @{{spritesheet.strings.name_sprites}}:{{#items}} @{{strings.name}}{{/items}};\r\n\r\nAnd while this allows the file to be compiled without error, the variables are not available in the other Less files in my project (the mixins defined in the file are available, so I know the file has been imported). \r\n\r\nIt seems to me like there is something wrong with the mustache template, but lacking experience with Less I don't know what the issue with it could be."},"comment":{"url":"https://api.github.com/repos/Ensighten/spritesmith/issues/comments/74991327","html_url":"https://github.com/Ensighten/spritesmith/issues/49#issuecomment-74991327","issue_url":"https://api.github.com/repos/Ensighten/spritesmith/issues/49","id":74991327,"user":{"login":"twolfson","id":902488,"avatar_url":"https://avatars.githubusercontent.com/u/902488?v=3","gravatar_id":"","url":"https://api.github.com/users/twolfson","html_url":"https://github.com/twolfson","followers_url":"https://api.github.com/users/twolfson/followers","following_url":"https://api.github.com/users/twolfson/following{/other_user}","gists_url":"https://api.github.com/users/twolfson/gists{/gist_id}","starred_url":"https://api.github.com/users/twolfson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twolfson/subscriptions","organizations_url":"https://api.github.com/users/twolfson/orgs","repos_url":"https://api.github.com/users/twolfson/repos","events_url":"https://api.github.com/users/twolfson/events{/privacy}","received_events_url":"https://api.github.com/users/twolfson/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T02:52:54Z","updated_at":"2015-02-19T02:52:54Z","body":"The breaking changes have been reverted in `gulp.spritesmith@2.7.0` and `grunt-spritesmith@3.8.0`. Thanks for the bug report!"}}