Coder Social home page Coder Social logo

Comments (6)

makarono avatar makarono commented on June 29, 2024 1

@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.

RamiAwar avatar RamiAwar commented on June 29, 2024

Thanks for reporting this, also experience it locally

from pet.

RamiAwar avatar RamiAwar commented on June 29, 2024

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.

RamiAwar avatar RamiAwar commented on June 29, 2024

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.

RamiAwar avatar RamiAwar commented on June 29, 2024

Okay try out 0.8.4 and let me know. It should be on brew.

brew update then brew upgrade pet

from pet.

RamiAwar avatar RamiAwar commented on June 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.