Rake “already initialized constant WFKV_” warning

前端 未结 4 1205
[愿得一人]
[愿得一人] 2020-12-01 07:39

Trying to run rake cucumber:ok and am getting this error:

/Users/dev/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rack-1.3.4/lib/rack/backp

相关标签:
4条回答
  • 2020-12-01 08:02

    Rack 1.3.5 is out now, which has fixed this warning.

    0 讨论(0)
  • 2020-12-01 08:16

    you should uninstall rake-0.9.2 and install rack 1.6.13

    gem uninstall rake
    gem install  rack 1.6.13
    
    0 讨论(0)
  • 2020-12-01 08:16

    So, I included:

    require 'uri/common'; ::URI.send :remove_const, :WFKV_

    however the comment which says "it will work in the Gemfile" in fact should read "Must be in the Gemfile."

    0 讨论(0)
  • 2020-12-01 08:27

    I started having the same problem this evening. It seems to be related to Rack 1.3.4. I fixed it by adding this to my Gemfile:

    gem 'rack', '1.3.3'
    

    Then running:

    bundle update rack
    

    Incidentally, I tried Bozhidar's suggestion before this, but to no avail.

    0 讨论(0)
提交回复
热议问题