{"action":"opened","issue":{"url":"https://api.github.com/repos/ctran/annotate_models/issues/264","labels_url":"https://api.github.com/repos/ctran/annotate_models/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/ctran/annotate_models/issues/264/comments","events_url":"https://api.github.com/repos/ctran/annotate_models/issues/264/events","html_url":"https://github.com/ctran/annotate_models/issues/264","id":93319110,"number":264,"title":"Blah is not a class (TypeError)","user":{"login":"leonsp","id":671090,"avatar_url":"https://avatars.githubusercontent.com/u/671090?v=3","gravatar_id":"","url":"https://api.github.com/users/leonsp","html_url":"https://github.com/leonsp","followers_url":"https://api.github.com/users/leonsp/followers","following_url":"https://api.github.com/users/leonsp/following{/other_user}","gists_url":"https://api.github.com/users/leonsp/gists{/gist_id}","starred_url":"https://api.github.com/users/leonsp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonsp/subscriptions","organizations_url":"https://api.github.com/users/leonsp/orgs","repos_url":"https://api.github.com/users/leonsp/repos","events_url":"https://api.github.com/users/leonsp/events{/privacy}","received_events_url":"https://api.github.com/users/leonsp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-06T16:19:37Z","updated_at":"2015-07-06T16:19:37Z","closed_at":null,"body":"I recently updated my app to Rails 4.2.3, Ruby 2.2.2, and Annotate 2.6.10. Now, when I run annotate, I get this error:\r\n\r\n    $ bundle exec annotate\r\n    /Users/my_user/Projects/my_project/app/models/web_console.rb:18:in `<top (required)>': WebConsole is not a class (TypeError)\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:457:in `load'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:457:in `block in load_file'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:647:in `new_constants_in'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:456:in `load_file'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:354:in `require_or_load'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:317:in `depend_on'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:233:in `require_dependency'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/railties-4.2.3/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/railties-4.2.3/lib/rails/engine.rb:471:in `each'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/railties-4.2.3/lib/rails/engine.rb:471:in `block in eager_load!'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/railties-4.2.3/lib/rails/engine.rb:469:in `each'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/railties-4.2.3/lib/rails/engine.rb:469:in `eager_load!'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/railties-4.2.3/lib/rails/engine.rb:346:in `eager_load!'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/annotate-2.6.10/lib/annotate.rb:113:in `eager_load'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/gems/annotate-2.6.10/bin/annotate:184:in `<top (required)>'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/bin/annotate:23:in `load'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/bin/annotate:23:in `<main>'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `eval'\r\n    \tfrom /Users/my_user/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `<main>'\r\n\r\nThis is what line 18 of that file looks like:\r\n\r\n    # == Schema Information\r\n    #\r\n    # Table name: web_consoles\r\n    #\r\n    #  id               :integer          not null, primary key\r\n    #  name             :string(255)\r\n    #  description      :text(1048576)\r\n    #  priority         :integer\r\n    #  protocol         :string(255)\r\n    #  port             :integer\r\n    #  path             :string(255)\r\n    #  created_at       :timestamp\r\n    #  updated_at       :timestamp\r\n    #  flavour_affinity :string(255)\r\n    #\r\n\r\n    # Representation of a link to a know web service on a server\r\n    class WebConsole < ActiveRecord::Base\r\n\r\nI'm not sure why it's not recognizing WebConsole as a class.\r\n\r\nNote that the annotation that's there is from when the application was using Rails 3.1. I haven't been able to run annotate successfully in some time."}}