-
Notifications
You must be signed in to change notification settings - Fork 94
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
Silence ply errors #97
Comments
This can be worked around by removing those Really though, this package doesn't look maintained anymore so I ended up forking this, took the good bits as a base for my own. |
I get the same verbose dreck spewed out to stderr. This exceedingly ugly one-liner anywhere after
This works for me in Python 3.6 with All this does is monkey-patches the |
@rod-app The problem actually goes deeper than that - if those messages are generated every time The fork that I made (calmjs.parse) does not track the tab files for the source repository, but they are package/generated for every supported (and released) ply versions, such that they are not needlessly being regenerated for the end-users, and in the case a newer version of ply is out there is a specific command ( Also please note that slimit has not received a new release for nearly 6 years now, so I made that fork as an attempt to rectify the situation (the slimit |
Thanks for the response, Tommy. I integrated `calmjs` into my app,
substituting for `slimit`, and everything works fine. You were right --
`slimit' had been shockingly (unacceptably) slow on account of needing to
regenerate the tab files each request. I haven't benchmarked anything,
but `calmjs` is noticeably faster.
There are a number of out-and-out wrong Python JS minifiers out there;
yours is a keeper. Excellent work!
-----
Rod Pullmann Appion, Inc.
(303) 589-4405
…On Sat, Feb 16, 2019 at 5:27 PM Tommy Yu ***@***.***> wrote:
@rod-app <https://github.com/rod-app> The problem actually goes deeper
than that - if those messages are generated *every* time minify is
called, it means that the ply tab modules are being regenerated (which
takes as long as a second), and if there are a number of JavaScript files
being processed that extra delay and thus performance hit to the program
will accumulate rather quickly. Removing the message simply hides the
problem but not actually fixing it - the only way to fix it is to manually
remove the problematic tab files and regenerate them correct as I had
suggested.
The fork that I made (calmjs.parse
<https://github.com/calmjs/calmjs.parse>) does not track the tab files
for the source repository, but they are package/generated for every
supported (and released) ply versions, such that they are not needlessly
being regenerated for the end-users, and in the case a newer version of ply
is out there is a specific command (python -m
calmjs.parse.parsers.optimize) with the reasoning behind it explained in
the README for the package.
Also please note that slimit has not received a new release for nearly 6
years now, so I made that fork as an attempt to rectify the situation (the
slimit minify equivalent is available via from calmjs.parse import es5
and then call es5.minify_print).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#97 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AlQiEx4neYv6BZxKj4OPQl0ah7ERsrmVks5vOKHdgaJpZM4RghW4>
.
--
************************
*This message may contain privileged
or confidential information for the sole use of the intended recipient.
Any review or distribution by others is strictly prohibited. If you are
not the intended recipient of this message, you may not make use of, or
rely in any way on this information. You should immediately notify the
sender by reply email and destroy this message. Please advise us
immediately if you or your employer do not consent to Internet email for
messages of this kind.*
************************
|
Running slimit on cygwin produces several warnings each time it is run
Using ply v 3.10. Only fix for me appears to be to revert to ply 3.4
The text was updated successfully, but these errors were encountered: