{"action":"opened","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/4067","repository_url":"https://api.github.com/repos/jruby/jruby","labels_url":"https://api.github.com/repos/jruby/jruby/issues/4067/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/4067/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/4067/events","html_url":"https://github.com/jruby/jruby/issues/4067","id":170799753,"number":4067,"title":"Trouble with instance_eval when using embedded API","user":{"login":"chadselph","id":315988,"avatar_url":"https://avatars.githubusercontent.com/u/315988?v=3","gravatar_id":"","url":"https://api.github.com/users/chadselph","html_url":"https://github.com/chadselph","followers_url":"https://api.github.com/users/chadselph/followers","following_url":"https://api.github.com/users/chadselph/following{/other_user}","gists_url":"https://api.github.com/users/chadselph/gists{/gist_id}","starred_url":"https://api.github.com/users/chadselph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadselph/subscriptions","organizations_url":"https://api.github.com/users/chadselph/orgs","repos_url":"https://api.github.com/users/chadselph/repos","events_url":"https://api.github.com/users/chadselph/events{/privacy}","received_events_url":"https://api.github.com/users/chadselph/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-12T05:07:46Z","updated_at":"2016-08-12T05:07:46Z","closed_at":null,"body":"First, I want to explain I am not a ruby programmer, so I probably haven't debugged this as well as I could have. I'm writing an application on the JVM that takes as its input some files from an existing ruby DSL. Basically, it makes use of `instance_eval` and the files it evals occasionally eval other files. I can't seem to get this to work from the embedded API.\r\n\r\n### Environment\r\n\r\nProvide at least:\r\n* JRuby version (`jruby -v`) and command line (flags, JRUBY_OPTS, etc)\r\norg.jruby:jruby-complete:9.1.2.0\r\n* Operating system and platform (e.g. `uname -a`)\r\n14.5.0 Darwin Kernel Version 14.5.\r\n\r\n### Expected Behavior\r\n\r\nI expect that running `::Kernel.eval` from within a block of `instance_eval` will put the symbols in scope.\r\n\r\n### Actual Behavior\r\n\r\nCode gets evaled, (confirmed with `::Kernel.puts` but symbols are not in scope.\r\n\r\nI have a minimized example here, with the error and the behavior in standard ruby:\r\n\r\nhttps://gist.github.com/chadselph/0be497f37b16f1b01009836686e3875c\r\n\r\nThanks for you time!"}}
{"actor":{"display_login":"chadselph"}}