Ceedling not working according to website tutorial

1,156 views
Skip to first unread message

Ian Mclennan

unread,
Nov 2, 2023, 3:13:54 PM11/2/23
to ThrowTheSwitch Forums
I installed Ruby and Gems, then I used "gem install ceedling" and it seemed to work. Following the exact instructions in the quickstart guide, I typed "ceedling help" and it immediately vomited:

H:\>ceedling help
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ceedling-0.31.1/bin/ceedling:12:in `<top (required)>': undefined method `exists?' for File:Class (NoMethodError)

  project_found = File.exists?(main_filepath)
                      ^^^^^^^^
Did you mean?  exist?
        from C:/Ruby32-x64/bin/ceedling:32:in `load'
        from C:/Ruby32-x64/bin/ceedling:32:in `<main>'

I tried this, too
H:\>ceedling --help
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/ceedling-0.31.1/bin/ceedling:12:in `<top (required)>': undefined method `exists?' for File:Class (NoMethodError)

  project_found = File.exists?(main_filepath)
                      ^^^^^^^^
Did you mean?  exist?
        from C:/Ruby32-x64/bin/ceedling:32:in `load'
        from C:/Ruby32-x64/bin/ceedling:32:in `<main>'

If anyone could help me get started so that I can do the exercises in the book, it would be greatly appreciated.

Mark Vander Voord

unread,
Nov 2, 2023, 3:17:56 PM11/2/23
to throwth...@googlegroups.com
Hello.

Ruby made some breaking changes that we're catching up on. If you grab the latest prerelease gem and install that instead, things should go more smoothly for you.It's not an official release yet, as we're working through a few things, but overall it's in a better place.

You can install a specific version of the gem by executing this from the directory you downloaded the gem to:

gem install --local ceedling-specific-filename.gem

I hope that helps!

mark

--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/c4eb334c-7cd5-4afd-8623-286760bf2443n%40googlegroups.com.

Ian Mclennan

unread,
Nov 2, 2023, 3:36:31 PM11/2/23
to ThrowTheSwitch Forums
I tried a few different things but I either didn't follow your instructions correctly or it didn't work. 

Here's what I typed in and the responses:
PS C:\Ruby32-x64\lib\ruby\gems\3.2.0\gems> gem install --local ceedling-specific-filename.gem
ERROR:  Could not find a valid gem 'ceedling-specific-filename.gem' (>= 0) in any repository
PS C:\Ruby32-x64\lib\ruby\gems\3.2.0\gems> gem install --local ceedling-0.31.1
ERROR:  Could not find a valid gem 'ceedling-0.31.1' (>= 0) in any repository


Do you have any idea what I'm doing wrong here?

Thanks again,
Ian

Mark Vander Voord

unread,
Nov 2, 2023, 3:41:24 PM11/2/23
to throwth...@googlegroups.com
Download the latest pre-release version from here:


Once it's downloaded, go to your Download folder and type the following:

gem install --local ceedling-0.32.0-6113249.gem

Mark

Ian Mclennan

unread,
Nov 3, 2023, 9:23:38 AM11/3/23
to ThrowTheSwitch Forums
That worked! Thanks for hanging in there with me. I'm familiar with running unit tests but setting up the framework is new for me.

Ian

Mark Vander Voord

unread,
Nov 3, 2023, 10:16:52 AM11/3/23
to throwth...@googlegroups.com
No worries. I realize it's not as easy as it should be at this point. We're definitely trying to improve that!

Good luck!


Mark

--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages