-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WebProfilerBundle] Fix dump header not being displayed #48048
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
Conversation
6668bd3
to
2f2d6d3
Compare
2f2d6d3
to
21f3389
Compare
I have tested this and it fixes the JS issue reported perfectly. Thanks. However, probably unrelated, there is another bug I see - watch: Screen.Recording.2022-10-30.at.11.49.09.mov |
@PhilETaylor Hi, thanks for the feedback. Unfortunately I'm unable to view your video on my computer (probably cause I'm on linux), is there any chance you could describe the issue or send some screenshots or gifs or something? |
Sorry, here it is at Youtube so you should be able to view that right https://youtu.be/h5ztf03Zhjw ? The bug is at 7 seconds in when clicking the |
@PhilETaylor This looks like a javascript issue. I think it was introduced in #33486, but I'd have to look into it a little deeper. In any case, it's not related to this issue. |
Oops, can you please have a look at failures on deps=low? |
7094692
to
68dc72d
Compare
@nicolas-grekas Sorry about that, must've missed that one, should be good now 68dc72d . I've also rebased the branch since it was originally intended for 4.4. |
68dc72d
to
81a4e9d
Compare
Thank you @HypeMC. |
The bug occurs because of the following log message:
Since this is the first message and it contains the
{
character the dump header gets rendered (line 93):symfony/src/Symfony/Bundle/WebProfilerBundle/Twig/WebProfilerExtension.php
Lines 88 to 104 in f9eaefa
However, since there is no actual placeholder to replace, the header is never displayed, but is marked as displayed and never rendered again:
symfony/src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php
Lines 149 to 152 in f9eaefa
symfony/src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php
Lines 944 to 952 in f9eaefa
With this PR, the
WebProfilerExtension::dumpLog()
method will check the message for exact placeholders.