bdkjones / CodeKit-1-Old

146 stars 1 forks source link

Codekit w/ Jekyll & Ruby: Continuous file regeneration and browser refresh #647

Open DanielPollitt opened 11 years ago

DanielPollitt commented 11 years ago

This combination was working fine up until a few days ago.

Now, whenever I save a file--css or html--there is an infinite regeneration/refresh loop.

Thanks, Dan

Here is the output I get from running autogeneration w/ jekyll:

Daniels-MacBook-Pro:myblog Dan$ jekyll serve --watch Configuration file: /Users/Dan/myblog/_config.yml Source: /Users/Dan/myblog Destination: /Users/Dan/myblog/_site Generating... done. Auto-regeneration: enabled [2013-07-20 17:57:57] INFO WEBrick 1.3.1 [2013-07-20 17:57:57] INFO ruby 1.9.3 (2012-04-20) [x86_64-darwin11.4.0] [2013-07-20 17:57:57] INFO WEBrick::HTTPServer#start: pid=62810 port=4000 Regenerating: 1 files at 2013-07-20 17:57:58 ...done. Regenerating: 1 files at 2013-07-20 17:57:59 ...done. Regenerating: 1 files at 2013-07-20 17:58:00 ...done. Regenerating: 1 files at 2013-07-20 17:58:01 ...done. Regenerating: 1 files at 2013-07-20 17:58:18 ...done. localhost - - [20/Jul/2013:17:58:19 EDT] "GET /?codekitCB=396050299.057089 HTTP/1.1" 200 1517 http://localhost:4000/?codekitCB=396035566.595906 -> /?codekitCB=396050299.057089 localhost - - [20/Jul/2013:17:58:19 EDT] "GET /?codekitCB=396050299.057089 HTTP/1.1" 304 0 http://localhost:4000/?codekitCB=396035566.595906 -> /?codekitCB=396050299.057089 [2013-07-20 17:58:19] ERROR `/favicon.ico' not found. localhost - - [20/Jul/2013:17:58:19 EDT] "GET /favicon.ico HTTP/1.1" 404 281

bdkjones commented 11 years ago

Hi Dan,

Try disabling the cache buster option in CodeKit's preferences, quit both the app and browser, restart them, and see if that changes anything.

-Bryan

On 2013 Jul 21, at 11:12 , Dan notifications@github.com wrote:

This combination was working fine up until a few days ago.

Now, whenever I save a file--css or html--there is an infinite regeneration/refresh loop.

Thanks, Dan

Here is the output I get from running autogeneration w/ jekyll:

Daniels-MacBook-Pro:myblog Dan$ jekyll serve --watch Configuration file: /Users/Dan/myblog/_config.yml Source: /Users/Dan/myblog Destination: /Users/Dan/myblog/_site Generating... done. Auto-regeneration: enabled [2013-07-20 17:57:57] INFO WEBrick 1.3.1 [2013-07-20 17:57:57] INFO ruby 1.9.3 (2012-04-20) [x86_64-darwin11.4.0] [2013-07-20 17:57:57] INFO WEBrick::HTTPServer#start: pid=62810 port=4000 Regenerating: 1 files at 2013-07-20 17:57:58 ...done. Regenerating: 1 files at 2013-07-20 17:57:59 ...done. Regenerating: 1 files at 2013-07-20 17:58:00 ...done. Regenerating: 1 files at 2013-07-20 17:58:01 ...done. Regenerating: 1 files at 2013-07-20 17:58:18 ...done. localhost - - [20/Jul/2013:17:58:19 EDT] "GET /?codekitCB=396050299.057089 HTTP/1.1" 200 1517 http://localhost:4000/?codekitCB=396035566.595906 -> /?codekitCB=396050299.057089 localhost - - [20/Jul/2013:17:58:19 EDT] "GET /?codekitCB=396050299.057089 HTTP/1.1" 304 0 http://localhost:4000/?codekitCB=396035566.595906 -> /?codekitCB=396050299.057089 [2013-07-20 17:58:19] ERROR `/favicon.ico' not found. localhost - - [20/Jul/2013:17:58:19 EDT] "GET /favicon.ico HTTP/1.1" 404 281

