{"action":"created","issue":{"url":"https://api.github.com/repos/SomMeri/less4j/issues/273","labels_url":"https://api.github.com/repos/SomMeri/less4j/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/SomMeri/less4j/issues/273/comments","events_url":"https://api.github.com/repos/SomMeri/less4j/issues/273/events","html_url":"https://github.com/SomMeri/less4j/issues/273","id":64016658,"number":273,"title":"\"for\" and \"for-each\" mixins don't seem to work with Less4J","user":{"login":"EightDJ","id":4405822,"avatar_url":"https://avatars.githubusercontent.com/u/4405822?v=3","gravatar_id":"","url":"https://api.github.com/users/EightDJ","html_url":"https://github.com/EightDJ","followers_url":"https://api.github.com/users/EightDJ/followers","following_url":"https://api.github.com/users/EightDJ/following{/other_user}","gists_url":"https://api.github.com/users/EightDJ/gists{/gist_id}","starred_url":"https://api.github.com/users/EightDJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EightDJ/subscriptions","organizations_url":"https://api.github.com/users/EightDJ/orgs","repos_url":"https://api.github.com/users/EightDJ/repos","events_url":"https://api.github.com/users/EightDJ/events{/privacy}","received_events_url":"https://api.github.com/users/EightDJ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SomMeri/less4j/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/SomMeri/less4j/labels/High%20Priority","name":"High Priority","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/SomMeri/less4j/milestones/45","html_url":"https://github.com/SomMeri/less4j/milestones/1.9.1","labels_url":"https://api.github.com/repos/SomMeri/less4j/milestones/45/labels","id":1000721,"number":45,"title":"1.9.1","description":"","creator":{"login":"SomMeri","id":618879,"avatar_url":"https://avatars.githubusercontent.com/u/618879?v=3","gravatar_id":"","url":"https://api.github.com/users/SomMeri","html_url":"https://github.com/SomMeri","followers_url":"https://api.github.com/users/SomMeri/followers","following_url":"https://api.github.com/users/SomMeri/following{/other_user}","gists_url":"https://api.github.com/users/SomMeri/gists{/gist_id}","starred_url":"https://api.github.com/users/SomMeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SomMeri/subscriptions","organizations_url":"https://api.github.com/users/SomMeri/orgs","repos_url":"https://api.github.com/users/SomMeri/repos","events_url":"https://api.github.com/users/SomMeri/events{/privacy}","received_events_url":"https://api.github.com/users/SomMeri/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":5,"state":"open","created_at":"2015-03-01T16:26:35Z","updated_at":"2015-03-25T13:37:11Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-03-24T14:52:28Z","updated_at":"2015-03-25T13:38:30Z","closed_at":"2015-03-25T13:37:06Z","body":"### Description\r\nUsing the \"for\" mixins (used in more or less) doesn't seem to work. It says the mixin can't be found. However the command line less compiler has no issue.\r\n\r\n### Error:\r\n```\r\njava.io.IOException: Could not compile less. 4 error(s) occurred:\r\nERROR 20:38 Could not find mixin named \".-each\".\r\n 19:     .for-impl_(@i) when (@i > 1)    {.for-impl_((@i - 1))}\r\n 20:     .for-impl_(@i)                  {.-each(extract(@array, @i));}\r\n```\r\n\r\n### Implementation:\r\n\r\n    // .for\r\n    .for(@i, @n) {.-each(@i)}\r\n    .for(@n)     when (isnumber(@n)) {.for(1, @n)}\r\n    .for(@i, @n) when not (@i = @n)  {\r\n        .for((@i + ((@n - @i) / abs(@n - @i))), @n);\r\n    }\r\n\r\n    // .for-each\r\n    .for(@array)   when (default()) {.for-impl_(length(@array))}\r\n    .for-impl_(@i) when (@i > 1)    {.for-impl_((@i - 1))}\r\n    .for-impl_(@i)                  {.-each(extract(@array, @i));}\r\n\r\n### Usage: \r\n\r\n    @list: banana, apple, pear, potato, carrot, peach;\r\n\r\n    #basic-usage {\r\n        .for(@list); .-each(@value) {\r\n            value: @value;\r\n        }\r\n    }\r\n\r\n### Expected output:\r\n\r\n```\r\n#basic-usage {\r\n    value: banana;\r\n    value: apple;\r\n    value: pear;\r\n    value: potato;\r\n    value: carrot;\r\n    value: peach;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/SomMeri/less4j/issues/comments/86027695","html_url":"https://github.com/SomMeri/less4j/issues/273#issuecomment-86027695","issue_url":"https://api.github.com/repos/SomMeri/less4j/issues/273","id":86027695,"user":{"login":"SomMeri","id":618879,"avatar_url":"https://avatars.githubusercontent.com/u/618879?v=3","gravatar_id":"","url":"https://api.github.com/users/SomMeri","html_url":"https://github.com/SomMeri","followers_url":"https://api.github.com/users/SomMeri/followers","following_url":"https://api.github.com/users/SomMeri/following{/other_user}","gists_url":"https://api.github.com/users/SomMeri/gists{/gist_id}","starred_url":"https://api.github.com/users/SomMeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SomMeri/subscriptions","organizations_url":"https://api.github.com/users/SomMeri/orgs","repos_url":"https://api.github.com/users/SomMeri/repos","events_url":"https://api.github.com/users/SomMeri/events{/privacy}","received_events_url":"https://api.github.com/users/SomMeri/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T13:38:30Z","updated_at":"2015-03-25T13:38:30Z","body":"Fixed. It will be available in next release, next week latest."}}