{"action":"created","issue":{"url":"https://api.github.com/repos/paulfitz/haxe/issues/4","labels_url":"https://api.github.com/repos/paulfitz/haxe/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/paulfitz/haxe/issues/4/comments","events_url":"https://api.github.com/repos/paulfitz/haxe/issues/4/events","html_url":"https://github.com/paulfitz/haxe/issues/4","id":97516392,"number":4,"title":"haxe_me breaks selection of sub-Arrays using a Range object","user":{"login":"downslope7","id":8965978,"avatar_url":"https://avatars.githubusercontent.com/u/8965978?v=3","gravatar_id":"","url":"https://api.github.com/users/downslope7","html_url":"https://github.com/downslope7","followers_url":"https://api.github.com/users/downslope7/followers","following_url":"https://api.github.com/users/downslope7/following{/other_user}","gists_url":"https://api.github.com/users/downslope7/gists{/gist_id}","starred_url":"https://api.github.com/users/downslope7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/downslope7/subscriptions","organizations_url":"https://api.github.com/users/downslope7/orgs","repos_url":"https://api.github.com/users/downslope7/repos","events_url":"https://api.github.com/users/downslope7/events{/privacy}","received_events_url":"https://api.github.com/users/downslope7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-27T17:42:39Z","updated_at":"2016-01-04T14:38:34Z","closed_at":null,"body":"The code [here](https://github.com/paulfitz/haxe/blob/ruby5/genrb.ml#L1623-L1627) breaks accessing Ruby arrays with a Range object. The ruby-doc entry for the methods of accessing the elements of an array is [here](http://ruby-doc.org/core-2.2.0/Array.html#class-Array-label-Accessing+Elements). \r\n\r\nUnfortunately this breaks daff for me so I can't update from 1.1.19 (which is broken for me when highlighting a diff that is showing reordered elements).\r\n\r\nStack trace from trying to run `binding.pry` in one of our production apps: \r\n\r\n```\r\n/usr/local/var/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/daff-1.2.6/lib/daff.rb:22:in `method': 0..-1 is not a symbol nor a string (TypeError)\r\n\tfrom /usr/local/var/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/daff-1.2.6/lib/daff.rb:22:in `block in haxe_me'\r\n\tfrom /usr/local/var/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/pry-0.10.1/lib/pry/pry_instance.rb:468:in `block in exec_hook'\r\n\tfrom /usr/local/var/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/pry-0.10.1/lib/pry/pry_instance.rb:467:in `tap'\r\n\tfrom /usr/local/var/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/pry-0.10.1/lib/pry/pry_instance.rb:467:in `exec_hook'\r\n\tfrom /usr/local/var/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/pry-0.10.1/lib/pry/pry_instance.rb:81:in `initialize'\r\n\tfrom /usr/local/var/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/pry-0.10.1/lib/pry/repl.rb:15:in `new'\r\n\tfrom /usr/local/var/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/pry-0.10.1/lib/pry/repl.rb:15:in `start'\r\n\tfrom /usr/local/var/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/pry-0.10.1/lib/pry/pry_class.rb:169:in `start'\r\n\tfrom /usr/local/var/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/pry-0.10.1/lib/pry/core_extensions.rb:45:in `pry'\r\n\tfrom rock.rb:127:in `<main>'\r\n```"},"comment":{"url":"https://api.github.com/repos/paulfitz/haxe/issues/comments/168693788","html_url":"https://github.com/paulfitz/haxe/issues/4#issuecomment-168693788","issue_url":"https://api.github.com/repos/paulfitz/haxe/issues/4","id":168693788,"user":{"login":"paulfitz","id":118367,"avatar_url":"https://avatars.githubusercontent.com/u/118367?v=3","gravatar_id":"","url":"https://api.github.com/users/paulfitz","html_url":"https://github.com/paulfitz","followers_url":"https://api.github.com/users/paulfitz/followers","following_url":"https://api.github.com/users/paulfitz/following{/other_user}","gists_url":"https://api.github.com/users/paulfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/paulfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulfitz/subscriptions","organizations_url":"https://api.github.com/users/paulfitz/orgs","repos_url":"https://api.github.com/users/paulfitz/repos","events_url":"https://api.github.com/users/paulfitz/events{/privacy}","received_events_url":"https://api.github.com/users/paulfitz/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T14:38:34Z","updated_at":"2016-01-04T14:38:34Z","body":"Good point. I'll revert the 'haxing' of Array since it is currently doing more harm than good. Sorry for breakage."}}