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

JRuby raises 'syntax error, unexpected kDO_BLOCK' where MRI does not #4663

eprothro opened this issue Jun 9, 2017 · 1 comment


Copy link

eprothro commented Jun 9, 2017

Experienced in, reproduced in as well.

SyntaxError: /Users/eprothro/.rbenv/versions/jruby- syntax error, unexpected kDO_BLOCK
        perform_async(method, *args).tap do |id|

  org/jruby/ `require'

Patch showing workaround with different block syntax:


Copy link

enebo commented Jun 12, 2017

Reduced to:

foo ->() do
  bar.gar do |id|

So stabby needs to be an argument for this to fail AND gar needs to be a call and not an fcall.

@enebo enebo added the parser label Jun 12, 2017
@enebo enebo added this to the JRuby milestone Jun 12, 2017
@enebo enebo closed this as completed in 577c7a5 Jun 12, 2017
enebo added a commit that referenced this issue Jun 12, 2017
…rror, unexpected kDO_BLOCK' where MRI does not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants