autotelik / datashift_spree

Comprehensive import and export tools for Spree and Spree Products
Other
90 stars 104 forks source link

No Thor commands available #51

Open ping0xFF opened 8 years ago

ping0xFF commented 8 years ago

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 commented 8 years ago

Here is my thor file,

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

DataShift::load_commands
DataShift::SpreeHelper::load_commands
ping0xFF commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 :)

autotelik commented 8 years ago

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