Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 2.7 warning: __FILE__ in eval #952

Open
ryenski opened this issue Feb 21, 2020 · 3 comments
Open

Ruby 2.7 warning: __FILE__ in eval #952

ryenski opened this issue Feb 21, 2020 · 3 comments

Comments

@ryenski
Copy link

ryenski commented Feb 21, 2020

See related issues deivid-rodriguez/pry-byebug#221 pry/pry#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 instead

Pry 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

@lastobelus
Copy link

lastobelus commented Feb 26, 2020

Specifying pry directly works for me (gem "pry", github: 'pry/pry') but when you use pry from github master, guard will break due to changes in Pry.config.history -- see #953

@olleolleolle
Copy link
Contributor

@crispinheneise @lastobelus 👋 It seems that since last update here, there's been a pry release 0.14.1 - does that work?

@rymai
Copy link
Member

rymai commented May 20, 2022

Guard 2.18.0 (#975) now depends on Pry >= 0.13.0, does that solve the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants