spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
813 stars 256 forks source link

Error in V 4.5.6 with YUI compressor compilation #219

Open ketandoshi opened 7 years ago

ketandoshi commented 7 years ago

We are using Jenkins for deployment purpose. We started to get below error while running the assets:precompile task in tinymce as its version was updated to 4.5.6 and we haven't specified the version so it picked latest version (4.5.6).

Error we got: I, [2017-04-02T08:11:24.310261 #11437] INFO -- : Writing http://54.221.202.168:8080/job/Fabweb-staging-build/ws/fab-web-trunk/public/assets-stag/css-js/us/tinymce/plugins/insertdatetime/plugin-dec1bc3f7865386c1c3009e5546b435e.js [ERROR] in /tmp/yui_compress20170402-11437-hztjp2 1:1183:invalid property id [ERROR] in /tmp/yui_compress20170402-11437-hztjp2 1:0:Compilation produced 1 syntax errors. org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax errors. at com.yahoo.platform.yui.compressor.YUICompressor$1.runtimeError(YUICompressor.java:172) at org.mozilla.javascript.Parser.parse(Parser.java:396) at org.mozilla.javascript.Parser.parse(Parser.java:340) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:315) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.(JavaScriptCompressor.java:536) at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:147) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:21) rake aborted!

So we have tried to fix its version to 4.5.5 and re run the assets:precompile task and it worked successfully.

Is there anything known to cause this error?