pieces-app / cli-agent

Pieces CLI for interacting with Pieces OS
https://docs.pieces.app/extensions-plugins/cli
MIT License
46 stars 15 forks source link

Unhandled exception on almost all operations on MacOS #95

Closed furious-cat closed 1 week ago

furious-cat commented 3 months ago

Using v 1.1.0 from brew cask on Sonoma.

All operations except version and create result in:

> pieces list models
Unhandled exception:
Null check operator used on a null value
#0      AssetFormats.fromJson (package:runtime_common_library/model/asset_formats.dart:84)
#1      Asset.fromJson (package:runtime_common_library/model/asset.dart:305)
#2      Asset.listFromJson (package:runtime_common_library/model/asset.dart:326)
#3      Assets.fromJson (package:runtime_common_library/model/assets.dart:76)
#4      Cacher.cache (package:pieces_cli/src/util/cacher.dart:86)
<asynchronous suspension>
#5      _initChecks (file:///Users/runner/work/pieces-cli/pieces-cli/bin/main.dart:109)
<asynchronous suspension>
#6      main (file:///Users/runner/work/pieces-cli/pieces-cli/bin/main.dart:27)
<asynchronous suspension>
Bishoy-at-pieces commented 3 months ago

That is a very old version on homebrew which is not working We are deploying the current version and everything should work

TheUdK commented 3 months ago

Issue still present. Homebrew version still 1.1.0

Bishoy-at-pieces commented 3 months ago

Not ready on homebrew it is ready on pip

Bishoy-at-pieces commented 3 months ago

We can open this issue until it is updated on homebrew You can do pip install pieces-cli for now

Bishoy-at-pieces commented 3 months ago

Note still under development if any issue please report it thank you

Bishoy-at-pieces commented 1 week ago

Should be deployed on brew in few hours