Comments (6)
@RamiAwar Thank yo. I had some odd character in my snippets file "�". Newest version of pet works and doesn't overwrites snippets file anymore
from pet.
Thanks for reporting this, also experience it locally
from pet.
Seems like the new toml library encoding doesn't then decode properly for some reason.
-
Just ran a test through a debugger: creating a new snippet gets appended properly.
Listing or searching after that yields no results. -
Creating another new snippet after that overwrites the file completely since it couldn't read the old snippets so it assumed that this new command is the only command. Then it saves a list of snippets made of just this one new command, overwriting everything.
It's a pretty serious issue, so need to resolve asap. Will look into it a bit see if I can fix quickly, if not will revert to old library.
from pet.
Oh just spotted another bug. Man this new library is hard to work with.. hold off on updating until I comment here again.
from pet.
Okay try out 0.8.4 and let me know. It should be on brew.
brew update
then brew upgrade pet
from pet.
Ah nice! Thank you for reporting this so quickly. It was indeed a hidden bug that only surfaced due to the recent update.
from pet.
Related Issues (20)
- canceled
- panic while get gist failed
- Does your pet support Bash functions? HOT 2
- Add categories to group commands HOT 1
- [FeatureRequest] Just output the snipet to command line but not run it HOT 1
- Unable creating new snippet via command
- New maintainers needed HOT 12
- brew fails HOT 6
- Add support for GitHub Enterprise gist sync
- Improve text editing support in parameter inputs
- 200~ and 200~ characters when pasting into Parameter fields
- Parameter order is not maintained
- Find a way to show command instead of pet exec in bash history
- Enhancement for README: Configuration settings to improve pet search layout HOT 1
- Pet search broken
- Bash characters need escaping
- Add delete snippet command
- Improve documentation to push for using pet search
- Add autocompletion for Pet HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pet.