Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Java and YUI dependencies #189

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Remove Java and YUI dependencies #189

wants to merge 5 commits into from

Conversation

evtuhovich
Copy link

Hello.

We use uglifier to minimize JS and compass to minimize CSS, so we do not need YUI (and so java) in our project.

But if YUI breaks on CSS-minimizing, it stops minimize JS, and this is bad.

This monkey patch fix this problem

@sylvainsf
Copy link

+1, yui segfaults in our production environment and we don't need/want CSS compression.

@rapind
Copy link

rapind commented Jul 12, 2011

+1, would be nice to remove these dependencies for heroku deployments where you typically pre-compile / compress anyways (or package up to s3).

@tjschuck
Copy link

+1 -- if you're only minifying JS with uglifier, you shouldn't need YUI/Java.

@sylvainsf
Copy link

One note: The code in this pull request does not get rid of yui for CSS compression so if you're encountering the (incredibly bad) segfault bug with yui/open4 on Ubuntu this will not fix it.

@tjschuck
Copy link

@sylvainsf — That's ostensibly a bug with YUI then, not Jammit. Either way, it's a �moot point on this issue, because this is specifically related to the bug of not wanting to use YUI at all. As it stands now, if you want to do CSS compression with Jammit, you need to use YUI.

@evtuhovich
Copy link
Author

Yes, i've tried to remove YUI, but this is not very easy - a lot of YUI constants used all over the code. We have no java on production, only YUI gem, which doesn't work, but installed. This is not very clear solution, but "good enought". And this patch do not break or change existing functionality, it just give jammit possibility to work, when there is no java on the system.

@evtuhovich evtuhovich closed this Jul 22, 2011
@evtuhovich evtuhovich reopened this Jul 22, 2011
@tjschuck
Copy link

@evtuhovich — Installing the yui-compressor gem did not fix this issue for me. Still fails with "Jammit Warning: Asset compression disabled -- Java unavailable."

@tjschuck
Copy link

@evtuhovich — Ah, I think I misread the end of your comment. You're saying installing the YUI gem and applying your patch fixes this, correct? I thought you meant just the non-working gem would be good enough to trick it into working.

@evtuhovich
Copy link
Author

Yes, it write this to console but continue to work for me. And if you use
YUI for javascript too (with use Uglifier), this may be a root of problem, i
do not test it in such scenario.

On Fri, Jul 22, 2011 at 18:21, tjschuck <
reply@reply.github.com>wrote:

@evtuhovich — Installing the yui-compressor gem did not fix
this issue for me. Still fails with "Jammit Warning: Asset compression
disabled -- Java unavailable."

Reply to this email directly or view it on GitHub:
#189 (comment)

@evtuhovich
Copy link
Author

Yes, we use jammit with our patch on production. And i meant this is difficult to fully remove YUI gem dependencies from Jammit, so it installed in system, but not used at all.

Yes, with this patch Jammit starts to work in one additional case - our case. And this patch do not break any existing functionality.

@evtuhovich evtuhovich closed this Jul 22, 2011
@evtuhovich evtuhovich reopened this Jul 22, 2011
@evtuhovich
Copy link
Author

Sorry, i always think "Comment and Close" meant "Comment and Close Window" :-)

@tcoulter
Copy link

tcoulter commented Jul 9, 2012

Hey guys, any chance we can get this merged? Running into segfaults with YUI and would love to use the latest jammit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants