Missing Thor class for invoke middleman:generator
voytee opened this issue · comments
Expected behavior and actual behavior
Missing Thor class for invoke middleman:generator
raised when doing middleman init
Steps to reproduce the problem (from a clean middleman installation)
Additional information
- Ruby version: 3.2.2
- Middleman version: 4.5.0
- OS version: OSX
Can you try on 4.5.1?
Can you try on 4.5.1?
ERROR: Could not find a valid gem 'middleman' (= 4.5.1) in any repository
Seems like 4.5.1 is not available through ruby gems and I do not see 4.5.1 TAG on the repo
Also checked with 5.0.0.rc.1
but with this one you'll get other error:
uninitialized constant Haml::Options
4.5.1 is definitely on rubygems: https://rubygems.org/gems/middleman/versions/4.5.1
When doing gem install middleman
, rubygems installs the 4.5.0
version. Forcing the version also fails.
─$ gem install middleman -v 4.5.1
ERROR: Could not find a valid gem 'middleman' (= 4.5.1) in any repository
ERROR: Possible alternatives: beans-middleman, branchable_cdn_assets-middleman, capistrano-middleman, capistrano-middleman-presentation, capistrano-middleman2, contentful-middleman-pages, contentful_middleman, ember-middleman, fdt_middleman_tools, font-awesome-middleman
It could be rubygems issue though.
I've got the same error. By using an older version of thor
(1.2.2
) instead 1.3.0
the middleman init
command works.
Any updates on this? I also am having this problem and can't get 4.5.1 to install.
@tdreyno I successfully installed the v4.5.1 release for my projects under Ruby 3.2.
I miss the git tag in the repository, they are useful to compare changes between versions: https://github.com/middleman/middleman/tags.
Not sure how is your current release process, but just in case, Bundler provides a very easy command to release gems (it builds the gem, push the tags and push to RubyGems automatically):
> rake release
But probably in this project is a bit more complex, since it's composed of multiple gems.