bdkjones / CodeKit-1-Old

146 stars 1 forks source link

Taking forever to compile and reload browser #662

Open aaronbalthaser opened 11 years ago

aaronbalthaser commented 11 years ago

This started happening a couple weeks ago. Codekit is taking about 30 seconds to finish after I save the file. Im compiling SASS. I have to wait each time to see my changes. Ive restarted code kit while holding down shift and created my project over and also uninstalled Codekit and reinstalled.

bdkjones commented 11 years ago

Quit the app. Then, relaunch it while holding down shift. This will reset everything.

Sent from my iPhone

On Aug 22, 2013, at 15:11, aaronbalthaser notifications@github.com wrote:

This started happening a couple weeks ago. Codekit is taking about 30 seconds to finish after I save the file. Im compiling SASS. I have to wait each time to see my changes.

— Reply to this email directly or view it on GitHub.

aaronbalthaser commented 11 years ago

I did that already, made no difference

On Thursday, August 22, 2013, bdkjones wrote:

Quit the app. Then, relaunch it while holding down shift. This will reset everything.

Sent from my iPhone

On Aug 22, 2013, at 15:11, aaronbalthaser <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>> wrote:

This started happening a couple weeks ago. Codekit is taking about 30 seconds to finish after I save the file. Im compiling SASS. I have to wait each time to see my changes.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/bdkjones/CodeKit/issues/662#issuecomment-23136985 .

bdkjones commented 11 years ago

Does this project use Compass sprites?

On 2013 Aug 22, at 18:21 , aaronbalthaser notifications@github.com wrote:

I did that already, made no difference

On Thursday, August 22, 2013, bdkjones wrote:

Quit the app. Then, relaunch it while holding down shift. This will reset everything.

Sent from my iPhone

On Aug 22, 2013, at 15:11, aaronbalthaser <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>> wrote:

This started happening a couple weeks ago. Codekit is taking about 30 seconds to finish after I save the file. Im compiling SASS. I have to wait each time to see my changes.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/bdkjones/CodeKit/issues/662#issuecomment-23136985 .

— Reply to this email directly or view it on GitHub.

aaronbalthaser commented 11 years ago

Yes it does

On Thursday, August 22, 2013, bdkjones wrote:

Does this project use Compass sprites?

On 2013 Aug 22, at 18:21 , aaronbalthaser <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>> wrote:

I did that already, made no difference

On Thursday, August 22, 2013, bdkjones wrote:

Quit the app. Then, relaunch it while holding down shift. This will reset everything.

Sent from my iPhone

On Aug 22, 2013, at 15:11, aaronbalthaser <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');><javascript:_e({}, 'cvml', 'notifications@github.com <javascript:_e({}, 'cvml', 'notifications@github.com');>');>> wrote:

This started happening a couple weeks ago. Codekit is taking about 30 seconds to finish after I save the file. Im compiling SASS. I have to wait each time to see my changes.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub< https://github.com/bdkjones/CodeKit/issues/662#issuecomment-23136985> .

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/bdkjones/CodeKit/issues/662#issuecomment-23138521 .

bdkjones commented 11 years ago

Yep. That's a known bug in Compass.

There is an issue on the Compass GitHub page that describes why it happens and includes a fix that you can implement to stop it. Basically, you need to go into the Compass files within CodeKit's app bundle and edit one line of code that's faulty in one of Compass's source files. That will stop Compass from recompiling the sprites every time you save a file, unless the sprites have changed.

The Compass team has known about this for months but Compass hasn't been updated in... well... forever.

-Bryan

On 2013 Aug 22, at 19:32 , aaronbalthaser notifications@github.com wrote:

Yes it does

On Thursday, August 22, 2013, bdkjones wrote:

Does this project use Compass sprites?

On 2013 Aug 22, at 18:21 , aaronbalthaser <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>> wrote:

I did that already, made no difference

On Thursday, August 22, 2013, bdkjones wrote:

Quit the app. Then, relaunch it while holding down shift. This will reset everything.

Sent from my iPhone

On Aug 22, 2013, at 15:11, aaronbalthaser <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');><javascript:_e({}, 'cvml', 'notifications@github.com <javascript:_e({}, 'cvml', 'notifications@github.com');>');>> wrote:

This started happening a couple weeks ago. Codekit is taking about 30 seconds to finish after I save the file. Im compiling SASS. I have to wait each time to see my changes.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub< https://github.com/bdkjones/CodeKit/issues/662#issuecomment-23136985> .

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/bdkjones/CodeKit/issues/662#issuecomment-23138521 .

