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

0.35.0 Fixes #28

Closed
bararchy opened this issue Jun 10, 2020 · 5 comments · Fixed by #31
Closed

0.35.0 Fixes #28

bararchy opened this issue Jun 10, 2020 · 5 comments · Fixed by #31

Comments

@bararchy
Copy link

Hi :)
with 0.35.0 the following https://github.com/stumpycr/stumpy_png/blob/master/src/stumpy_png/crc_io.cr#L18 should return Int64

Even:

def write(slice : Slice(UInt8)) : Int64
    @crc = CRC32.update(slice, @crc)
    @size += slice.size
    0_i64
  end

will be sufficient to compile

@asterite
Copy link
Contributor

asterite commented Jun 10, 2020

It should be:

  def write(slice : Slice(UInt8)) : Int64
    @crc = CRC32.update(slice, @crc)
    @size += slice.size
    slice.size.to_i64
  end

@bararchy
Copy link
Author

PR ready at: #29 using @asterite's example

@bararchy
Copy link
Author

just note (@l3kn)

@ptcodes
Copy link

ptcodes commented Jun 18, 2020

I'm still having issues with Crystal 0.35.0

Specs also seem to be failing:

crystal spec                                                                                                                                                              ⏎ master ✖ ◼
Warning: Zlib is deprecated, use Compress::Zlib
Showing last frame. Use --error-trace for full trace.

There was a problem expanding macro 'getter'

Code in /usr/local/Cellar/crystal/0.35.0/src/file/error.cr:5:3

 5 | getter file : String
     ^
Called macro defined in macro 'macro_4453862464'

 117 | macro getter(*names, &block)

Which expanded to:

 > 2 |
 > 3 |
 > 4 |             @file : String
                   ^
Error: instance variable '@file' of Exception, with File::Error < Exception, is already declared as (String | Nil) (trying to re-declare as String)

@asterite
Copy link
Contributor

This is a bug in minitest, it reopens Exception and adds file to it. minitest should remove that...

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

Successfully merging a pull request may close this issue.

3 participants