datashift_spree icon indicating copy to clipboard operation
datashift_spree copied to clipboard

No Thor commands available

Open ping0xFF opened this issue 9 years ago • 5 comments

I am using spree 2.4, rails (4.1.11), jruby 1.7.19, java version "1.7.0_95".

bundle exec thor list
WARNING: unable to load thorfile "/root/my_store20151008/mighty.thor": uninitialized constant DataShift::Logging
org/jruby/RubyModule.java:2726:in `const_missing'
No Thor commands available

ping0xFF avatar Feb 18 '16 07:02 ping0xFF

Here is my thor file,

require 'thor'
require 'datashift'
require 'datashift_spree'

DataShift::load_commands
DataShift::SpreeHelper::load_commands

ping0xFF avatar Mar 04 '16 08:03 ping0xFF

I was able to make the error go away and use the commands when I used datashift version 0.13.0. There are unfixed bugs in that version so I am unable to use it fully. It seems to break in version .14 and .15.

Here is my gemfile:

gem 'datashift'
gem 'datashift_spree'

ping0xFF avatar Mar 05 '16 03:03 ping0xFF

I got it to work. I had to comment out this line in 3 files method_mapper.rb, method_dictionary.rb, and method_detail.rb

#include DataShift::Logging

ping0xFF avatar Mar 05 '16 05:03 ping0xFF

The rubygems repo and your git repo might not synced up. I realized you fixed this issue already and I wasn't getting it because I didn't specify the git url in my gemfile, like this:

gem 'datashift', :git => "git://github.com/autotelik/datashift"
gem 'datashift_spree', :git => "git://github.com/autotelik/datashift_spree"

Please update the doc or sync with rubygems for the sake of the next guy who comes along :)

ping0xFF avatar Mar 05 '16 06:03 ping0xFF

hi .. thanks for your input ... sorry for the issues .. not been working with spree for few months .. will try and get things synced

autotelik avatar Mar 09 '16 16:03 autotelik