Incomplete stack trace within component for errors #352
-
I starting to use view components more and more throughout my application and really loving it. Great work to contributors. One thing I have noticed is that errors raised within the component are not showing the full stack trace into the component. Last trace is in the view where I all to render the for component. Maybe I am missing something in my setup? My view code: For example this is what I see in my browser exception page And in my rails log |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@acetinick thank you for the report! Would you be willing to open a PR with a failing test? There is a test related to this behavior here: https://github.com/github/view_component/blob/master/test/view_component/view_component_test.rb#L454 that might be worth building off/copying ❤️ |
Beta Was this translation helpful? Give feedback.
-
@acetinick I just ran into this as well. It seems like it is a problem due to the |
Beta Was this translation helpful? Give feedback.
@acetinick I just ran into this as well. It seems like it is a problem due to the
better_errors
gem. If I removebetter_errors
from my Gemfile the stack trace shows the correct line within my component. Perhaps that gem is doing some filtering of the trace?