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

SyntaxError in dry-types 1.8.1 during require #478

Closed
dmlary opened this issue Jan 21, 2025 · 3 comments
Closed

SyntaxError in dry-types 1.8.1 during require #478

dmlary opened this issue Jan 21, 2025 · 3 comments

Comments

@dmlary
Copy link

dmlary commented Jan 21, 2025

Describe the bug

dry-types 1.8.1 raises an exception when required. 1.8.0 worked fine.

[1] pry(main)> require 'dry-types'
SyntaxError:
/home/dmlary/.gem/ruby/3.3.0/gems/dry-types-1.8.1/lib/dry/types/sum.rb:33: anonymous block parameter is also used within block (SyntaxError)
from /home/dmlary/.rbenv/versions/3.3.0/lib/ruby/3.3.0/bundled_gems.rb:74:in `require'

To Reproduce

require 'dry-types`

Expected behavior

Not raise an exception

My environment

  • Affects my production application: NO
  • Ruby version: 3.3.0
  • OS: Linux
@flash-gordon
Copy link
Member

Hi, it's a bug in Ruby 3.3.0. Please upgrade to 3.3.1 at least.

@martinstreicher
Copy link

Is there a workaround if an upgrade (on our system) to 3.3.1 or later is not going to happen in the immediate term?

@flash-gordon
Copy link
Member

@martinstreicher I pushed 1.8.2 with 3.3.0-compatible syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants