spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
554 stars 102 forks source link

Incorrect `app` path prefix when trying to open link via PHPStorm #911

Closed Jacobs63 closed 2 months ago

Jacobs63 commented 2 months ago

Describe the bug Any ray logging automatically makes the location of the log clickable. This link, however, has an incorrect app prefix making it not possible to open.

Versions spatie/laravel-ray - 1.36.2 spatie/ray - 1.41.2 PHP version: 8.3.4 Laravel version (if applicable): 11.4.0

To Reproduce

  1. Ensure anything is logged to Ray, be it via a log or a manual call via ray()
  2. Open Ray and click on any of the links, e.g. when logging trace via ray()->trace(): image
  3. End up without opening the file as there is always an incorrect /app prefix in the file path: image

Expected behavior PHPStorm opens the file.

Desktop

Jacobs63 commented 2 months ago

This seems to have been caused by the Docker volume being mounted to a non-standard /app path.