— Reply to this email directly or view it on GitHub.

aaronbalthaser commented 11 years ago

Thank you, at the sake of sounding lazy can you please forward me the link to the issue? Thanks again.

On Thu, Aug 22, 2013 at 7:34 PM, bdkjones notifications@github.com wrote:

Yep. That's a known bug in Compass.

There is an issue on the Compass GitHub page that describes why it happens and includes a fix that you can implement to stop it. Basically, you need to go into the Compass files within CodeKit's app bundle and edit one line of code that's faulty in one of Compass's source files. That will stop Compass from recompiling the sprites every time you save a file, unless the sprites have changed.

The Compass team has known about this for months but Compass hasn't been updated in... well... forever.

-Bryan

On 2013 Aug 22, at 19:32 , aaronbalthaser notifications@github.com wrote:

Yes it does

On Thursday, August 22, 2013, bdkjones wrote:

Does this project use Compass sprites?

On 2013 Aug 22, at 18:21 , aaronbalthaser <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>> wrote:

I did that already, made no difference

On Thursday, August 22, 2013, bdkjones wrote:

Quit the app. Then, relaunch it while holding down shift. This will reset everything.

Sent from my iPhone

On Aug 22, 2013, at 15:11, aaronbalthaser < notifications@github.com<javascript:_e({}, 'cvml', ' notifications@github.com');><javascript:_e({}, 'cvml', 'notifications@github.com <javascript:_e({}, 'cvml', 'notifications@github.com');>');>> wrote:

This started happening a couple weeks ago. Codekit is taking about 30 seconds to finish after I save the file. Im compiling SASS. I have to wait each time to see my changes.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub< https://github.com/bdkjones/CodeKit/issues/662#issuecomment-23136985> .

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub< https://github.com/bdkjones/CodeKit/issues/662#issuecomment-23138521> .

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/bdkjones/CodeKit/issues/662#issuecomment-23139998 .

bdkjones commented 11 years ago

Nope, but there's another issue thread on the CodeKit page (may be in the closed section) that has a link. A search should turn it up.

On 2013 Aug 22, at 19:47 , aaronbalthaser notifications@github.com wrote:

Thank you, at the sake of sounding lazy can you please forward me the link to the issue? Thanks again.

On Thu, Aug 22, 2013 at 7:34 PM, bdkjones notifications@github.com wrote:

Yep. That's a known bug in Compass.

There is an issue on the Compass GitHub page that describes why it happens and includes a fix that you can implement to stop it. Basically, you need to go into the Compass files within CodeKit's app bundle and edit one line of code that's faulty in one of Compass's source files. That will stop Compass from recompiling the sprites every time you save a file, unless the sprites have changed.

The Compass team has known about this for months but Compass hasn't been updated in... well... forever.

-Bryan

On 2013 Aug 22, at 19:32 , aaronbalthaser notifications@github.com wrote:

Yes it does

On Thursday, August 22, 2013, bdkjones wrote:

Does this project use Compass sprites?

On 2013 Aug 22, at 18:21 , aaronbalthaser <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>> wrote:

I did that already, made no difference

On Thursday, August 22, 2013, bdkjones wrote:

Quit the app. Then, relaunch it while holding down shift. This will reset everything.

Sent from my iPhone

On Aug 22, 2013, at 15:11, aaronbalthaser < notifications@github.com<javascript:_e({}, 'cvml', ' notifications@github.com');><javascript:_e({}, 'cvml', 'notifications@github.com <javascript:_e({}, 'cvml', 'notifications@github.com');>');>> wrote:

This started happening a couple weeks ago. Codekit is taking about 30 seconds to finish after I save the file. Im compiling SASS. I have to wait each time to see my changes.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub< https://github.com/bdkjones/CodeKit/issues/662#issuecomment-23136985> .

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub< https://github.com/bdkjones/CodeKit/issues/662#issuecomment-23138521> .

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/bdkjones/CodeKit/issues/662#issuecomment-23139998 .

— Reply to this email directly or view it on GitHub.

aaronbalthaser commented 11 years ago

Hello bkjjones, thanks for the direction to the link. I found the link. You were the one that posted it. Can you please help me out with understanding what Michael is saying. The link is:

michaelgilley/compass@f87c47d

I also found the line of code in codekit > compass. I guess the language may be ruby which I have no experience with. Michael says "Instead use compass compile my_file.scss --force." This doesn't even look like code that can be replace over "parser.options[:force] = true". Maybe I am misunderstanding this. Can you clarify, because I have been stuck using compass app with live reload and honestly it's a hassle and doesn't work very well. It seems like compass compile my_file.scss --force is suppose to override compass compile somewhere, but where? I want to go back to using Codekit. Thanks.

