Error after update to Ceedling 0.31.1

729 views
Skip to first unread message

Sean Brown

unread,
Nov 1, 2021, 8:12:23 AM11/1/21
to ThrowTheSwitch Forums
Hello,

I updated my gem to ceedling 0.31.1 and have run into a whole host of issues.

More specifically, I ran the "gem clean" and then "gem update" command and now I am not getting anything sensible from running ceedling at all.

This is the most prominent error:

C:/Ruby27-x64/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ceedling-0.31.1/vendor/cmock/lib/cmock_generator_plugin_xml_tests_report.rb (LoadError)

As far as I can tell, that file doesn't exist anywhere. Am I missing something?

Sean

Sean Brown

unread,
Nov 1, 2021, 9:10:23 AM11/1/21
to ThrowTheSwitch Forums
Ah. I have found issue.

xml_tests_report should not be added to the cmock: plugins: section.

<head slap emoji>

Sean Brown

unread,
Nov 1, 2021, 10:20:10 AM11/1/21
to ThrowTheSwitch Forums
The final error...

{code before}
:defines:
  :common: &common_defines
    - ewarm
    - UNITY_TEST
  :test:
    - *common_defines
  :test_preprocess:
    - *common_defines
{code before}

{error}
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/psych-4.0.2/lib/psych/visitors/to_ruby.rb:430:in `visit_Psych_Nodes_Alias': Unknown alias: common_defines (Psych::BadAlias)
{error}

commenting out the call to the Node Anchor, "*common_defines" clears the error, but obviously requires all the defines to be repeated.

{code after}
:defines:
  :common: &common_defines
    - ewarm
    - UNITY_TEST
  :test:
#    - *common_defines
    - ewarm
    - UNITY_TEST
  :test_preprocess:
#    - *common_defines
    - ewarm
    - UNITY_TEST
{code after}


This happens in all my projects.

It feels like something at a low level was changed, but I can't put my finger on it.

Sean

Søren Kruse Pedersen

unread,
Feb 4, 2022, 3:26:09 PM2/4/22
to ThrowTheSwitch Forums
I also see the issue with "Unknown alias: common_defines (Psych::BadAlias)"

I have just installed latest MSYS2(fully updated with command -Syuu) & ruby, and installed ceedling through gem.
Since I'm new to ceedling I created the temp_sensor example project. The project creation seems to be ok, but I can't do test:all without getting this error.

Søren Kruse Pedersen

unread,
Feb 5, 2022, 8:52:25 AM2/5/22
to ThrowTheSwitch Forums
Ok, if I install ruby 2.7.5 instead of lateset I can create and run the temp_sensor example.
Reply all
Reply to author
Forward
0 new messages