{"action":"closed","number":11,"pull_request":{"url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/pulls/11","id":71999740,"html_url":"https://github.com/atilaneves/flycheck-dmd-dub/pull/11","diff_url":"https://github.com/atilaneves/flycheck-dmd-dub/pull/11.diff","patch_url":"https://github.com/atilaneves/flycheck-dmd-dub/pull/11.patch","issue_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/issues/11","number":11,"state":"closed","locked":false,"title":"Use cache file to reuse the result of dub describe","user":{"login":"tom-tan","id":4450141,"avatar_url":"https://avatars.githubusercontent.com/u/4450141?v=3","gravatar_id":"","url":"https://api.github.com/users/tom-tan","html_url":"https://github.com/tom-tan","followers_url":"https://api.github.com/users/tom-tan/followers","following_url":"https://api.github.com/users/tom-tan/following{/other_user}","gists_url":"https://api.github.com/users/tom-tan/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-tan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-tan/subscriptions","organizations_url":"https://api.github.com/users/tom-tan/orgs","repos_url":"https://api.github.com/users/tom-tan/repos","events_url":"https://api.github.com/users/tom-tan/events{/privacy}","received_events_url":"https://api.github.com/users/tom-tan/received_events","type":"User","site_admin":false},"body":"Currently, `flycheck-dmd-dub` invokes `dub describe` whenever we open D files in dub project even if these files belong to the same project and it takes long time to finish invoking `dub describe`.\r\nThis request solves this issue by introducing cache file for each dub project.\r\n\r\nAfter merging this request, `flycheck-dmd-dub-set-variables` works as follows:\r\n- It first checks the cache file `fldd--cache-file` in the project directory and `dub.selections.json` that contains all dependencies in the project (generated by `dub`).\r\n- If some of them does not exist or `fldd--cache-file` is older than `dub.selections.json` (i.e. dependencies are updated after generating the cache file), `flycheck-dmd-dub-set-variables` invokes `dub describe` and outputs the values of `import-paths` and `string-import-paths` to the cache file. Otherwise `flycheck-dmd-dub-set-variables` skip updating the cache file.\r\n- It reads `import-paths` and `string-import-paths` from the cache file and set them to flycheck-dmd variables.\r\n\r\nIt prevents `flycheck-dmd-dub-set-variables` from invoking `dub describe` when there is a latest cache file in a dub project.\r\n\r\nI also added the dependency for `f` library to use `f-read` and `f-write`.\r\n\r\nNote: I'm not sure that `.fldd.cache` (value of `fldd--cache-file`) is good file name for this purpose. Do you have any idea for that?\r\n","created_at":"2016-05-31T11:30:37Z","updated_at":"2016-06-01T17:09:52Z","closed_at":"2016-06-01T17:09:52Z","merged_at":"2016-06-01T17:09:52Z","merge_commit_sha":"6d5c97d1632ede73d32b3c1541e32d31bddd23cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/pulls/11/commits","review_comments_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/pulls/11/comments","review_comment_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/issues/11/comments","statuses_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/statuses/416dcac592d01ce441c2c71f9320e3ef887ef5d9","head":{"label":"tom-tan:use-cache","ref":"use-cache","sha":"416dcac592d01ce441c2c71f9320e3ef887ef5d9","user":{"login":"tom-tan","id":4450141,"avatar_url":"https://avatars.githubusercontent.com/u/4450141?v=3","gravatar_id":"","url":"https://api.github.com/users/tom-tan","html_url":"https://github.com/tom-tan","followers_url":"https://api.github.com/users/tom-tan/followers","following_url":"https://api.github.com/users/tom-tan/following{/other_user}","gists_url":"https://api.github.com/users/tom-tan/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-tan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-tan/subscriptions","organizations_url":"https://api.github.com/users/tom-tan/orgs","repos_url":"https://api.github.com/users/tom-tan/repos","events_url":"https://api.github.com/users/tom-tan/events{/privacy}","received_events_url":"https://api.github.com/users/tom-tan/received_events","type":"User","site_admin":false},"repo":{"id":60082280,"name":"flycheck-dmd-dub","full_name":"tom-tan/flycheck-dmd-dub","owner":{"login":"tom-tan","id":4450141,"avatar_url":"https://avatars.githubusercontent.com/u/4450141?v=3","gravatar_id":"","url":"https://api.github.com/users/tom-tan","html_url":"https://github.com/tom-tan","followers_url":"https://api.github.com/users/tom-tan/followers","following_url":"https://api.github.com/users/tom-tan/following{/other_user}","gists_url":"https://api.github.com/users/tom-tan/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-tan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-tan/subscriptions","organizations_url":"https://api.github.com/users/tom-tan/orgs","repos_url":"https://api.github.com/users/tom-tan/repos","events_url":"https://api.github.com/users/tom-tan/events{/privacy}","received_events_url":"https://api.github.com/users/tom-tan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tom-tan/flycheck-dmd-dub","description":"elisp to read package.json from dub and add syntax highlighting that resolves dependencies","fork":true,"url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub","forks_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/forks","keys_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/teams","hooks_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/hooks","issue_events_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/issues/events{/number}","events_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/events","assignees_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/assignees{/user}","branches_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/branches{/branch}","tags_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/tags","blobs_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/git/refs{/sha}","trees_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/statuses/{sha}","languages_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/languages","stargazers_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/stargazers","contributors_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/contributors","subscribers_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/subscribers","subscription_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/subscription","commits_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/commits{/sha}","git_commits_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/git/commits{/sha}","comments_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/comments{/number}","issue_comment_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/issues/comments{/number}","contents_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/contents/{+path}","compare_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/merges","archive_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/downloads","issues_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/issues{/number}","pulls_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/pulls{/number}","milestones_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/milestones{/number}","notifications_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/labels{/name}","releases_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/releases{/id}","deployments_url":"https://api.github.com/repos/tom-tan/flycheck-dmd-dub/deployments","created_at":"2016-05-31T11:02:03Z","updated_at":"2016-05-31T11:02:04Z","pushed_at":"2016-05-31T23:31:33Z","git_url":"git://github.com/tom-tan/flycheck-dmd-dub.git","ssh_url":"git@github.com:tom-tan/flycheck-dmd-dub.git","clone_url":"https://github.com/tom-tan/flycheck-dmd-dub.git","svn_url":"https://github.com/tom-tan/flycheck-dmd-dub","homepage":null,"size":56,"stargazers_count":0,"watchers_count":0,"language":"Emacs Lisp","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"atilaneves:master","ref":"master","sha":"1acd7e3683ed55ac11f013e325c1cbf19be8ad66","user":{"login":"atilaneves","id":4956425,"avatar_url":"https://avatars.githubusercontent.com/u/4956425?v=3","gravatar_id":"","url":"https://api.github.com/users/atilaneves","html_url":"https://github.com/atilaneves","followers_url":"https://api.github.com/users/atilaneves/followers","following_url":"https://api.github.com/users/atilaneves/following{/other_user}","gists_url":"https://api.github.com/users/atilaneves/gists{/gist_id}","starred_url":"https://api.github.com/users/atilaneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atilaneves/subscriptions","organizations_url":"https://api.github.com/users/atilaneves/orgs","repos_url":"https://api.github.com/users/atilaneves/repos","events_url":"https://api.github.com/users/atilaneves/events{/privacy}","received_events_url":"https://api.github.com/users/atilaneves/received_events","type":"User","site_admin":false},"repo":{"id":17484128,"name":"flycheck-dmd-dub","full_name":"atilaneves/flycheck-dmd-dub","owner":{"login":"atilaneves","id":4956425,"avatar_url":"https://avatars.githubusercontent.com/u/4956425?v=3","gravatar_id":"","url":"https://api.github.com/users/atilaneves","html_url":"https://github.com/atilaneves","followers_url":"https://api.github.com/users/atilaneves/followers","following_url":"https://api.github.com/users/atilaneves/following{/other_user}","gists_url":"https://api.github.com/users/atilaneves/gists{/gist_id}","starred_url":"https://api.github.com/users/atilaneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atilaneves/subscriptions","organizations_url":"https://api.github.com/users/atilaneves/orgs","repos_url":"https://api.github.com/users/atilaneves/repos","events_url":"https://api.github.com/users/atilaneves/events{/privacy}","received_events_url":"https://api.github.com/users/atilaneves/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/atilaneves/flycheck-dmd-dub","description":"elisp to read package.json from dub and add syntax highlighting that resolves dependencies","fork":false,"url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub","forks_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/forks","keys_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/teams","hooks_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/hooks","issue_events_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/issues/events{/number}","events_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/events","assignees_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/assignees{/user}","branches_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/branches{/branch}","tags_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/tags","blobs_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/git/refs{/sha}","trees_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/statuses/{sha}","languages_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/languages","stargazers_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/stargazers","contributors_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/contributors","subscribers_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/subscribers","subscription_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/subscription","commits_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/commits{/sha}","git_commits_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/git/commits{/sha}","comments_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/comments{/number}","issue_comment_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/issues/comments{/number}","contents_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/contents/{+path}","compare_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/merges","archive_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/downloads","issues_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/issues{/number}","pulls_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/pulls{/number}","milestones_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/milestones{/number}","notifications_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/labels{/name}","releases_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/releases{/id}","deployments_url":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/deployments","created_at":"2014-03-06T16:22:11Z","updated_at":"2015-03-25T14:56:33Z","pushed_at":"2016-06-01T17:09:52Z","git_url":"git://github.com/atilaneves/flycheck-dmd-dub.git","ssh_url":"git@github.com:atilaneves/flycheck-dmd-dub.git","clone_url":"https://github.com/atilaneves/flycheck-dmd-dub.git","svn_url":"https://github.com/atilaneves/flycheck-dmd-dub","homepage":null,"size":384,"stargazers_count":7,"watchers_count":7,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/pulls/11"},"html":{"href":"https://github.com/atilaneves/flycheck-dmd-dub/pull/11"},"issue":{"href":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/issues/11"},"comments":{"href":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/atilaneves/flycheck-dmd-dub/statuses/416dcac592d01ce441c2c71f9320e3ef887ef5d9"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"atilaneves","id":4956425,"avatar_url":"https://avatars.githubusercontent.com/u/4956425?v=3","gravatar_id":"","url":"https://api.github.com/users/atilaneves","html_url":"https://github.com/atilaneves","followers_url":"https://api.github.com/users/atilaneves/followers","following_url":"https://api.github.com/users/atilaneves/following{/other_user}","gists_url":"https://api.github.com/users/atilaneves/gists{/gist_id}","starred_url":"https://api.github.com/users/atilaneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atilaneves/subscriptions","organizations_url":"https://api.github.com/users/atilaneves/orgs","repos_url":"https://api.github.com/users/atilaneves/repos","events_url":"https://api.github.com/users/atilaneves/events{/privacy}","received_events_url":"https://api.github.com/users/atilaneves/received_events","type":"User","site_admin":false},"comments":2,"review_comments":2,"commits":4,"additions":52,"deletions":9,"changed_files":1}}
{"actor":{"display_login":"atilaneves"}}