ThrowTheSwitch / Ceedling

Ruby-based unit testing and build system for C projects

Home Page:http://throwtheswitch.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

another deprecated function in ceedling 0.31.1 for ruby 3.2.0

Daimonion1980 opened this issue · comments

Replaced the exists function to get ceedling temporary to work and found another deprecated statement:

PS C:\Users\UserXXX> ceedling version
Welcome to Ceedling!
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
    Ceedling:: 0.31.1
    CMock:: 2.5.4
    Unity:: 2.5.4
    CException:: 1.3.3

If you're interested, you can grab the Ceedling 0.32.0 release candidate from the PR and give that a try. It fixes these issues already.

Thanks. At the moment i unistalled ruby 3.2.0 and installed ruby 3.0.5 to get ceedling to work.

So, maybe after doing my tests.

Hello back from the future.

Since January '23 I was able to work with ceedling v0.31.1 and ruby v3.0.5.
But now we slowly want to update our Infrastructure to actual versions and so I tried your suggestion and downloaded latest version from your release page.
I used tag: https://github.com/ThrowTheSwitch/Ceedling/releases/tag/0.32.0-efeabf2

But the output is still the same:

PS C:\Projekte\ceedling> ceedling version
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Welcome to Ceedling!

   Ceedling => 0.32.0
      CMock => 2.5.4
      Unity => 2.6.0
 CException => 1.3.4
PS C:\Projekte\ceedling> ruby --version
ruby 3.3.1 (2024-04-23 revision c56cd86388) [x64-mingw-ucrt]
PS C:\Projekte\ceedling>

I know that there is minimum one other issue where this problem is stated, but I want to keep things clear and so I will use this issue to check a possible solution to this.

I'm using Windows 10.

Hi.

Thanks for helping us to test the release candidate!

A couple quick questions:

(1) Was your original ceedling project using the gem location, or installed to the project itself (usually in the vendor directory) ?
(2) If the latter, did you do a ceedling update <project> when you switched to the new gem?

Hello Mark and thanks for the quick reply.

In the project.yml the "which_ceedling" variable was and is set to use gem:

:project:
  :which_ceedling: gem
  :ceedling_version: '?'

To update to the latest version I did the following steps:

  1. Test if project works with rubx 3.0.5 and ceedling 0.31.1
  2. uninstall ruby 3.0.5
  3. install ruby 3.3.0
  4. install ceedling again --> ceedling 0.31.1 including the dependent versions from cmock, unity, cexception were installed as expected
  5. test ceedling --> same failure as in issue #782
  6. download latest ceedling from tag: https://github.com/ThrowTheSwitch/Ceedling/releases/tag/0.32.0-efeabf2
  7. gem install --local ./ceedlin.....gem --> error because of missing dependency unicode-display_width
  8. gem install unicode-display_width
  9. gem install --local ./ceedlin...gem --> worked and was showed as 0.32.0 in "ceedling version"

The folder where I exec "ceedling version" did not have any ceedling projects inside.