Closed joshuadanpeterson closed 4 months ago
How did u install pieces-cli??
With Homebrew
Homebrew is using the old version of the cli agent and it does not work so you can use this github until we ship it
Got it. Thanks, that makes sense now.
How do I use the GitHub version? Just clone the repo?
Do you have python??
Yes, of course, isn't that what this cli is coded with?
Perfect!
You can also check the releases but it is a bit outdated too that is the recommended way for now until we update everything
Uninstalled the homebrew version, cloned the repo and ran the install, and now I'm getting this error:
Traceback (most recent call last): File "/Users/joshpeterson/.pyenv/versions/3.11.4/bin/pieces", line 5, in <module> from pieces.app import main File "/Users/joshpeterson/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pieces/app.py", line 2, in <module> from pieces.commands import * File "/Users/joshpeterson/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pieces/commands/__init__.py", line 7, in <module> from .assets import (update_asset_value, File "/Users/joshpeterson/.pyenv/versions/3.11.4/lib/python3.11/site-packages/pieces/commands/assets.py", line 85 file_path = os.path.join(open_snippet_dir , f"{commands_functions.sanitize_filename(asset["name"])}{commands_functions.get_file_extension(asset["language"])}") ^^^^ SyntaxError: f-string: unmatched '['
Interesting so basically because I use python 3.12 that's why I did not see this error it is a small fix I will create a PR to solve that issue.
Cool, thank you
Yup merged
Cool thank you. It works. Now it's just slow to execute lol
Use pieces run
Cool thank you. It works. Now it's just slow to execute lol
how many Pieces do you have saved?
very well could be some performance issues, that we can take a look into @BishoyHanyRaafat
lemme know if you want to an eval on performance with myself and @caleb-at-pieces
Okay next task is to make the cli agent to run faster plus I wanted to handle the errors better
Cool thank you. It works. Now it's just slow to execute lol
how many Pieces do you have saved?
Currently, 201
Cool thank you. It works. Now it's just slow to execute lol
how many Pieces do you have saved?
Currently, 201
Currently we are working on make the list command much much fast no worries when the update comes I will mention you
@BishoyHanyRaafat Cool, thank you
@joshuadanpeterson let me know how it is now.
It is a bit slow but it is much much faster
And I recommend using the run command
The project is now on pypi pip install pieces-cli
@joshuadanpeterson let me know how it is now. It is a bit slow but it is much much faster And I recommend using the run command The project is now on pypi
pip install pieces-cli
Cool, thank you @Bishoy-at-pieces. It's much much faster
Next release it will be faster by 2 more sec most probably
You mind closing that issue?
Closing
When I try to run any command or subcommand I get this error
` Unhandled exception: Null check operator used on a null value
0 Application.fromJson (package:runtime_common_library/model/application.dart:111)
1 Format.fromJson (package:runtime_common_library/model/format.dart:281)
2 Format.listFromJson (package:runtime_common_library/model/format.dart:304)
3 AssetFormats.fromJson (package:runtime_common_library/model/asset_formats.dart:83)
4 Asset.fromJson (package:runtime_common_library/model/asset.dart:305)
5 Asset.listFromJson (package:runtime_common_library/model/asset.dart:326)
6 Assets.fromJson (package:runtime_common_library/model/assets.dart:76)
7 Cacher.cache (package:pieces_cli/src/util/cacher.dart:86)