Skip to content
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

[11.x] Improves errors #51261

Merged
merged 91 commits into from
May 27, 2024
Merged

[11.x] Improves errors #51261

merged 91 commits into from
May 27, 2024

Conversation

nunomaduro
Copy link
Member

No description provided.

@nunomaduro nunomaduro requested a review from taylorotwell May 1, 2024 21:12
@nunomaduro nunomaduro changed the title [11.x] Improves error rendering [11.x] Improves errors May 1, 2024
@nunomaduro nunomaduro marked this pull request as draft May 1, 2024 21:22
@nunomaduro nunomaduro marked this pull request as ready for review May 6, 2024 18:05
$events->listen(QueryExecuted::class, [$this, 'onQueryExecuted']);

if (isset($_SERVER['LARAVEL_OCTANE'])) {
$events->listen([RequestReceived::class, TaskReceived::class, TickReceived::class, RequestTerminated::class], function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nunomaduro does this need to also reset on any job events?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@taylorotwell
Copy link
Member

@nunomaduro I think this is good pending those weird HTML formatting things I pointed out and single comment above.

@taylorotwell taylorotwell marked this pull request as draft May 20, 2024 21:09
@nunomaduro nunomaduro force-pushed the feat/exception-page branch from 4e1409e to 130e6eb Compare May 27, 2024 13:15
@mfn
Copy link
Contributor

mfn commented Jun 3, 2024

I've got failing tests over in rebing/graphql-laravel#1137 (automated weekly)

I think it's related to this PR, because it fails on a class which was introduced here.

Any ideas?

@driesvints
Copy link
Member

@mfn gonna be super hard to deduct what's going on without more info. Best that you attempt a minimum repro example with the installer:

laravel new bug-report --github="--public"

@mfn
Copy link
Contributor

mfn commented Jun 3, 2024

The minimal reproducer is:

It didn't fail before, now with the latest L11 version it does. I.e. the test matrix with prefer-lowest is fine

@driesvints
Copy link
Member

I'm sorry @mfn but we can't go off on a third party repo. We'll need a clear way to reproduce this in a Laravel project.

@mfn
Copy link
Contributor

mfn commented Jun 4, 2024

No worries, I figured it out!

It was a improper use of testbench to configure my test: I was setting app.debug flag to true, but when \Illuminate\Foundation\Providers\FoundationServiceProvider::registerExceptionRenderer is called, the debug flag was not (yet) set: more detailed explanation and the fix.

@NickSdot
Copy link
Contributor

NickSdot commented Jun 5, 2024

@nunomaduro I am missing two functionalities I pretty much appreciated before:

  1. Error lines where clickable to open in editor
  2. Output of dd() and dump() were visible

Before I am going to dig: should these features work or were they left out intantionaly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants