acorn icon indicating copy to clipboard operation
acorn copied to clipboard

Feature Request: Use spatie/ignition as error page

Open rrmesquita opened this issue 3 years ago • 3 comments

Terms

Summary

Use spatie/ignition as error page as opposed to the current one, Whoops.

Motivation

Why are we doing this?

To have a prettier error page.

What use cases does it support?

It has a feature for opening the file containing the error on the specific line, which saves some good time when dealing with complex bugs.

What is the expected outcome?

Stay up-to-date with Laravel, the framework that Acorn is originally extending from.

Potential conflicts / foreseeable issues

Potentially none but I haven't tested, can't be sure.

Additional Context

Laravel 9.x started using spatie/ignition.

rrmesquita avatar Apr 12 '22 19:04 rrmesquita

Let me know if this was already discussed before and if so, why it was chosen to not use Ignition, thanks!

rrmesquita avatar Apr 13 '22 20:04 rrmesquita

@rrmesquita once the maintainer has a chance, i'm sure they'll be happy to explain. in the meantime, there is no need to bump an issue created ~24 hours ago because you haven't yet gotten a reply. thanks for understanding!

retlehs avatar Apr 13 '22 22:04 retlehs

Laravel's Ignition implementation requires routing which is not yet implemented in Acorn.

Related #68

Log1x avatar May 02 '22 23:05 Log1x

Ignition should now work in Acorn v3 with the introduction of routing.

https://roots.io/acorn/docs/error-handling/#ignition

Log1x avatar Feb 07 '23 04:02 Log1x

... and just make sure to run wp acorn package:discover after requiring per composer, if you want to avoid an hour of debugging, why there is no change of the error handler 🤦‍♂️

dsturm avatar Feb 09 '23 09:02 dsturm

Hmm, that generally shouldn't happen.

Are you by any chance missing the post-autoload-dump in your composer.json from the Acorn installation docs?

Log1x avatar Feb 09 '23 09:02 Log1x

That's why I didn't thought of this. But yeah, the post-autoload-dump exists in composer.json - I'm using a bedrock and sage project from late 2022 and manually upgraded to the latest changes.

dsturm avatar Feb 09 '23 09:02 dsturm