Giter Club home page Giter Club logo

Comments (6)

jnicklas avatar jnicklas commented on June 16, 2024

Could you provide the full trace please?

from refile.

mtrolle avatar mtrolle commented on June 16, 2024

I just got the same error:

Exiting
/Users/mt/.rvm/gems/ruby-2.2.0/gems/refile-0.4.0/lib/refile/attachment/active_record.rb:10:in dup': can't dup Fixnum (TypeError) from /Users/mt/.rvm/gems/ruby-2.2.0/gems/refile-0.4.0/lib/refile/attachment/active_record.rb:10:inattachment'
from /Users/mt/Dropbox/Sites/ruby-fun/rails-devise-pundit/app/models/user.rb:6:in <class:User>' from /Users/mt/Dropbox/Sites/ruby-fun/rails-devise-pundit/app/models/user.rb:1:in<top (required)>'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:457:in load' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:457:inblock in load_file'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:647:in new_constants_in' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:456:inload_file'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:354:in require_or_load' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:494:inload_missing_constant'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:184:in const_missing' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/inflector/methods.rb:261:inconst_get'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/inflector/methods.rb:261:in block in constantize' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/inflector/methods.rb:259:ineach'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/inflector/methods.rb:259:in inject' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/inflector/methods.rb:259:inconstantize'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:566:in get' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:597:inconstantize'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/devise-3.4.1/lib/devise.rb:302:in get' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/devise-3.4.1/lib/devise/mapping.rb:80:into'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/devise-3.4.1/lib/devise/mapping.rb:75:in modules' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/devise-3.4.1/lib/devise/mapping.rb:92:inroutes'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/devise-3.4.1/lib/devise/mapping.rb:159:in default_used_route' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/devise-3.4.1/lib/devise/mapping.rb:69:ininitialize'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/devise-3.4.1/lib/devise.rb:336:in new' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/devise-3.4.1/lib/devise.rb:336:inadd_mapping'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/devise-3.4.1/lib/devise/rails/routes.rb:224:in block in devise_for' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/devise-3.4.1/lib/devise/rails/routes.rb:223:ineach'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/devise-3.4.1/lib/devise/rails/routes.rb:223:in devise_for' from /Users/mt/Dropbox/Sites/ruby-fun/rails-devise-pundit/config/routes.rb:3:inblock in <top (required)>'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:423:in instance_exec' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:423:ineval_block'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:401:in draw' from /Users/mt/Dropbox/Sites/ruby-fun/rails-devise-pundit/config/routes.rb:1:in<top (required)>'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in load' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:inblock in load'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in load_dependency' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:inload'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/application/routes_reloader.rb:40:in block in load_paths' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/application/routes_reloader.rb:40:ineach'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/application/routes_reloader.rb:40:in load_paths' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/application/routes_reloader.rb:16:inreload!'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/application/routes_reloader.rb:26:in block in updater' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/file_update_checker.rb:75:incall'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/file_update_checker.rb:75:in execute' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/application/routes_reloader.rb:27:inupdater'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/application/routes_reloader.rb:7:in execute_if_updated' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/application/finisher.rb:69:inblock in module:Finisher'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in instance_exec' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:inrun'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:55:in block in run_initializers' from /Users/mt/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:226:inblock in tsort_each'
from /Users/mt/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:348:in block (2 levels) in each_strongly_connected_component' from /Users/mt/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:429:ineach_strongly_connected_component_from'
from /Users/mt/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:347:in block in each_strongly_connected_component' from /Users/mt/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:345:ineach'
from /Users/mt/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:345:in call' from /Users/mt/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:345:ineach_strongly_connected_component'
from /Users/mt/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:224:in tsort_each' from /Users/mt/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/tsort.rb:203:intsort_each'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:54:in run_initializers' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/application.rb:352:ininitialize!'
from /Users/mt/Dropbox/Sites/ruby-fun/rails-devise-pundit/config/environment.rb:5:in <top (required)>' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:inrequire'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in block in require' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:inload_dependency'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in require' from /Users/mt/Dropbox/Sites/ruby-fun/rails-devise-pundit/config.ru:3:inblock in

'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/rack-1.6.0/lib/rack/builder.rb:55:in instance_eval' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/rack-1.6.0/lib/rack/builder.rb:55:ininitialize'
from /Users/mt/Dropbox/Sites/ruby-fun/rails-devise-pundit/config.ru:in new' from /Users/mt/Dropbox/Sites/ruby-fun/rails-devise-pundit/config.ru:in'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/rack-1.6.0/lib/rack/builder.rb:49:in eval' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/rack-1.6.0/lib/rack/builder.rb:49:innew_from_string'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/rack-1.6.0/lib/rack/builder.rb:40:in parse_file' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/rack-1.6.0/lib/rack/server.rb:299:inbuild_app_and_options_from_config'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/rack-1.6.0/lib/rack/server.rb:208:in app' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/server.rb:61:inapp'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/rack-1.6.0/lib/rack/server.rb:336:in wrapped_app' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/server.rb:139:inlog_to_stdout'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/server.rb:78:in start' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:80:inblock in server'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in tap' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:inserver'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in run_command!' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in<top (required)>'
from /Users/mt/Dropbox/Sites/ruby-fun/rails-devise-pundit/bin/rails:8:in require' from /Users/mt/Dropbox/Sites/ruby-fun/rails-devise-pundit/bin/rails:8:in<top (required)>'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/spring-1.2.0/lib/spring/client/rails.rb:27:in load' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/spring-1.2.0/lib/spring/client/rails.rb:27:incall'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/spring-1.2.0/lib/spring/client/command.rb:7:in call' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/spring-1.2.0/lib/spring/client.rb:26:inrun'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/spring-1.2.0/bin/spring:48:in <top (required)>' from /Users/mt/.rvm/gems/ruby-2.2.0/gems/spring-1.2.0/lib/spring/binstub.rb:11:inload'
from /Users/mt/.rvm/gems/ruby-2.2.0/gems/spring-1.2.0/lib/spring/binstub.rb:11:in <top (required)>' from /Users/mt/Dropbox/Sites/ruby-fun/rails-devise-pundit/bin/spring:16:inrequire'
from /Users/mt/Dropbox/Sites/ruby-fun/rails-devise-pundit/bin/spring:16:in <top (required)>' from bin/rails:3:inload'
from bin/rails:3:in `'

from refile.

janko avatar janko commented on June 16, 2024

I managed to pinpoint the problem, it's a bug in Ruby core, I just opened an issue.

https://bugs.ruby-lang.org/issues/10659

from refile.

janko avatar janko commented on June 16, 2024

The error happens when super is called in Refile::ActiveRecord::Attachment#attachment, and there is no stack trace (it just begins with that line), which signaled to me the bug might be in Ruby.

from refile.

mtrolle avatar mtrolle commented on June 16, 2024

Nice - thanks for quick resolution 👍

from refile.

jnicklas avatar jnicklas commented on June 16, 2024

Just pushed 0.4.1 which should fix this.

from refile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.