Open lastant opened 5 months ago
Thank you for reporting this issue, @lastant!
Currently, the Shopify CLI requires exactly Ruby 3.0 to work on Windows due to some incompatibility issues. The CLI contributors/maintainers are already working on improving this aspect, and soon it will no longer require Ruby on your machine.
Thanks again for reporting this!
@karreiro Thank you for point it out, but even with Ruby 3.0 the result is the same...
>shopify theme info
THEME CONFIGURATION
Store [store].myshopify.com
Development Theme ID Not set
TOOLING AND SYSTEM
Shopify CLI 3.59.1
OS windows-amd64
Shell unknown
Node version v20.12.2
Ruby version 3.0.6
Thank you for the extra details, @lastant!
Could you confirm if, during the installation, the MSYS2 component and the MSYS2 base installation option were selected? That's important because the Ruby CLI depends on wdm
, which may require a native compilation process (and those options help with that). Since the CLI is really using Ruby 3.0, that's likely the problem.
Please let me know how it goes!
@karreiro The article you linked lists the requirement for ruby as "2.7.0 or greater" not as "Exactly 3.0"
If it requires 3.0, the docs should be updated as such.
I will say I've seen similar happen before when it's the first time running the CLI after installing it, it's often very slow, but subsequent runs are a lot faster. Unsure what happens behind the scenes.
Thank you for the feedback, @StewPoll! There's an issue in the user experience; we need to select Windows as the platform to check the Ruby 3.0 requirement and the MSYS2 details:
I hope this helps!
@karreiro Yes I did '1 - MSYS2 base installation' and '2 - MSYS2 system update (optional)', even tried '3 - MSYS2 and MINGW development toolchain', still the same.
Maybe you can tell me where to put some debug commands in the code to find the cause. I tried looking into the shopify/cli code, but I don't know ruby that well. Again, the most important parts I think are that it gets stuck on bundle exec ruby .......node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/bin/shopify theme token --admin atkn_Cp8...
and that Development Theme ID appears to be Not set.
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.
P.S. You can learn more about why we stale issues here.
Tried again with the newest version (@shopify/cli/3.64.1 win32-x64 node-v20.10.0
), still the same...
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.
P.S. You can learn more about why we stale issues here.
It's still relevant...
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
shopify theme dev
should start a local serverActual behavior
The command doesn't have any output at all
Verbose output