spatie / laravel-ray

Debug with Ray to fix problems faster in Laravel apps

Home Page:https://myray.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ray(Illuminate\Validation\ValidationException) doesn't display anything

levu42 opened this issue · comments

Describe the bug
trying to display an Illuminate\Validation\ValidationException doesn't display anything. Doing a ray('a'); ray($exception); ray('b'); just shows a and b. ray([$exception]) works however.

Versions
Ray version (you can see this in "About Ray"): 2.6.9

You can use composer show to get the version numbers of:

  • spatie/ray package version: 1.38.0
  • spatie/laravel-ray package version (if applicable): 1.33.0

PHP version: 8.2.10
Laravel version: 10.23.1

To Reproduce
Steps to reproduce the behavior:

try {
  $this->validate();
} catch (\Throwable $e) {
  rd($e);
}

Actual output
None

Expected behavior
I expect to see the ValidationException in ray

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: arch linux
  • Version: (newest)

This (now?) happens also with Laravel FormRequests, similar to this: spatie/ray#847

One thing I noticed when trying to use var_dump, print_r or var_export on the request I tried dumping: there seems to be a circular reference in its class members. Could that be part of the reason why ray is having problems displaying that object?

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

@timvandijck Sorry to tag you personally in this, I just saw that you were active in some other bug report last week.

I don't agree that this should be closed, this is a bug that should be fixed, when ray shows all exceptions and then just doesn't show validation exceptions at all, it's very confusing. So I would like this issue to stay open, but I don't have the permissions to reopen it. Could you try to fix this bug in ray / laravel-ray?

I also am having similar issues where Ray silently ignores any classes with circular references. Can this issue be re-opened?

@levu42 no problem, I'm sorry we lost track of this.

@keithbrink I'll have a look at it. Could you share your package and PHP versions and OS?

Sure thing: PHP 8.3.1, MacOS, Ray Desktop app: 2.7.5

Composer: spatie/laravel-ray@1.35.1, spatie/ray@1.41.1

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

@timvandijck This is still an issue.