← homeProgramming (Програмування)

Fix the error [DEPRECATION] #adapters is deprecated. Use #profiles instead. (Codecov / docile)

Recently encountered an error in Codecov, which was actually a false alert. It only appeared on the Codecov side and caused a CI failure after pushing a new file located in the wrong place. /usr/local/bundle/gems/doci...

Table of contentsClick link to navigate to the desired location
This content has been automatically translated from Ukrainian.
Recently encountered an error in Codecov, which was actually a false alert. It only appeared on the Codecov side and caused a CI failure after pushing a new file located in the wrong place.
/usr/local/bundle/gems/docile-1.4.1/lib/docile/fallback_context_proxy.rb:93:in 'Docile::FallbackContextProxy#method_missing': [DEPRECATION] #adapters is deprecated. Use #profiles instead.

Reason

The file was saved at the path:
interactors/bla/lib/hehe.rb
But in the code, the module was declared without matching the path:
module Bla
  class Hehe
The absence of Lib in the namespace caused a conflict.

Fix

The module declaration needs to be aligned with the file structure:
module Bla
  module Lib
    class Hehe
After the fix, Codecov no longer triggered the error. But this is just my case. There are many mentions of this error online, which can be caused by various things that are unfortunately not so easy to debug.

🔥 More posts

All posts
What is PORO in Ruby?
Programming (Програмування)Dec 8, '24 12:46

What is PORO in Ruby?

In Ruby, the term PORO (Plain Old Ruby Object) is often mentioned, but what is it and why is it i...

What is CFB (Cipher Feedback)?
Programming (Програмування)Mar 21, '25 16:53

What is CFB (Cipher Feedback)?

CFB (short for Cipher Feedback) is one of the methods of data encryption that works on the princi...

What is XOR and how does it work?
Programming (Програмування)Mar 21, '25 17:05

What is XOR and how does it work?

XOR (exclusive OR) is a simple yet useful logical operation used in programming, cryptography, an...