Ceedling icon indicating copy to clipboard operation
Ceedling copied to clipboard

Colour reporter: warning about deprecated API

Open patkan opened this issue 5 years ago • 3 comments

Hi, we are using ceedling 0.30.0 on Windows machines with a Ruby 2.6. When we enable colour-reporter-plugin

:plugins:
  :enabled:
    [...]
    - colour_report

we get the following warning:

C:/Users/kanzler/AppData/Local/ruby/Ruby26-x64/lib/ruby/gems/2.6.0/gems/ceedling-0.30.0/vendor/unity/auto/colour_reporter.rb:7: warning: Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead

Nothing critical, but maybe this is something that can be easily fixed.

version information:

$ ruby --version
ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32]
$ ceedling version
   Ceedling:: 0.30.0
      Unity:: 2.5.1
      CMock:: 2.5.2
 CException:: 1.3.2

patkan avatar Jun 15 '20 07:06 patkan

After digging a bit deeper, this issue probably can be moved (or just tell me if I should close and reopen) to Unity as this warning is coming from the dependency in colour_prompt.rb.

patkan avatar Jun 15 '20 08:06 patkan

This issue is quite old but I think now relevant: With ceedling 0.31.1 and ruby 3.0.5 the -color report option fails with:

ERROR! "Win32API" library not found
"Win32API" is required for colour on a windows machine
  try => "gem install Win32API" on the command line

Apperently there is no Win32API any more (I'm new to ruby):

>gem install Win32API
ERROR:  Could not find a valid gem 'Win32API' (>= 0) in any repository

Version information:

>ruby --version 
ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c5) [x64-mingw32]

>ceedling version
>ruby vendor\ceedling\bin\ceedling version
   Ceedling:: 0.31.1
      Unity:: 2.5.4
      CMock:: 2.5.4
 CException:: 1.3.3

ForestRupicolous avatar Feb 10 '23 12:02 ForestRupicolous

Same here, any fix for that ?

betatestsm2020 avatar May 28 '23 15:05 betatestsm2020