lookbook icon indicating copy to clipboard operation
lookbook copied to clipboard

Syntax error reporting in Lookbook

Open Jackson200 opened this issue 1 year ago • 2 comments

Problem

Hello all. When the preview file has a ruby error is it declared as missing instead of reporting the error

To Reproduce

Steps to reproduce the behavior:

  1. Work on a preview file

  2. Change something that breaks the code. The preview now cannot be found: Screenshot 2024-02-13 at 10 45 43 AM

  3. Go to the rails preview to get a clue of the error Screenshot 2024-02-13 at 10 46 17 AM

Desired behaviour

It would be great if we could see this error on Lookbook.

Version numbers

  • Lookbook: 2.2.0
  • ViewComponent: 3.7.0
  • Rails: 7.0.8
  • Ruby: 3.1.4

Additional context

Thanks for looking! And the continued work :) We love Lookbook! 🚀

Jackson200 avatar Feb 13 '24 15:02 Jackson200