Giter VIP home page Giter VIP logo

Comments (9)

mpgn avatar mpgn commented on August 12, 2024 5

Ok guys, I locate the problem, it's linked to this call:

fs.writeFile(fileName, JSON.stringify(this.state));

fs.writeFile need a callback as a third parameter. You can use this dirty fix to solve the issue:

fs.writeFile(fileName, JSON.stringify(this.state), function (err, result) {
       if (err) console.log('error', err);
});

from swiftnessx.

ehrishirajsharma avatar ehrishirajsharma commented on August 12, 2024 2

Thanks @mpgn!

I am pushing this hot-fix for now, will look into the problem with v0.3 release.

from swiftnessx.

ehrishirajsharma avatar ehrishirajsharma commented on August 12, 2024 1

Thanks @pcastagnaro for reporting this. I was able to reproduce this in Mojave 10.14.1 but not in latest version of Mojave 10.14.5, it was working as expected.

Can you also let me know your version?

from swiftnessx.

pcastagnaro avatar pcastagnaro commented on August 12, 2024

from swiftnessx.

ehrishirajsharma avatar ehrishirajsharma commented on August 12, 2024

Don't worry, you won't loose any data (because app points a single storage file). Just keep the app open till I find a fix for this.

In meantime you can go and save a copy of master file:

/Users/<username>/Library/Application Support/Swiftness/storage

(you should see a content.json)

from swiftnessx.

pcastagnaro avatar pcastagnaro commented on August 12, 2024

from swiftnessx.

pcastagnaro avatar pcastagnaro commented on August 12, 2024

Hi @ehrishirajsharma,

Could you release the v0.3 version?

from swiftnessx.

ehrishirajsharma avatar ehrishirajsharma commented on August 12, 2024

Hi @pcastagnaro,

v0.3 is almost ready, we are aiming to release it within this month. We were a bit inactive last month.

In meantime, please check the latest release to fix this issue: https://github.com/ehrishirajsharma/SwiftnessX/releases/tag/v0.2.3

Please let me know if this fixes the current issue.

from swiftnessx.

pcastagnaro avatar pcastagnaro commented on August 12, 2024

Thanks a lot @ehrishirajsharma!!
It works perfect!!

from swiftnessx.

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.