aaronbalthaser commented 11 years ago

Hello again, well it turns out that I am not using sprites in this project. While I normally use them in most projects I found I did not when I went to disable them in this project. Do you have any other suggestions that can determine this issue. Are there logs or any avenues I can pursue to help diagnose this issue?

bdkjones commented 11 years ago

Hi Aaron,

Please zip the entire project, send it to me, and tell me which file is taking a long time to compile so I can test on my end. Thanks.

On 2013 Aug 23, at 11:21 , aaronbalthaser notifications@github.com wrote:

Hello again, well it turns out that I am not using sprites in this project. While I normally use them in most projects I found I did not when I went to disable them in this project. Do you have any other suggestions that can determine this issue. Are there logs or any avenues I can pursue to help diagnose this issue?

— Reply to this email directly or view it on GitHub.

aaronbalthaser commented 11 years ago

Hello, can you please give me the email address to where I should send the zip file. I made a couple attempts to send this via reply in my gmail and your server is rejecting the email. Excuse me for that, I am fairly new to this and have not yet built up the experience dealing with these scenarios. Thank you.

bdkjones commented 11 years ago

If your project is large, you'll need to upload it to something like Dropbox and then send me a link. Your email is probably being rejected because it's too big.

On 2013 Aug 26, at 10:35 , aaronbalthaser notifications@github.com wrote:

Hello, can you please give me the email address to where I should send the zip file. I made a couple attempts to send this via reply in my gmail and your server is rejecting the email. Excuse me for that, I am fairly new to this and have not yet built up the experience dealing with these scenarios. Thank you.

— Reply to this email directly or view it on GitHub.

aaronbalthaser commented 11 years ago

Thank you for the tip. Here is the link. This is a Django project. I only included the media directory which contains the scss files. If you need more or anything else let me know please. Thank you.

https://www.dropbox.com/s/h5px5gk17ke2gak/media.zip

aaronbalthaser commented 11 years ago

Almost forgot, the issue was happening in all scss files. The _global.scss should yield the issue. Thanks.

pietvanzoen commented 11 years ago

I've been having a similar issue. For me it seems to be an issue with compiling a SVG filter in a LESS file. I've tried using LESS escaping but it still hangs. Here is the offending code that CodeKit doesn't seem to like:

filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");

CodeKit still takes about 5 seconds to compile with this line in the file, even if it's commented out. If I delete this line the compile is almost instant.

pietvanzoen commented 11 years ago

A little added info. This SVG filter in the same file doesn't seem to cause an issue:

filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale");

bdkjones commented 11 years ago

What results do you get if you attempt to compile the file directly from the command line using Less.js?

pietvanzoen commented 11 years ago

Hmmm... yes it appears to do the same thing via command line. A LESS bug I guess.

bdkjones commented 11 years ago

Yep.

On 2013 Aug 28, at 13:41 , Piet notifications@github.com wrote:

Hmmm... yes it appears to do the same thing via command line. A LESS bug I guess.

— Reply to this email directly or view it on GitHub.

aaronbalthaser commented 11 years ago

Hello bdkjones, how are you doing? I was wondering if this issue was a bug with codekit or was it something else?

bdkjones commented 11 years ago

How fast does the project compile if you use the command line instead of CodeKit? If I recall, your project loads like 18,000 fonts and has a bunch of included frameworks. All of that is going to significantly slow down the Compass compiler, which is written in Ruby and is already dog-slow.

aaronbalthaser commented 11 years ago

Thanks, I guess I should have payed more attention to the docs on your site. I was using codekit without really understanding what is was doing behind the scenes. I think at some point I added some fonts to an assets directory just for storage. Had no idea Codekit was watching that directory. I removed it and everything works fine. Is there a way to have Codekit ignore directories? Thanks again. Sorry about that also.

bdkjones commented 11 years ago

Yep, use the Skipped Items list in the preferences. Edit the list before adding your project to the app. On 2013 Sep 10, at 12:40 , aaronbalthaser notifications@github.com wrote:

Thanks, I guess I should have payed more attention to the docs on your site. I was using codekit without really understanding what is was doing behind the scenes. I think at some point I added some fonts to an assets directory just for storage. Had no idea Codekit was watching that directory. I removed it and everything works fine. Is there a way to have Codekit ignore directories? Thanks again. Sorry about that also.

— Reply to this email directly or view it on GitHub.