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.6 warning (__FILE__ in eval) #221

Closed
semaperepelitsa opened this issue Apr 2, 2019 · 1 comment · Fixed by #246
Closed

Ruby 2.6 warning (__FILE__ in eval) #221

semaperepelitsa opened this issue Apr 2, 2019 · 1 comment · Fixed by #246

Comments

@semaperepelitsa
Copy link

See related issue in Pry: pry/pry#1871, pry/pry#1904 (not released yet)

When running Ruby 2.6 in verbose mode, it shows this warning:

env RUBYOPT="-w" bundle exec pry 
<main>:1: warning: __FILE__ in eval may not return location in binding; use Binding#source_location instead
[1] pry(main)> 
gem "pry", git: "https://github.com/pry/pry", ref: "69f7d9d185726abc4a84b3731f1735f501a81266"
gem "pry-byebug", "3.7.0"

If I remove pry-byebug gem, the warning disappears.

Culprits:

https://github.com/deivid-rodriguez/pry-byebug/blob/master/lib/pry-byebug/base.rb#L16

https://github.com/deivid-rodriguez/pry-byebug/blob/master/lib/pry-byebug/helpers/breakpoints.rb#L23

(BTW, running "pry" from master completely breaks with pry-byebug, but that's a separate issue.)

@whois-marvin-42
Copy link
Contributor

whois-marvin-42 commented Dec 31, 2019

Made PR #246, hope it helps to solve this one.

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

Successfully merging a pull request may close this issue.

2 participants