welaika / wordmove

Multi-stage command line deploy/mirroring and task runner for Wordpress
https://wptools.it/wordmove
MIT License
1.87k stars 165 forks source link

'Stack level too deep' error on Windows #655

Closed frontenddevguy closed 1 year ago

frontenddevguy commented 2 years ago

Describe the bug

On Windows 10 Pro with a newly installed Ruby environment and latest Wordmove, I get the following error, with: wordmove pull -e production --themes:

Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/wordmove-5.2.2/lib/wordmove/movefile.rb:13:in `fetch': stack level too deep (SystemStackError)
        from D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/wordmove-5.2.2/lib/wordmove/movefile.rb:25:in `fetch'
        from D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/wordmove-5.2.2/lib/wordmove/movefile.rb:25:in `fetch'
        from D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/wordmove-5.2.2/lib/wordmove/movefile.rb:25:in `fetch'
        from D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/wordmove-5.2.2/lib/wordmove/movefile.rb:25:in `fetch'
        from D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/wordmove-5.2.2/lib/wordmove/movefile.rb:25:in `fetch'
        from D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/wordmove-5.2.2/lib/wordmove/movefile.rb:25:in `fetch'
        from D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/wordmove-5.2.2/lib/wordmove/movefile.rb:25:in `fetch'
        from D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/wordmove-5.2.2/lib/wordmove/movefile.rb:25:in `fetch'
         ... 8723 levels...
        from D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
        from D:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/wordmove-5.2.2/exe/wordmove:6:in `<top (required)>'
        from D:/Ruby31-x64/bin/wordmove:32:in `load'
        from D:/Ruby31-x64/bin/wordmove:32:in `<main>'

Running wordmove doctor works, but also returns the same error.

The wordmove command does not complete.

alessandro-fazzi commented 2 years ago

Hey @frontenddevguy ,

the stable release does not support ruby 3.1. The alpha release (gem install wordmore --pre) should work, but it never seen the stable channel's light so you should deeply test it on a staging environment before use it for production pushes.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.