GitHub PullRequestEvent at 2014-02-20 22:24:51
Repository: sbt-less-plugin
Actor: oleastre
Payload: {"action":"opened","number":13,"pull_request":{"url":"https://api.github.com/repos/sbt/sbt-less-plugin/pulls/13","id":12769615,"html_url":"https://github.com/sbt/sbt-less-plugin/pull/13","diff_url":"https://github.com/sbt/sbt-less-plugin/pull/13.diff","patch_url":"https://github.com/sbt/sbt-less-plugin/pull/13.patch","issue_url":"https://api.github.com/repos/sbt/sbt-less-plugin/issues/13","number":13,"state":"open","title":"Avoid ENOENT if target subfolder does not exists","user":{"login":"oleastre","id":838332,"avatar_url":"https://gravatar.com/avatar/b5500dba1a0c562904cbc5a7ffed3f79?d=https%3A%2F%2Fidenticons.github.com%2F26f3b76e674f6540b334d3045b33064f.png&r=x","gravatar_id":"b5500dba1a0c562904cbc5a7ffed3f79","url":"https://api.github.com/users/oleastre","html_url":"https://github.com/oleastre","followers_url":"https://api.github.com/users/oleastre/followers","following_url":"https://api.github.com/users/oleastre/following{/other_user}","gists_url":"https://api.github.com/users/oleastre/gists{/gist_id}","starred_url":"https://api.github.com/users/oleastre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleastre/subscriptions","organizations_url":"https://api.github.com/users/oleastre/orgs","repos_url":"https://api.github.com/users/oleastre/repos","events_url":"https://api.github.com/users/oleastre/events{/privacy}","received_events_url":"https://api.github.com/users/oleastre/received_events","type":"User","site_admin":false},"body":"I have a project with some less files located in a sub-folder of assets; something like:\r\n```\r\nassets\r\n  myapp\r\n    css\r\n      main.less\r\n      menu.less\r\n```\r\n\r\nWhen I try to compile this, I get a ENOENT exception because the `myapp` folder does not exists in the target folder (the less compiler tries to create the css folder, but the parent does not exists).\r\n\r\nThe current less compiler already handle that case but to do this, it depends on the nodejs mkdirp package.\r\n\r\nUnfortunately, this has to be manually installed outside of sbt.\r\n\r\nTo avoid this, I suggest to create the parent folders in the scala code instead of in the javascript one.\r\n\r\nI only modified the scala part; the javascript part can probably be simplified if this is applied.","created_at":"2014-02-20T22:24:51Z","updated_at":"2014-02-20T22:24:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sbt/sbt-less-plugin/pulls/13/commits","review_comments_url":"https://api.github.com/repos/sbt/sbt-less-plugin/pulls/13/comments","review_comment_url":"https://api.github.com/repos/sbt/sbt-less-plugin/pulls/comments/{number}","comments_url":"https://api.github.com/repos/sbt/sbt-less-plugin/issues/13/comments","statuses_url":"https://api.github.com/repos/sbt/sbt-less-plugin/statuses/0b065f8fd25c941cde3e904e677b64cdbe6876f7","head":{"label":"26lights:subfolder","ref":"subfolder","sha":"0b065f8fd25c941cde3e904e677b64cdbe6876f7","user":{"login":"26lights","id":5181115,"avatar_url":"https://identicons.github.com/6bc1f842e4086c2063f7a21cd7ced0ee.png","gravatar_id":null,"url":"https://api.github.com/users/26lights","html_url":"https://github.com/26lights","followers_url":"https://api.github.com/users/26lights/followers","following_url":"https://api.github.com/users/26lights/following{/other_user}","gists_url":"https://api.github.com/users/26lights/gists{/gist_id}","starred_url":"https://api.github.com/users/26lights/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/26lights/subscriptions","organizations_url":"https://api.github.com/users/26lights/orgs","repos_url":"https://api.github.com/users/26lights/repos","events_url":"https://api.github.com/users/26lights/events{/privacy}","received_events_url":"https://api.github.com/users/26lights/received_events","type":"Organization","site_admin":false},"repo":{"id":17037265,"name":"sbt-less-plugin","full_name":"26lights/sbt-less-plugin","owner":{"login":"26lights","id":5181115,"avatar_url":"https://identicons.github.com/6bc1f842e4086c2063f7a21cd7ced0ee.png","gravatar_id":null,"url":"https://api.github.com/users/26lights","html_url":"https://github.com/26lights","followers_url":"https://api.github.com/users/26lights/followers","following_url":"https://api.github.com/users/26lights/following{/other_user}","gists_url":"https://api.github.com/users/26lights/gists{/gist_id}","starred_url":"https://api.github.com/users/26lights/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/26lights/subscriptions","organizations_url":"https://api.github.com/users/26lights/orgs","repos_url":"https://api.github.com/users/26lights/repos","events_url":"https://api.github.com/users/26lights/events{/privacy}","received_events_url":"https://api.github.com/users/26lights/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/26lights/sbt-less-plugin","description":null,"fork":true,"url":"https://api.github.com/repos/26lights/sbt-less-plugin","forks_url":"https://api.github.com/repos/26lights/sbt-less-plugin/forks","keys_url":"https://api.github.com/repos/26lights/sbt-less-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/26lights/sbt-less-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/26lights/sbt-less-plugin/teams","hooks_url":"https://api.github.com/repos/26lights/sbt-less-plugin/hooks","issue_events_url":"https://api.github.com/repos/26lights/sbt-less-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/26lights/sbt-less-plugin/events","assignees_url":"https://api.github.com/repos/26lights/sbt-less-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/26lights/sbt-less-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/26lights/sbt-less-plugin/tags","blobs_url":"https://api.github.com/repos/26lights/sbt-less-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/26lights/sbt-less-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/26lights/sbt-less-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/26lights/sbt-less-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/26lights/sbt-less-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/26lights/sbt-less-plugin/languages","stargazers_url":"https://api.github.com/repos/26lights/sbt-less-plugin/stargazers","contributors_url":"https://api.github.com/repos/26lights/sbt-less-plugin/contributors","subscribers_url":"https://api.github.com/repos/26lights/sbt-less-plugin/subscribers","subscription_url":"https://api.github.com/repos/26lights/sbt-less-plugin/subscription","commits_url":"https://api.github.com/repos/26lights/sbt-less-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/26lights/sbt-less-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/26lights/sbt-less-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/26lights/sbt-less-plugin/issues/comments/{number}","contents_url":"https://api.github.com/repos/26lights/sbt-less-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/26lights/sbt-less-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/26lights/sbt-less-plugin/merges","archive_url":"https://api.github.com/repos/26lights/sbt-less-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/26lights/sbt-less-plugin/downloads","issues_url":"https://api.github.com/repos/26lights/sbt-less-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/26lights/sbt-less-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/26lights/sbt-less-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/26lights/sbt-less-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/26lights/sbt-less-plugin/labels{/name}","releases_url":"https://api.github.com/repos/26lights/sbt-less-plugin/releases{/id}","created_at":"2014-02-20T22:06:03Z","updated_at":"2014-02-20T22:24:51Z","pushed_at":"2014-02-20T22:06:51Z","git_url":"git://github.com/26lights/sbt-less-plugin.git","ssh_url":"git@github.com:26lights/sbt-less-plugin.git","clone_url":"https://github.com/26lights/sbt-less-plugin.git","svn_url":"https://github.com/26lights/sbt-less-plugin","homepage":null,"size":496,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"sbt:master","ref":"master","sha":"b46d71afb321694175a47dc5eea63e417160fb5d","user":{"login":"sbt","id":1158012,"avatar_url":"https://gravatar.com/avatar/0fdca0fe2dafacc958155d16ee280c5f?d=https%3A%2F%2Fidenticons.github.com%2F8d4668adfdf24bbaf9150fdbbe887910.png&r=x","gravatar_id":"0fdca0fe2dafacc958155d16ee280c5f","url":"https://api.github.com/users/sbt","html_url":"https://github.com/sbt","followers_url":"https://api.github.com/users/sbt/followers","following_url":"https://api.github.com/users/sbt/following{/other_user}","gists_url":"https://api.github.com/users/sbt/gists{/gist_id}","starred_url":"https://api.github.com/users/sbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbt/subscriptions","organizations_url":"https://api.github.com/users/sbt/orgs","repos_url":"https://api.github.com/users/sbt/repos","events_url":"https://api.github.com/users/sbt/events{/privacy}","received_events_url":"https://api.github.com/users/sbt/received_events","type":"Organization","site_admin":false},"repo":{"id":15127617,"name":"sbt-less-plugin","full_name":"sbt/sbt-less-plugin","owner":{"login":"sbt","id":1158012,"avatar_url":"https://gravatar.com/avatar/0fdca0fe2dafacc958155d16ee280c5f?d=https%3A%2F%2Fidenticons.github.com%2F8d4668adfdf24bbaf9150fdbbe887910.png&r=x","gravatar_id":"0fdca0fe2dafacc958155d16ee280c5f","url":"https://api.github.com/users/sbt","html_url":"https://github.com/sbt","followers_url":"https://api.github.com/users/sbt/followers","following_url":"https://api.github.com/users/sbt/following{/other_user}","gists_url":"https://api.github.com/users/sbt/gists{/gist_id}","starred_url":"https://api.github.com/users/sbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbt/subscriptions","organizations_url":"https://api.github.com/users/sbt/orgs","repos_url":"https://api.github.com/users/sbt/repos","events_url":"https://api.github.com/users/sbt/events{/privacy}","received_events_url":"https://api.github.com/users/sbt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sbt/sbt-less-plugin","description":null,"fork":false,"url":"https://api.github.com/repos/sbt/sbt-less-plugin","forks_url":"https://api.github.com/repos/sbt/sbt-less-plugin/forks","keys_url":"https://api.github.com/repos/sbt/sbt-less-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbt/sbt-less-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbt/sbt-less-plugin/teams","hooks_url":"https://api.github.com/repos/sbt/sbt-less-plugin/hooks","issue_events_url":"https://api.github.com/repos/sbt/sbt-less-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/sbt/sbt-less-plugin/events","assignees_url":"https://api.github.com/repos/sbt/sbt-less-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/sbt/sbt-less-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/sbt/sbt-less-plugin/tags","blobs_url":"https://api.github.com/repos/sbt/sbt-less-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbt/sbt-less-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbt/sbt-less-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbt/sbt-less-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbt/sbt-less-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/sbt/sbt-less-plugin/languages","stargazers_url":"https://api.github.com/repos/sbt/sbt-less-plugin/stargazers","contributors_url":"https://api.github.com/repos/sbt/sbt-less-plugin/contributors","subscribers_url":"https://api.github.com/repos/sbt/sbt-less-plugin/subscribers","subscription_url":"https://api.github.com/repos/sbt/sbt-less-plugin/subscription","commits_url":"https://api.github.com/repos/sbt/sbt-less-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbt/sbt-less-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbt/sbt-less-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbt/sbt-less-plugin/issues/comments/{number}","contents_url":"https://api.github.com/repos/sbt/sbt-less-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/sbt/sbt-less-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbt/sbt-less-plugin/merges","archive_url":"https://api.github.com/repos/sbt/sbt-less-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbt/sbt-less-plugin/downloads","issues_url":"https://api.github.com/repos/sbt/sbt-less-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/sbt/sbt-less-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/sbt/sbt-less-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/sbt/sbt-less-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbt/sbt-less-plugin/labels{/name}","releases_url":"https://api.github.com/repos/sbt/sbt-less-plugin/releases{/id}","created_at":"2013-12-12T05:21:29Z","updated_at":"2014-02-20T01:51:12Z","pushed_at":"2014-02-20T01:51:12Z","git_url":"git://github.com/sbt/sbt-less-plugin.git","ssh_url":"git@github.com:sbt/sbt-less-plugin.git","clone_url":"https://github.com/sbt/sbt-less-plugin.git","svn_url":"https://github.com/sbt/sbt-less-plugin","homepage":null,"size":496,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":3,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sbt/sbt-less-plugin/pulls/13"},"html":{"href":"https://github.com/sbt/sbt-less-plugin/pull/13"},"issue":{"href":"https://api.github.com/repos/sbt/sbt-less-plugin/issues/13"},"comments":{"href":"https://api.github.com/repos/sbt/sbt-less-plugin/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/sbt/sbt-less-plugin/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/sbt/sbt-less-plugin/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/sbt/sbt-less-plugin/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/sbt/sbt-less-plugin/statuses/0b065f8fd25c941cde3e904e677b64cdbe6876f7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":3,"deletions":2,"changed_files":2}}