All original content is created in Ukrainian. Not all content has been translated yet. Some posts may only be available in Ukrainian.Learn more

Fix 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 that 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.

This post doesn't have any additions from the author yet.

What is PORO in Ruby?
08 Dec 12:46

What is PORO in Ruby?

meme code
meme code@memecode
What is the difference between spec_helper.rb and rails_helper.rb in RSpec?
08 Dec 13:53

What is the difference between spec_helper.rb and rails_helper.rb in RSpec?

meme code
meme code@memecode
09 Dec 14:50

[Fix] No such file or directory @ rb_sysopen - tmp/pids/server.pid

meme code
meme code@memecode
What you need to know to build a successful freelance career in IT
23 Dec 16:03

What you need to know to build a successful freelance career in IT

meme code
meme code@memecode
Virtual cloud server: what it is and what makes it special
03 Jan 10:58

Virtual cloud server: what it is and what makes it special

meme code
meme code@memecode
[Fix] Heroku / SearchBox addon - indexing error "The client is unable to verify that the server is Elasticsearch"
31 Jan 13:09

[Fix] Heroku / SearchBox addon - indexing error "The client is unable to verify that the server is Elasticsearch"

meme code
meme code@memecode
What is a Promise in JavaScript and how to quickly understand its essence?
18 Feb 11:01

What is a Promise in JavaScript and how to quickly understand its essence?

meme code
meme code@memecode
The structure of Promise (JavaScript) and how to work with it
18 Feb 14:33

The structure of Promise (JavaScript) and how to work with it

meme code
meme code@memecode
What is Memoization (examples in Ruby and Ruby on Rails)?
20 Feb 18:16

What is Memoization (examples in Ruby and Ruby on Rails)?

meme code
meme code@memecode
What is debounce in JavaScript and why is it important?
21 Mar 16:39

What is debounce in JavaScript and why is it important?

meme code
meme code@memecode
What is CFB (Cipher Feedback)?
21 Mar 16:53

What is CFB (Cipher Feedback)?

meme code
meme code@memecode
What is XOR and how does it work?
21 Mar 17:05

What is XOR and how does it work?

meme code
meme code@memecode