{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/3716","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/3716/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/3716/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/3716/events","html_url":"https://github.com/jekyll/jekyll/issues/3716","id":78322123,"number":3716,"title":"Incremental regeneration prevents rebuilding if a file is deleted... ever.","user":{"login":"envygeeks","id":99763,"avatar_url":"https://avatars.githubusercontent.com/u/99763?v=3","gravatar_id":"","url":"https://api.github.com/users/envygeeks","html_url":"https://github.com/envygeeks","followers_url":"https://api.github.com/users/envygeeks/followers","following_url":"https://api.github.com/users/envygeeks/following{/other_user}","gists_url":"https://api.github.com/users/envygeeks/gists{/gist_id}","starred_url":"https://api.github.com/users/envygeeks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envygeeks/subscriptions","organizations_url":"https://api.github.com/users/envygeeks/orgs","repos_url":"https://api.github.com/users/envygeeks/repos","events_url":"https://api.github.com/users/envygeeks/events{/privacy}","received_events_url":"https://api.github.com/users/envygeeks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-20T01:30:52Z","updated_at":"2015-05-20T05:01:04Z","closed_at":null,"body":"If a file is deleted (either before, after or even during Jekyll) then incremental regeneration falls down trying to read a file that doesn't exist, it does not even try to correct this behavior, it just prevents Jekyll from loading at all.\r\n\r\n```shell\r\ndocker run -p 127.0.0.1:4000:4000 --volume $(pwd):/srv/jekyll --name jekyll --rm -it jekyll/jekyll:beta jekyll serve --watch --trace\r\nConfiguration file: /srv/jekyll/_config.yml\r\n            Source: /srv/jekyll\r\n       Destination: /srv/jekyll/_site\r\n Incremental build: enabled\r\n      Generating... \r\n/usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/regenerator.rb:105:in `mtime': No such file or directory @ rb_file_s_mtime - /srv/jekyll/_layouts/post.html (Errno::ENOENT)\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/regenerator.rb:105:in `modified?'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/regenerator.rb:101:in `block in modified?'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/regenerator.rb:100:in `each'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/regenerator.rb:100:in `modified?'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/regenerator.rb:79:in `source_modified_or_dest_missing?'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/regenerator.rb:22:in `regenerate?'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/site.rb:189:in `block in write'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/site.rb:326:in `block (2 levels) in each_site_file'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/site.rb:325:in `each'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/site.rb:325:in `block in each_site_file'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/site.rb:324:in `each'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/site.rb:324:in `each_site_file'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/site.rb:188:in `write'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/site.rb:59:in `process'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/command.rb:28:in `process_site'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/commands/build.rb:60:in `build'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/commands/build.rb:35:in `process'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/lib/jekyll/commands/serve.rb:26:in `block (2 levels) in init_with_program'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'\r\n\tfrom /usr/lib/ruby/gems/2.2.0/gems/jekyll-3.0.0.pre.beta5/bin/jekyll:17:in `<top (required)>'\r\n\tfrom /usr/local/bin/jekyll:23:in `load'\r\n\tfrom /usr/local/bin/jekyll:23:in `<main>'\r\n```\r\n\r\n/cc @alfredxing "},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/comments/103757351","html_url":"https://github.com/jekyll/jekyll/issues/3716#issuecomment-103757351","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/3716","id":103757351,"user":{"login":"alfredxing","id":2704010,"avatar_url":"https://avatars.githubusercontent.com/u/2704010?v=3","gravatar_id":"","url":"https://api.github.com/users/alfredxing","html_url":"https://github.com/alfredxing","followers_url":"https://api.github.com/users/alfredxing/followers","following_url":"https://api.github.com/users/alfredxing/following{/other_user}","gists_url":"https://api.github.com/users/alfredxing/gists{/gist_id}","starred_url":"https://api.github.com/users/alfredxing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfredxing/subscriptions","organizations_url":"https://api.github.com/users/alfredxing/orgs","repos_url":"https://api.github.com/users/alfredxing/repos","events_url":"https://api.github.com/users/alfredxing/events{/privacy}","received_events_url":"https://api.github.com/users/alfredxing/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T05:01:04Z","updated_at":"2015-05-20T05:01:04Z","body":"Definitely a bug. Should be a simple fix though&mdash;just add a check to see if the file is deleted?"}}