ryanb / letter_opener

Preview mail in the browser instead of sending.
MIT License
3.71k stars 236 forks source link

uninitialized constant LetterOpener::DeliveryMethod::Launchy #190

Closed miguelpeniche closed 2 years ago

miguelpeniche commented 2 years ago

I'm continually getting the error uninitialized constant LetterOpener::DeliveryMethod::Launchy.

Sometimes it works fine and suddenly I get that error, but is kind of a pain when you are trying to use email to end a ux.

codemamba2080 commented 2 years ago

I have the same issue!!

I even tried the last 6 versions of this gem and they seem to have the same issue.

Rails 5.2.6 Ruby 2.6.6

To get it to work, I need to restart my server every time, it's deathly annoying : (

pedroceles commented 2 years ago

I'm also getting that constantly. I need to restart rails server all the time. Rails 5.2.6 Ruby 2.7.4

nashby commented 2 years ago

should be fixed by https://github.com/ryanb/letter_opener/commit/c67cc5b444b3b4ff394f81ee5b9756d0a766f311 @bengalamx @codemamba2080 @pedroceles could you please test master branch and report back?

eaverdeja commented 2 years ago

Hey @nashby! I'm getting a similar error using 1.8.1: NameError (uninitialized constant Launchy).

This happens at lib/letter_opener/delivery_method.rb:25:in 'deliver!'. I think this has to do with rails reloading? I can reproduce by changing some code, then the error starts to pop up.

Rails 5.2.7.1 Ruby 2.7.6

miguelpeniche commented 1 year ago

Hi @nashby, the NameError came back same as @eaverdeja described up here. Using Rails 5.2.6 and Ruby 2.7.2

nashby commented 1 year ago

@miguelpeniche I'd love to investigate it if you could provide a sample app where I can reproduce your issue

miguelpeniche commented 1 year ago

Hey @nashby I am still having the same issues since then, I just accepted it and get used to it.

Just updated to ruby 3.1.4 and rails 6.1.7.3 and is still there. Just wanted to let you know.

screenshot 2023-06-04 a la(s) 13 24 09

I can't provide a sample app as this is happening just in development in a fully working application in production.

nashby commented 1 year ago

hey @miguelpeniche. It's really hard to debug such issue and it makes it even harder to do without sample app that reproduces it, sorry. Could you please show your gemfile? Maybe it'll help somehow

miguelpeniche commented 1 year ago

Sure @nashby, I am attaching the content of my gemfile.lock and the logs of the error.

gemfile.txt

error_log.txt

miguelpeniche commented 8 months ago

This error is persistent and have been here for a long time :(

nashby commented 8 months ago

@miguelpeniche have you tried latest version of letter_opener? I can see in your error_log that you're using 1.7.0