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

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

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

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?

What is PORO (Plain Old Ruby Object) in Ruby, how to use it to write understandable code. Why POR...

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

What is CFB (Cipher Feedback)?

CFB (Cipher Feedback) is an encryption mode where each block depends on the previous one, providi...

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 logical operation used in encryption, bit manipulation, and difference ch...