-> /favicon.ico [2013-07-20 17:58:19] ERROR /css/syntax.css' not found. localhost - - [20/Jul/2013:17:58:19 EDT] "GET /css/syntax.css HTTP/1.1" 404 284 http://localhost:4000/?codekitCB=396050299.057089 -> /css/syntax.css localhost - - [20/Jul/2013:17:58:19 EDT] "GET /css/main.css HTTP/1.1" 200 6785 http://localhost:4000/?codekitCB=396050299.057089 -> /css/main.css Regenerating: 1 files at 2013-07-20 17:58:19 ...done. [2013-07-20 17:58:20] ERROR/favicon.ico' not found. localhost - - [20/Jul/2013:17:58:20 EDT] "GET /favicon.ico HTTP/1.1" 404 281 -> /favicon.ico Regenerating: 1 files at 2013-07-20 17:58:20 ...done. Regenerating: 1 files at 2013-07-20 17:58:21 ...done. localhost - - [20/Jul/2013:17:58:21 EDT] "GET /?codekitCB=396050301.995267 HTTP/1.1" 200 1517 http://localhost:4000/?codekitCB=396050299.057089 -> /?codekitCB=396050301.995267 localhost - - [20/Jul/2013:17:58:22 EDT] "GET /?codekitCB=396050299.057089 HTTP/1.1" 200 1517 http://localhost:4000/?codekitCB=396035566.595906 -> /?codekitCB=396050299.057089 [2013-07-20 17:58:22] ERROR /css/syntax.css' not found. localhost - - [20/Jul/2013:17:58:22 EDT] "GET /css/syntax.css HTTP/1.1" 404 284 http://localhost:4000/?codekitCB=396050299.057089 -> /css/syntax.css localhost - - [20/Jul/2013:17:58:22 EDT] "GET /css/main.css HTTP/1.1" 200 6785 http://localhost:4000/?codekitCB=396050299.057089 -> /css/main.css [2013-07-20 17:58:22] ERROR/favicon.ico' not found. localhost - - [20/Jul/2013:17:58:22 EDT] "GET /favicon.ico HTTP/1.1" 404 281 -> /favicon.ico Regenerating: 1 files at 2013-07-20 17:58:22 ...done. Regenerating: 1 files at 2013-07-20 17:58:23 ...done. Regenerating: 1 files at 2013-07-20 17:58:24 ...done. localhost - - [20/Jul/2013:17:58:25 EDT] "GET /?codekitCB=396050305.002180 HTTP/1.1" 200 1517 http://localhost:4000/?codekitCB=396050299.057089 -> /?codekitCB=396050305.002180 localhost - - [20/Jul/2013:17:58:25 EDT] "GET /?codekitCB=396050299.057089 HTTP/1.1" 200 1517 http://localhost:4000/?codekitCB=396035566.595906 -> /?codekitCB=396050299.057089 [2013-07-20 17:58:25] ERROR /css/syntax.css' not found. localhost - - [20/Jul/2013:17:58:25 EDT] "GET /css/syntax.css HTTP/1.1" 404 284 http://localhost:4000/?codekitCB=396050299.057089 -> /css/syntax.css localhost - - [20/Jul/2013:17:58:25 EDT] "GET /css/main.css HTTP/1.1" 304 0 http://localhost:4000/?codekitCB=396050299.057089 -> /css/main.css [2013-07-20 17:58:25] ERROR/favicon.ico' not found. localhost - - [20/Jul/2013:17:58:25 EDT] "GET /favicon.ico HTTP/1.1" 404 281 -> /favicon.ico Regenerating: 1 files at 2013-07-20 17:58:25 ...done. Regenerating: 1 files at 2013-07-20 17:58:26 ...done. Regenerating: 1 files at 2013-07-20 17:58:27 ...done. localhost - - [20/Jul/2013:17:58:28 EDT] "GET /?codekitCB=396050308.005155 HTTP/1.1" 200 1517 http://localhost:4000/?codekitCB=396050299.057089 -> /?codekitCB=396050308.005155 [2013-07-20 17:58:28] ERROR /css/syntax.css' not found. localhost - - [20/Jul/2013:17:58:28 EDT] "GET /css/syntax.css HTTP/1.1" 404 284 http://localhost:4000/?codekitCB=396050308.005155 -> /css/syntax.css localhost - - [20/Jul/2013:17:58:28 EDT] "GET /css/main.css HTTP/1.1" 304 0 http://localhost:4000/?codekitCB=396050299.057089 -> /css/main.css localhost - - [20/Jul/2013:17:58:28 EDT] "GET /?codekitCB=396050308.005155 HTTP/1.1" 304 0 http://localhost:4000/?codekitCB=396050299.057089 -> /?codekitCB=396050308.005155 [2013-07-20 17:58:28] ERROR/favicon.ico' not found. localhost - - [20/Jul/2013:17:58:28 EDT] "GET /favicon.ico HTTP/1.1" 404 281 -> /favicon.ico [2013-07-20 17:58:28] ERROR /css/syntax.css' not found. localhost - - [20/Jul/2013:17:58:28 EDT] "GET /css/syntax.css HTTP/1.1" 404 284 http://localhost:4000/?codekitCB=396050308.005155 -> /css/syntax.css Regenerating: 1 files at 2013-07-20 17:58:28 [2013-07-20 17:58:28] ERROR/favicon.ico' not found. localhost - - [20/Jul/2013:17:58:28 EDT] "GET /favicon.ico HTTP/1.1" 404 281 -> /favicon.ico ...done. Regenerating: 1 files at 2013-07-20 17:58:29 ...done. — Reply to this email directly or view it on GitHub.

DanielPollitt commented 11 years ago

I dug around on the codekit issues page and found a similar problem.

A user had an infinite refresh loop and deleted a codekit jsonfile.

I did that and viola, it now is off infinite loop!

I'll let you know if this restarts again.

Thanks, Dan