Recipe Compile Error - Chef::Exceptions::AttributeNotFound - could not find filename for attribute .default.rb.swp in cookbook apache

Hi All,

================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/apache/attributes/.default.rb.swp
================================================================================

Chef::Exceptions::AttributeNotFound
-----------------------------------
could not find filename for attribute .default.rb.swp in cookbook apache

chef --version

Chef Development Kit Version: 2.0.28
chef-client version: 13.2.20
delivery version: master (17c1b0fed9be4c70f69091a6d21a4cbf0df60a23)
berks version: 6.2.0
kitchen version: 1.16.0
inspec version: 1.31.1

*** Initially there is no attributes folder and default.rb file unlike earlier chef versions, I have created attributes directory in cookbook folder and default file in the attributes directory

Any help? Thanks a ton in advance!

You’re using vim and didn’t save file before converge. Save all files, make
sure there are no garbage in cookbook.