Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1752

Incompatibility with newest version of bson_ext?

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.4.5
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      I wasn't sure where to put this bug. Anyway, in the Mongoid documentation it says to use:

      Unable to find source-code formatter for language: `ruby. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      gem "mongoid", "~> 2.4"
      gem "bson_ext", "~> 1.5"
      

      `

      If I do a bundle update it will update to the newest version of bson_ext which is 1.6.0. With this new version, I get the following error when I try to start up rails server:

      Unable to find source-code formatter for language: `. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      mongo-1.6.0/lib/mongo/util/logging.rb:34:in 'instrument': undefined method 'level' for #<Mongoid::Logger:0xb44450c> (NoMethodError)
      

      `

      But, if I revert back to bson_ext 1.5.2, everything works fine.

            Assignee:
            Unassigned Unassigned
            Reporter:
            sambro sambro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: