CodeKit-1-Old icon indicating copy to clipboard operation
CodeKit-1-Old copied to clipboard

Massive amounts of CSS injections

Open joshmatz opened this issue 11 years ago • 11 comments

Every now and then this sort of thing happens. I haven't been able to pin-point any specific causes and I'm not receiving any warnings from Codekit.

Edit: It seems to be doing this when Codekit says it's compiled the new CSS but I don't see a change in Chrome. I'll click the refresh button in Chrome and the styles will be there once. But on the next build, I'll see multiple matched rules. It seems to be adding (2x - 1) for each rule each time I save a file.

Screen Shot 2013-04-29 at 1 30 11 PM

joshmatz avatar Apr 29 '13 18:04 joshmatz

Are you running any browser extensions in Chrome?

bdkjones avatar Apr 30 '13 06:04 bdkjones

Yes, quite a few.

Some essential: AngularJS Batarang Adobe Edge Inspect Edit this cookie JSON View LastPass PageSpeed Postman Adblock Plus Web Developer YSlow Clear Cache Speed Tracer

But also: Feedly Add to Amazon Wish List Reddit Enhancement Suite TinEye TabCloud Wappalyzer

I'll try to work today with them all disabled today and see if the problem persists.

Do you know if any of these are known to cause issues?

joshmatz avatar Apr 30 '13 14:04 joshmatz

Holy god. Yea; this is definitely the issue. I know for a fact that Edge Inspect is known to cause problems. Basically, any plugin that is going to manipulate the DOM will be an issue because they extensions don't know how to handle the dynamic changes that CodeKit injects, so they often go crazy.

bdkjones avatar Apr 30 '13 23:04 bdkjones

Hmm... I don't use them all the time but I'll be re-enabling them as I go and seeing if I can correlate to a specific extension. I wasn't using Edge Inspect and it'll probably be a while before I have to enable it again. So far no issues today :)

I just don't want to have to worry about enabling/disabling extensions when I stop/start working, ya know? Maybe I'll just have to switch my primary browser over to Firefox (or maybe personal browsing on Canary or something). I'm sure I can get by without Chrome but don't think I could live without CodeKit anymore :)

joshmatz avatar Apr 30 '13 23:04 joshmatz

And of course, right when I say it's working just fine it stops working just fine.

The only extensions I have enabled are LastPass and Edit This Cookie. I will disable both and continue working.

screen shot 2013-04-30 at 6 51 19 pm

joshmatz avatar Apr 30 '13 23:04 joshmatz

Update: This occurred again.

Extensions enabled in Chrome: LastPass, PageSpeed, Edit This Cookie, Feedly Extensions I've interacted with since booting up Chrome: LastPass.

OSX 10.7.5, Chrome 26.0.1410.65, CodeKit 1.6.1

joshmatz avatar May 08 '13 15:05 joshmatz

Having the same issue with using Less, Chrome 28 (also Canary) and extensions addblock plus, pocket, vanilla cookie manager, reddit enhancement suite and zenmate.io

will try to deactivate them one after another...

0xsven avatar Jul 16 '13 09:07 0xsven

UPDATE:

Deactivated all of my plugins... still massive injections. :-( Chrome gets slower and slower and crashes eventually... pls help

0xsven avatar Jul 16 '13 15:07 0xsven

Hi Sven, please send me the project so I can take a look. Be sure to tell me which files you're seeing the issue with.

Sent from my iPhone

On Jul 16, 2013, at 8:44, Sven Schmidt [email protected] wrote:

UPDATE:

Deactivated all of my plugins... still massive injections. :-( Chrome gets slower and slower and crashes eventually... pls help

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

bdkjones avatar Jul 16 '13 16:07 bdkjones

I figured it out! I had a main project set up in codekit and then I set up sub-project which was a subfolder of the main project in order to only see the files that belong to the subproject. After disabling the subproject in codekit it works fine again :-)

0xsven avatar Jul 18 '13 12:07 0xsven

Interesting. That should not be possible. CodeKit has a bunch of protections built in that will not allow you add a subfolder of an existing project as a separate project. If you've managed to do that, please show me the folder structures involved so I can see what went wrong.

bdkjones avatar Jul 19 '13 08:07 bdkjones