{"action":"created","comment":{"url":"https://api.github.com/repos/lihaoyi/Ammonite/pulls/comments/35173250","id":35173250,"diff_hunk":"@@ -197,18 +230,62 @@ object Evaluator{\n       // Exhaust the printer iterator now, before exiting the `Catching`\n       // block, so any exceptions thrown get properly caught and handled\n       evaluatorRunPrinter(printer(evalMain(cls).asInstanceOf[Iterator[String]]))\n+      evaluationResult(wrapperName, newImports)\n+    }\n+\n+    def compileCacheBlock(wrapperName: String, code: String, scriptImports: Seq[ImportData]): Res[(Class[_], Seq[ImportData])] = for {","path":"repl/src/main/scala/ammonite/repl/interp/Evaluator.scala","position":168,"original_position":168,"commit_id":"ba9941c80c2a8735bdefe1b42966e9dd48af0147","original_commit_id":"ba9941c80c2a8735bdefe1b42966e9dd48af0147","user":{"login":"lihaoyi","id":934140,"avatar_url":"https://avatars.githubusercontent.com/u/934140?v=3","gravatar_id":"","url":"https://api.github.com/users/lihaoyi","html_url":"https://github.com/lihaoyi","followers_url":"https://api.github.com/users/lihaoyi/followers","following_url":"https://api.github.com/users/lihaoyi/following{/other_user}","gists_url":"https://api.github.com/users/lihaoyi/gists{/gist_id}","starred_url":"https://api.github.com/users/lihaoyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihaoyi/subscriptions","organizations_url":"https://api.github.com/users/lihaoyi/orgs","repos_url":"https://api.github.com/users/lihaoyi/repos","events_url":"https://api.github.com/users/lihaoyi/events{/privacy}","received_events_url":"https://api.github.com/users/lihaoyi/received_events","type":"User","site_admin":false},"body":"Can you talk a bit about how this is different from the \"normal\" way of doing things in `processLine`? I suspect there's some possible code sharing to be had, but I don't fully understand what you're trying to do here","created_at":"2015-07-22T01:23:15Z","updated_at":"2015-07-22T01:23:15Z","html_url":"https://github.com/lihaoyi/Ammonite/pull/115#discussion_r35173250","pull_request_url":"https://api.github.com/repos/lihaoyi/Ammonite/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/lihaoyi/Ammonite/pulls/comments/35173250"},"html":{"href":"https://github.com/lihaoyi/Ammonite/pull/115#discussion_r35173250"},"pull_request":{"href":"https://api.github.com/repos/lihaoyi/Ammonite/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/lihaoyi/Ammonite/pulls/115","id":40294025,"html_url":"https://github.com/lihaoyi/Ammonite/pull/115","diff_url":"https://github.com/lihaoyi/Ammonite/pull/115.diff","patch_url":"https://github.com/lihaoyi/Ammonite/pull/115.patch","issue_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/115","number":115,"state":"open","locked":false,"title":"Cache","user":{"login":"laci37","id":1523132,"avatar_url":"https://avatars.githubusercontent.com/u/1523132?v=3","gravatar_id":"","url":"https://api.github.com/users/laci37","html_url":"https://github.com/laci37","followers_url":"https://api.github.com/users/laci37/followers","following_url":"https://api.github.com/users/laci37/following{/other_user}","gists_url":"https://api.github.com/users/laci37/gists{/gist_id}","starred_url":"https://api.github.com/users/laci37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laci37/subscriptions","organizations_url":"https://api.github.com/users/laci37/orgs","repos_url":"https://api.github.com/users/laci37/repos","events_url":"https://api.github.com/users/laci37/events{/privacy}","received_events_url":"https://api.github.com/users/laci37/received_events","type":"User","site_admin":false},"body":"Scripts loaded with `load.module` are cached to avoid recompiling them. Sideeffects in these scripts only happen once in each session. These scripts are limited to importing `ReplApi` stuff from the REPL, nothing else defined in the REPL is accessible.","created_at":"2015-07-18T15:57:24Z","updated_at":"2015-07-22T01:23:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lihaoyi/Ammonite/pulls/115/commits","review_comments_url":"https://api.github.com/repos/lihaoyi/Ammonite/pulls/115/comments","review_comment_url":"https://api.github.com/repos/lihaoyi/Ammonite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/115/comments","statuses_url":"https://api.github.com/repos/lihaoyi/Ammonite/statuses/ba9941c80c2a8735bdefe1b42966e9dd48af0147","head":{"label":"laci37:cache","ref":"cache","sha":"ba9941c80c2a8735bdefe1b42966e9dd48af0147","user":{"login":"laci37","id":1523132,"avatar_url":"https://avatars.githubusercontent.com/u/1523132?v=3","gravatar_id":"","url":"https://api.github.com/users/laci37","html_url":"https://github.com/laci37","followers_url":"https://api.github.com/users/laci37/followers","following_url":"https://api.github.com/users/laci37/following{/other_user}","gists_url":"https://api.github.com/users/laci37/gists{/gist_id}","starred_url":"https://api.github.com/users/laci37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laci37/subscriptions","organizations_url":"https://api.github.com/users/laci37/orgs","repos_url":"https://api.github.com/users/laci37/repos","events_url":"https://api.github.com/users/laci37/events{/privacy}","received_events_url":"https://api.github.com/users/laci37/received_events","type":"User","site_admin":false},"repo":{"id":33993582,"name":"Ammonite","full_name":"laci37/Ammonite","owner":{"login":"laci37","id":1523132,"avatar_url":"https://avatars.githubusercontent.com/u/1523132?v=3","gravatar_id":"","url":"https://api.github.com/users/laci37","html_url":"https://github.com/laci37","followers_url":"https://api.github.com/users/laci37/followers","following_url":"https://api.github.com/users/laci37/following{/other_user}","gists_url":"https://api.github.com/users/laci37/gists{/gist_id}","starred_url":"https://api.github.com/users/laci37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laci37/subscriptions","organizations_url":"https://api.github.com/users/laci37/orgs","repos_url":"https://api.github.com/users/laci37/repos","events_url":"https://api.github.com/users/laci37/events{/privacy}","received_events_url":"https://api.github.com/users/laci37/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/laci37/Ammonite","description":"Rock-solid shell scripting","fork":true,"url":"https://api.github.com/repos/laci37/Ammonite","forks_url":"https://api.github.com/repos/laci37/Ammonite/forks","keys_url":"https://api.github.com/repos/laci37/Ammonite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laci37/Ammonite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laci37/Ammonite/teams","hooks_url":"https://api.github.com/repos/laci37/Ammonite/hooks","issue_events_url":"https://api.github.com/repos/laci37/Ammonite/issues/events{/number}","events_url":"https://api.github.com/repos/laci37/Ammonite/events","assignees_url":"https://api.github.com/repos/laci37/Ammonite/assignees{/user}","branches_url":"https://api.github.com/repos/laci37/Ammonite/branches{/branch}","tags_url":"https://api.github.com/repos/laci37/Ammonite/tags","blobs_url":"https://api.github.com/repos/laci37/Ammonite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laci37/Ammonite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laci37/Ammonite/git/refs{/sha}","trees_url":"https://api.github.com/repos/laci37/Ammonite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laci37/Ammonite/statuses/{sha}","languages_url":"https://api.github.com/repos/laci37/Ammonite/languages","stargazers_url":"https://api.github.com/repos/laci37/Ammonite/stargazers","contributors_url":"https://api.github.com/repos/laci37/Ammonite/contributors","subscribers_url":"https://api.github.com/repos/laci37/Ammonite/subscribers","subscription_url":"https://api.github.com/repos/laci37/Ammonite/subscription","commits_url":"https://api.github.com/repos/laci37/Ammonite/commits{/sha}","git_commits_url":"https://api.github.com/repos/laci37/Ammonite/git/commits{/sha}","comments_url":"https://api.github.com/repos/laci37/Ammonite/comments{/number}","issue_comment_url":"https://api.github.com/repos/laci37/Ammonite/issues/comments{/number}","contents_url":"https://api.github.com/repos/laci37/Ammonite/contents/{+path}","compare_url":"https://api.github.com/repos/laci37/Ammonite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laci37/Ammonite/merges","archive_url":"https://api.github.com/repos/laci37/Ammonite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laci37/Ammonite/downloads","issues_url":"https://api.github.com/repos/laci37/Ammonite/issues{/number}","pulls_url":"https://api.github.com/repos/laci37/Ammonite/pulls{/number}","milestones_url":"https://api.github.com/repos/laci37/Ammonite/milestones{/number}","notifications_url":"https://api.github.com/repos/laci37/Ammonite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laci37/Ammonite/labels{/name}","releases_url":"https://api.github.com/repos/laci37/Ammonite/releases{/id}","created_at":"2015-04-15T12:52:16Z","updated_at":"2015-04-29T12:06:06Z","pushed_at":"2015-07-21T20:47:26Z","git_url":"git://github.com/laci37/Ammonite.git","ssh_url":"git@github.com:laci37/Ammonite.git","clone_url":"https://github.com/laci37/Ammonite.git","svn_url":"https://github.com/laci37/Ammonite","homepage":null,"size":2368,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lihaoyi:master","ref":"master","sha":"ab9c9a6818d9ee497450e6a3688118ab9f3e098f","user":{"login":"lihaoyi","id":934140,"avatar_url":"https://avatars.githubusercontent.com/u/934140?v=3","gravatar_id":"","url":"https://api.github.com/users/lihaoyi","html_url":"https://github.com/lihaoyi","followers_url":"https://api.github.com/users/lihaoyi/followers","following_url":"https://api.github.com/users/lihaoyi/following{/other_user}","gists_url":"https://api.github.com/users/lihaoyi/gists{/gist_id}","starred_url":"https://api.github.com/users/lihaoyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihaoyi/subscriptions","organizations_url":"https://api.github.com/users/lihaoyi/orgs","repos_url":"https://api.github.com/users/lihaoyi/repos","events_url":"https://api.github.com/users/lihaoyi/events{/privacy}","received_events_url":"https://api.github.com/users/lihaoyi/received_events","type":"User","site_admin":false},"repo":{"id":29178282,"name":"Ammonite","full_name":"lihaoyi/Ammonite","owner":{"login":"lihaoyi","id":934140,"avatar_url":"https://avatars.githubusercontent.com/u/934140?v=3","gravatar_id":"","url":"https://api.github.com/users/lihaoyi","html_url":"https://github.com/lihaoyi","followers_url":"https://api.github.com/users/lihaoyi/followers","following_url":"https://api.github.com/users/lihaoyi/following{/other_user}","gists_url":"https://api.github.com/users/lihaoyi/gists{/gist_id}","starred_url":"https://api.github.com/users/lihaoyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihaoyi/subscriptions","organizations_url":"https://api.github.com/users/lihaoyi/orgs","repos_url":"https://api.github.com/users/lihaoyi/repos","events_url":"https://api.github.com/users/lihaoyi/events{/privacy}","received_events_url":"https://api.github.com/users/lihaoyi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lihaoyi/Ammonite","description":"Rock-solid shell scripting","fork":false,"url":"https://api.github.com/repos/lihaoyi/Ammonite","forks_url":"https://api.github.com/repos/lihaoyi/Ammonite/forks","keys_url":"https://api.github.com/repos/lihaoyi/Ammonite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lihaoyi/Ammonite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lihaoyi/Ammonite/teams","hooks_url":"https://api.github.com/repos/lihaoyi/Ammonite/hooks","issue_events_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/events{/number}","events_url":"https://api.github.com/repos/lihaoyi/Ammonite/events","assignees_url":"https://api.github.com/repos/lihaoyi/Ammonite/assignees{/user}","branches_url":"https://api.github.com/repos/lihaoyi/Ammonite/branches{/branch}","tags_url":"https://api.github.com/repos/lihaoyi/Ammonite/tags","blobs_url":"https://api.github.com/repos/lihaoyi/Ammonite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lihaoyi/Ammonite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lihaoyi/Ammonite/git/refs{/sha}","trees_url":"https://api.github.com/repos/lihaoyi/Ammonite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lihaoyi/Ammonite/statuses/{sha}","languages_url":"https://api.github.com/repos/lihaoyi/Ammonite/languages","stargazers_url":"https://api.github.com/repos/lihaoyi/Ammonite/stargazers","contributors_url":"https://api.github.com/repos/lihaoyi/Ammonite/contributors","subscribers_url":"https://api.github.com/repos/lihaoyi/Ammonite/subscribers","subscription_url":"https://api.github.com/repos/lihaoyi/Ammonite/subscription","commits_url":"https://api.github.com/repos/lihaoyi/Ammonite/commits{/sha}","git_commits_url":"https://api.github.com/repos/lihaoyi/Ammonite/git/commits{/sha}","comments_url":"https://api.github.com/repos/lihaoyi/Ammonite/comments{/number}","issue_comment_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/comments{/number}","contents_url":"https://api.github.com/repos/lihaoyi/Ammonite/contents/{+path}","compare_url":"https://api.github.com/repos/lihaoyi/Ammonite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lihaoyi/Ammonite/merges","archive_url":"https://api.github.com/repos/lihaoyi/Ammonite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lihaoyi/Ammonite/downloads","issues_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues{/number}","pulls_url":"https://api.github.com/repos/lihaoyi/Ammonite/pulls{/number}","milestones_url":"https://api.github.com/repos/lihaoyi/Ammonite/milestones{/number}","notifications_url":"https://api.github.com/repos/lihaoyi/Ammonite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lihaoyi/Ammonite/labels{/name}","releases_url":"https://api.github.com/repos/lihaoyi/Ammonite/releases{/id}","created_at":"2015-01-13T07:34:38Z","updated_at":"2015-07-20T10:06:07Z","pushed_at":"2015-07-21T20:47:26Z","git_url":"git://github.com/lihaoyi/Ammonite.git","ssh_url":"git@github.com:lihaoyi/Ammonite.git","clone_url":"https://github.com/lihaoyi/Ammonite.git","svn_url":"https://github.com/lihaoyi/Ammonite","homepage":null,"size":3372,"stargazers_count":359,"watchers_count":359,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":23,"mirror_url":null,"open_issues_count":16,"forks":23,"open_issues":16,"watchers":359,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lihaoyi/Ammonite/pulls/115"},"html":{"href":"https://github.com/lihaoyi/Ammonite/pull/115"},"issue":{"href":"https://api.github.com/repos/lihaoyi/Ammonite/issues/115"},"comments":{"href":"https://api.github.com/repos/lihaoyi/Ammonite/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/lihaoyi/Ammonite/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/lihaoyi/Ammonite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lihaoyi/Ammonite/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/lihaoyi/Ammonite/statuses/ba9941c80c2a8735bdefe1b42966e9dd48af0147"}}}}