Currently, C++ trailing-return-type is considered as an illegale synthax by highlight-js
See the issue here (highlight.js/issues/3673).
In such case, a fallback detection strategy is then used, but is not likely to be appropriate
Relevant JS console error:
[object ace.API.HTMLElements.CodeSection/ace-cs(id=cs_5)].set(url): network error:
[object ace.details.utility].fetch_resource: bad request status 404 on url [/DOES_NOT_EXISTS]
Relevant error status:
JS: ace_cs_element.ace_panels.execution.getAttribute('status') === 'failure-compilation'
CSS: ace-cs > ace-cs-code-mvc[id$='.panels.execution'][status|='failure']
Relevant error status:
JS: ace_cs_element.ace_panels.panels.right.getAttribute('status') === 'error-compilation'
CSS: ace-cs > [id$='.panels.right'][status='error']
Alternatively, setting the style value style="flex-direction: column" also works
There is currently an issue with escaped sequences of characters (help welcome)
- godbolt API /clientstate call works well
- but not api/compiler/.../compile
Such error is quite hard to illustrate with an example.
Mostly likely scenari are either a critical network while calling the Compiler-Explorer API,
or some input code used in conjunction with toggle_parsing="true", which breaks the meta-data parser