We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
after #94 I got an error during the deploy.
@hpatoio please have a look to this bug: I had problem during app/console assetic:dump --env=prod
app/console assetic:dump --env=prod
seems that YUI compressor doesn't like the js
4:56 liuggio/Projects/badge-poser (cs_fixes) $app/console assetic:dump --env=prod Dumping all prod assets. Debug mode is off. 15:36:05 [dir+] /home/liuggio/Projects/badge-poser/app/../web/css 15:36:05 [file+] /home/liuggio/Projects/badge-poser/app/../web/css/7dd5d02.css 15:36:07 [dir+] /home/liuggio/Projects/badge-poser/app/../web/js 15:36:07 [file+] /home/liuggio/Projects/badge-poser/app/../web/js/7866465.js [Assetic\Exception\FilterException] An error occurred while running: '/usr/bin/java' '-jar' '/home/liuggio/Projects/badge-poser/app/Resources/java/yuicompressor-2.4.6.jar' '--charset' 'UTF-8' '-o' '/tmp/YUI-OUT-TkJMiu' '--type' 'js' '/tmp/YUI-IN-CyKqNw' Error Output: [ERROR] 24:41:missing formal parameter [ERROR] 24:41:missing } after function body [ERROR] 25:38:identifier is a reserved word [ERROR] 26:15:invalid return [ERROR] 27:5:syntax error [ERROR] 29:44:identifier is a reserved word [ERROR] 30:23:identifier is a reserved word [ERROR] 31:5:syntax error [ERROR] 90:1:syntax error [ERROR] 1:0:Compilation produced 9 syntax errors. org.mozilla.javascript.EvaluatorException: Compilation produced 9 syntax errors. at com.yahoo.platform.yui.compressor.YUICompressor$1.runtimeError(YUICompressor.java:154) at org.mozilla.javascript.Parser.parse(Parser.java:392) at org.mozilla.javascript.Parser.parse(Parser.java:337) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:312) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:533) at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:131) 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:606) at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:21) Input: $(document).ready(function(){ $("#repository").select2({ placeholder: "vendor/repository", minimumInputLength: 3, ajax: { url: "./search_packagist", dataType: 'json', data: function (term, page) { return { name: term }; }, results: function (data, page) { return {results: data}; } }, formatResult: packageFormatResult, formatSelection: packageFormatSelection, dropdownCssClass: "bigdrop", escapeMarkup: function (m) { return m; } }); function packageFormatResult(package) { var markup = "<dt>" + package.id + "</dt><dd>" + package.description + "</dd>"; return markup; } function packageFormatSelection(package) { return package.id; } var lock = function(){ $('#spinningSquaresG').show(); $('.prettyprint').each(function(idx, el){ $(el).addClass('grey-text'); }); $('.spinned').each(function(idx, el){ $(el).fadeOut(); }); }; var unlock = function(){ $('#spinningSquaresG').hide(); setTimeout(function(){ $('.prettyprint').each(function(idx, el){ $(el).removeClass('grey-text'); }); $('.spinned').each(function(idx, el){ $(el).fadeIn(1500); }); },200); }; var generateSnippets = function(snippets_raw_data){ $.each(snippets_raw_data, function(idx, snippet){ $('#' + idx + '_markdown').html(snippet.markdown); $('#' + idx + '_img').attr('src', snippet.img); }); }; $('#generate').click(function(){ lock(); $.ajax({ url: $('#generate-form').attr('action'), data: $('#generate-form').serialize(), success: function(data){ generateSnippets(data); unlock(); }, statusCode: { 404: function() { alert("Repository not found!"); unlock(); }, 500: function() { alert("Repository not found!"); unlock(); } } }); return false; }); });
The text was updated successfully, but these errors were encountered:
@hpatoio said: package is a reserved word. https://github.com/hpatoio/badge-poser/blob/master/src/PUGX/BadgeBundle/Resources/public/js/snippet.js line 25 and below change package with packageData
Sorry, something went wrong.
Merge pull request #103 from hpatoio/master
7c51705
Fix bug #102
closed by #103
No branches or pull requests
after #94 I got an error during the deploy.
@hpatoio please have a look to this bug:
I had problem during
app/console assetic:dump --env=prod
seems that YUI compressor doesn't like the js
The text was updated successfully, but these errors were encountered: