Ruby 2.7 warning: __FILE__ in eval
Author: ryenskiCreated Feb 21, 2020Updated May 20, 2022
See related issues https://github.com/deivid-rodriguez/pry-byebug/issues/221 https://github.com/pry/pry/issues/1871
When running Guard on Ruby 2.7, it shows this warning:
<main>:1: warning: __FILE__ in eval may not return location in binding; use Binding#source_location insteadPry unfortunately hasn't had a release in a long time, but this has been fixed in pry master.
Specifying pry directly has no effect because Guard adds Pry as a runtime dependency https://github.com/guard/guard/blob/master/guard.gemspec#L25
Source: guard/guard