{"action":"created","comment":{"url":"https://api.github.com/repos/cppit/jucipp/pulls/comments/56794027","id":56794027,"diff_hunk":"@@ -35,6 +35,28 @@ void Project::save_files(const boost::filesystem::path &path) {\n   }\n }\n \n+void Project::on_save() {\n+  if(Notebook::get().get_current_page()==-1)\n+    return;\n+  auto view=Notebook::get().get_current_view();\n+  if(view->file_path.filename()==\"CMakeLists.txt\") {\n+    auto build=get_build(view->file_path);","path":"src/project.cc","position":null,"original_position":9,"commit_id":"117857f937c221e931e6bdbe42e10781426e8ba1","original_commit_id":"8a1c42450d955bb685ce8af134ad1569fb36b904","user":{"login":"eidheim","id":5269318,"avatar_url":"https://avatars.githubusercontent.com/u/5269318?v=3","gravatar_id":"","url":"https://api.github.com/users/eidheim","html_url":"https://github.com/eidheim","followers_url":"https://api.github.com/users/eidheim/followers","following_url":"https://api.github.com/users/eidheim/following{/other_user}","gists_url":"https://api.github.com/users/eidheim/gists{/gist_id}","starred_url":"https://api.github.com/users/eidheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eidheim/subscriptions","organizations_url":"https://api.github.com/users/eidheim/orgs","repos_url":"https://api.github.com/users/eidheim/repos","events_url":"https://api.github.com/users/eidheim/events{/privacy}","received_events_url":"https://api.github.com/users/eidheim/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2016-03-21T09:03:20Z","updated_at":"2016-03-21T09:03:20Z","html_url":"https://github.com/cppit/jucipp/pull/168#discussion_r56794027","pull_request_url":"https://api.github.com/repos/cppit/jucipp/pulls/168","_links":{"self":{"href":"https://api.github.com/repos/cppit/jucipp/pulls/comments/56794027"},"html":{"href":"https://github.com/cppit/jucipp/pull/168#discussion_r56794027"},"pull_request":{"href":"https://api.github.com/repos/cppit/jucipp/pulls/168"}}},"pull_request":{"url":"https://api.github.com/repos/cppit/jucipp/pulls/168","id":63213258,"html_url":"https://github.com/cppit/jucipp/pull/168","diff_url":"https://github.com/cppit/jucipp/pull/168.diff","patch_url":"https://github.com/cppit/jucipp/pull/168.patch","issue_url":"https://api.github.com/repos/cppit/jucipp/issues/168","number":168,"state":"open","locked":false,"title":"Fixes #6 and #97","user":{"login":"eidheim","id":5269318,"avatar_url":"https://avatars.githubusercontent.com/u/5269318?v=3","gravatar_id":"","url":"https://api.github.com/users/eidheim","html_url":"https://github.com/eidheim","followers_url":"https://api.github.com/users/eidheim/followers","following_url":"https://api.github.com/users/eidheim/following{/other_user}","gists_url":"https://api.github.com/users/eidheim/gists{/gist_id}","starred_url":"https://api.github.com/users/eidheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eidheim/subscriptions","organizations_url":"https://api.github.com/users/eidheim/orgs","repos_url":"https://api.github.com/users/eidheim/repos","events_url":"https://api.github.com/users/eidheim/events{/privacy}","received_events_url":"https://api.github.com/users/eidheim/received_events","type":"User","site_admin":false},"body":"~~Not thoroughly tested yet.~~ Edit: Seems ready for merge. Tested on most platforms. ","created_at":"2016-03-17T12:13:22Z","updated_at":"2016-03-21T09:03:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3eefb9def2d3bcb53f8748d8cfdc0674863711f9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cppit/jucipp/pulls/168/commits","review_comments_url":"https://api.github.com/repos/cppit/jucipp/pulls/168/comments","review_comment_url":"https://api.github.com/repos/cppit/jucipp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cppit/jucipp/issues/168/comments","statuses_url":"https://api.github.com/repos/cppit/jucipp/statuses/117857f937c221e931e6bdbe42e10781426e8ba1","head":{"label":"eidheim:master","ref":"master","sha":"117857f937c221e931e6bdbe42e10781426e8ba1","user":{"login":"eidheim","id":5269318,"avatar_url":"https://avatars.githubusercontent.com/u/5269318?v=3","gravatar_id":"","url":"https://api.github.com/users/eidheim","html_url":"https://github.com/eidheim","followers_url":"https://api.github.com/users/eidheim/followers","following_url":"https://api.github.com/users/eidheim/following{/other_user}","gists_url":"https://api.github.com/users/eidheim/gists{/gist_id}","starred_url":"https://api.github.com/users/eidheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eidheim/subscriptions","organizations_url":"https://api.github.com/users/eidheim/orgs","repos_url":"https://api.github.com/users/eidheim/repos","events_url":"https://api.github.com/users/eidheim/events{/privacy}","received_events_url":"https://api.github.com/users/eidheim/received_events","type":"User","site_admin":false},"repo":{"id":36972937,"name":"jucipp","full_name":"eidheim/jucipp","owner":{"login":"eidheim","id":5269318,"avatar_url":"https://avatars.githubusercontent.com/u/5269318?v=3","gravatar_id":"","url":"https://api.github.com/users/eidheim","html_url":"https://github.com/eidheim","followers_url":"https://api.github.com/users/eidheim/followers","following_url":"https://api.github.com/users/eidheim/following{/other_user}","gists_url":"https://api.github.com/users/eidheim/gists{/gist_id}","starred_url":"https://api.github.com/users/eidheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eidheim/subscriptions","organizations_url":"https://api.github.com/users/eidheim/orgs","repos_url":"https://api.github.com/users/eidheim/repos","events_url":"https://api.github.com/users/eidheim/events{/privacy}","received_events_url":"https://api.github.com/users/eidheim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eidheim/jucipp","description":"a lightweight platform independent C++-IDE with support for C++11 and C++14","fork":true,"url":"https://api.github.com/repos/eidheim/jucipp","forks_url":"https://api.github.com/repos/eidheim/jucipp/forks","keys_url":"https://api.github.com/repos/eidheim/jucipp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eidheim/jucipp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eidheim/jucipp/teams","hooks_url":"https://api.github.com/repos/eidheim/jucipp/hooks","issue_events_url":"https://api.github.com/repos/eidheim/jucipp/issues/events{/number}","events_url":"https://api.github.com/repos/eidheim/jucipp/events","assignees_url":"https://api.github.com/repos/eidheim/jucipp/assignees{/user}","branches_url":"https://api.github.com/repos/eidheim/jucipp/branches{/branch}","tags_url":"https://api.github.com/repos/eidheim/jucipp/tags","blobs_url":"https://api.github.com/repos/eidheim/jucipp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eidheim/jucipp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eidheim/jucipp/git/refs{/sha}","trees_url":"https://api.github.com/repos/eidheim/jucipp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eidheim/jucipp/statuses/{sha}","languages_url":"https://api.github.com/repos/eidheim/jucipp/languages","stargazers_url":"https://api.github.com/repos/eidheim/jucipp/stargazers","contributors_url":"https://api.github.com/repos/eidheim/jucipp/contributors","subscribers_url":"https://api.github.com/repos/eidheim/jucipp/subscribers","subscription_url":"https://api.github.com/repos/eidheim/jucipp/subscription","commits_url":"https://api.github.com/repos/eidheim/jucipp/commits{/sha}","git_commits_url":"https://api.github.com/repos/eidheim/jucipp/git/commits{/sha}","comments_url":"https://api.github.com/repos/eidheim/jucipp/comments{/number}","issue_comment_url":"https://api.github.com/repos/eidheim/jucipp/issues/comments{/number}","contents_url":"https://api.github.com/repos/eidheim/jucipp/contents/{+path}","compare_url":"https://api.github.com/repos/eidheim/jucipp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eidheim/jucipp/merges","archive_url":"https://api.github.com/repos/eidheim/jucipp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eidheim/jucipp/downloads","issues_url":"https://api.github.com/repos/eidheim/jucipp/issues{/number}","pulls_url":"https://api.github.com/repos/eidheim/jucipp/pulls{/number}","milestones_url":"https://api.github.com/repos/eidheim/jucipp/milestones{/number}","notifications_url":"https://api.github.com/repos/eidheim/jucipp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eidheim/jucipp/labels{/name}","releases_url":"https://api.github.com/repos/eidheim/jucipp/releases{/id}","deployments_url":"https://api.github.com/repos/eidheim/jucipp/deployments","created_at":"2015-06-06T08:25:53Z","updated_at":"2016-01-11T21:38:38Z","pushed_at":"2016-03-21T09:03:00Z","git_url":"git://github.com/eidheim/jucipp.git","ssh_url":"git@github.com:eidheim/jucipp.git","clone_url":"https://github.com/eidheim/jucipp.git","svn_url":"https://github.com/eidheim/jucipp","homepage":"","size":2125,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"cppit:master","ref":"master","sha":"dbf63dff1cd0712c1f77d535a95df961a6f5e31f","user":{"login":"cppit","id":12169864,"avatar_url":"https://avatars.githubusercontent.com/u/12169864?v=3","gravatar_id":"","url":"https://api.github.com/users/cppit","html_url":"https://github.com/cppit","followers_url":"https://api.github.com/users/cppit/followers","following_url":"https://api.github.com/users/cppit/following{/other_user}","gists_url":"https://api.github.com/users/cppit/gists{/gist_id}","starred_url":"https://api.github.com/users/cppit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cppit/subscriptions","organizations_url":"https://api.github.com/users/cppit/orgs","repos_url":"https://api.github.com/users/cppit/repos","events_url":"https://api.github.com/users/cppit/events{/privacy}","received_events_url":"https://api.github.com/users/cppit/received_events","type":"Organization","site_admin":false},"repo":{"id":34792087,"name":"jucipp","full_name":"cppit/jucipp","owner":{"login":"cppit","id":12169864,"avatar_url":"https://avatars.githubusercontent.com/u/12169864?v=3","gravatar_id":"","url":"https://api.github.com/users/cppit","html_url":"https://github.com/cppit","followers_url":"https://api.github.com/users/cppit/followers","following_url":"https://api.github.com/users/cppit/following{/other_user}","gists_url":"https://api.github.com/users/cppit/gists{/gist_id}","starred_url":"https://api.github.com/users/cppit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cppit/subscriptions","organizations_url":"https://api.github.com/users/cppit/orgs","repos_url":"https://api.github.com/users/cppit/repos","events_url":"https://api.github.com/users/cppit/events{/privacy}","received_events_url":"https://api.github.com/users/cppit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cppit/jucipp","description":"juCi++: a lightweight, cross-platform C++-IDE  supporting C++11, C++14, and experimental C++17 features","fork":false,"url":"https://api.github.com/repos/cppit/jucipp","forks_url":"https://api.github.com/repos/cppit/jucipp/forks","keys_url":"https://api.github.com/repos/cppit/jucipp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cppit/jucipp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cppit/jucipp/teams","hooks_url":"https://api.github.com/repos/cppit/jucipp/hooks","issue_events_url":"https://api.github.com/repos/cppit/jucipp/issues/events{/number}","events_url":"https://api.github.com/repos/cppit/jucipp/events","assignees_url":"https://api.github.com/repos/cppit/jucipp/assignees{/user}","branches_url":"https://api.github.com/repos/cppit/jucipp/branches{/branch}","tags_url":"https://api.github.com/repos/cppit/jucipp/tags","blobs_url":"https://api.github.com/repos/cppit/jucipp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cppit/jucipp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cppit/jucipp/git/refs{/sha}","trees_url":"https://api.github.com/repos/cppit/jucipp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cppit/jucipp/statuses/{sha}","languages_url":"https://api.github.com/repos/cppit/jucipp/languages","stargazers_url":"https://api.github.com/repos/cppit/jucipp/stargazers","contributors_url":"https://api.github.com/repos/cppit/jucipp/contributors","subscribers_url":"https://api.github.com/repos/cppit/jucipp/subscribers","subscription_url":"https://api.github.com/repos/cppit/jucipp/subscription","commits_url":"https://api.github.com/repos/cppit/jucipp/commits{/sha}","git_commits_url":"https://api.github.com/repos/cppit/jucipp/git/commits{/sha}","comments_url":"https://api.github.com/repos/cppit/jucipp/comments{/number}","issue_comment_url":"https://api.github.com/repos/cppit/jucipp/issues/comments{/number}","contents_url":"https://api.github.com/repos/cppit/jucipp/contents/{+path}","compare_url":"https://api.github.com/repos/cppit/jucipp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cppit/jucipp/merges","archive_url":"https://api.github.com/repos/cppit/jucipp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cppit/jucipp/downloads","issues_url":"https://api.github.com/repos/cppit/jucipp/issues{/number}","pulls_url":"https://api.github.com/repos/cppit/jucipp/pulls{/number}","milestones_url":"https://api.github.com/repos/cppit/jucipp/milestones{/number}","notifications_url":"https://api.github.com/repos/cppit/jucipp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cppit/jucipp/labels{/name}","releases_url":"https://api.github.com/repos/cppit/jucipp/releases{/id}","deployments_url":"https://api.github.com/repos/cppit/jucipp/deployments","created_at":"2015-04-29T12:18:28Z","updated_at":"2016-03-20T17:31:04Z","pushed_at":"2016-03-21T09:03:01Z","git_url":"git://github.com/cppit/jucipp.git","ssh_url":"git@github.com:cppit/jucipp.git","clone_url":"https://github.com/cppit/jucipp.git","svn_url":"https://github.com/cppit/jucipp","homepage":"","size":2064,"stargazers_count":165,"watchers_count":165,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":8,"forks":27,"open_issues":8,"watchers":165,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cppit/jucipp/pulls/168"},"html":{"href":"https://github.com/cppit/jucipp/pull/168"},"issue":{"href":"https://api.github.com/repos/cppit/jucipp/issues/168"},"comments":{"href":"https://api.github.com/repos/cppit/jucipp/issues/168/comments"},"review_comments":{"href":"https://api.github.com/repos/cppit/jucipp/pulls/168/comments"},"review_comment":{"href":"https://api.github.com/repos/cppit/jucipp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cppit/jucipp/pulls/168/commits"},"statuses":{"href":"https://api.github.com/repos/cppit/jucipp/statuses/117857f937c221e931e6bdbe42e10781426e8ba1"}}}}