Skip to content

Ruby and Bundler version mismatch in dev container setup #16

@wondersavant

Description

@wondersavant

Docker Features
Dev Containers

When attempting to open a dev container for Ruby on Rails in VSCode, the following error occurred:

...
Your Ruby version is 3.3.4, but your Gemfile specified 3.3.0
...

fix

  1. Update the Ruby version in the Gemfile to the one error says in this case 3.3.4:
    ruby '3.3.4'

  2. Regenerate the Gemfile.lock:
    rm Gemfile.lock
    bundle install

  3. save it and reopen the dev container then run
    rails server

you can just update the dev container and put that one in the notes rather than putting the fix for it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions