ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead

后端 未结 10 728
无人及你
无人及你 2020-12-04 17:59

Seems the last post for this problem was closed for one reason or another so I\'ll try my luck...

I\'m trying to run a simple \"rake db:migrate\" command. When I do,

10条回答
  •  Happy的楠姐
    2020-12-04 18:57

    I had to fix this while not breaking on places that have old rake but not rdoc installed. I added a begin...rescue clause:

    begin
      require 'rake/rdoctask'
    rescue
      require 'rdoc/task'
    end
    

提交回复
热议问题