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.5 Instrumented Code outside of methods in a class #812

Closed
ryanatball opened this issue Jun 21, 2018 · 0 comments
Closed

Ruby 2.5 Instrumented Code outside of methods in a class #812

ryanatball opened this issue Jun 21, 2018 · 0 comments
Labels
bug
Milestone

Comments

@ryanatball
Copy link
Member

@ryanatball ryanatball commented Jun 21, 2018

The following fails on line 2 in ScriptRunner with Ruby 2.5 because of the return in the instrumented code. Either stop allowing injecting returns with the debugger or update the instrumenter to not instrument these lines.

class Foo
  C = 1
  def mymethod
  end
end

puts Foo::C
@ryanatball ryanatball added the bug label Jun 21, 2018
@ryanatball ryanatball changed the title Ruby 2.5 Instrumented Code instrumented code outside of methods in a class Ruby 2.5 Instrumented Code outside of methods in a class Jun 21, 2018
@ryanatball ryanatball added this to the v4.3.0 milestone Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant