instantiations / es_compression

Compression framework for Dart providing FFI implementations for Brotli, Lz4, Zstd (Zstandard) with ready-to-use prebuilt binaries for Win/Linux/Mac.
https://www.instantiations.com
BSD 3-Clause "New" or "Revised" License
41 stars 8 forks source link

type 'Null' is not a subtype of type 'String' in type cast (version 2.0.9) #40

Closed chan150 closed 1 year ago

chan150 commented 1 year ago

Command: $ escompress -i"input.txt" -o"output.lz4"

Error message:

type 'Null' is not a subtype of type 'String' in type cast
#0      main (file:///home/xxx/.pub-cache/hosted/pub.dev/es_compression-2.0.9/bin/es_compress.dart:57:40)
#1      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:33)
#2      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:26)

Env: Tested on both Windows 10 and Ubuntu Dart SDK version: 2.19.2 (stable) (Unknown timestamp) on "linux_x64" es_compression-2.0.9

sethloco commented 1 year ago

Thank you for reporting. Was able to reproduce and will fix shortly

sethloco commented 1 year ago

Pushed 2.0.10 to pub.dev. Please try again and let me know if everything work for you.

chan150 commented 1 year ago

@sethloco It works for me. Thanks!