You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before i create a pull request i want others to confirm #on that issues.
I think it happens only with newer versions of console component.
When you are dumping you api docs like this bin/console api:doc:dump --env=dev --format=html > web/content-api.html
and open the generated html, the javascript is broken and gives you errors like this: content-api.html:646 Uncaught SyntaxError: Unexpected token ILLEGAL content-api.html:4023 Uncaught ReferenceError: $ is not defined
I checked the file located under Resources/public/js/all.js and compared it with the generated file and figured out, that all << were ripped out.
Here an example from online compare editor:
Base file: X[V << 1] = Z++;
Generated file: X[V\1] = Z++;
I went through the Formatter and everything was fine, but i recognized that the console->writeln is causing that issue.
I think console component has update some of their formatters.
A fix for that is to make the output raw.
Current: $output->writeln($formattedDoc);
Before i create a pull request i want others to confirm #on that issues.
I think it happens only with newer versions of console component.
When you are dumping you api docs like this
bin/console api:doc:dump --env=dev --format=html > web/content-api.html
and open the generated html, the javascript is broken and gives you errors like this:
content-api.html:646 Uncaught SyntaxError: Unexpected token ILLEGAL content-api.html:4023 Uncaught ReferenceError: $ is not defined
I checked the file located under Resources/public/js/all.js and compared it with the generated file and figured out, that all << were ripped out.
Here an example from online compare editor:
Base file:
X[V << 1] = Z++;
Generated file:
X[V\1] = Z++;
I went through the Formatter and everything was fine, but i recognized that the console->writeln is causing that issue.
I think console component has update some of their formatters.
A fix for that is to make the output raw.
Current:
$output->writeln($formattedDoc);
Fixed:
$output->writeln($formattedDoc, OutputInterface::OUTPUT_RAW);
The text was updated successfully, but these errors were encountered: