Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macOS] "Something went wrong" when exporting #48

Closed
pcastagnaro opened this issue Jul 13, 2019 · 9 comments
Closed

[macOS] "Something went wrong" when exporting #48

pcastagnaro opened this issue Jul 13, 2019 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@pcastagnaro
Copy link

pcastagnaro commented Jul 13, 2019

Operating System: macOS Mojave

Describe the bug
When I create a library and then I try to export them, I get the message "Something went wrong" and the exported file doesn't create.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Arrow Up & Down'
  2. Select the library you want to export
  3. Click on 'Export'
  4. Select a filename
  5. See the error

image

image

Expected behavior
A JSON file created with the Library data

@ehrishirajsharma ehrishirajsharma added the bug Something isn't working label Jul 14, 2019
@ehrishirajsharma ehrishirajsharma self-assigned this Jul 14, 2019
@ehrishirajsharma
Copy link
Owner

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?

@pcastagnaro
Copy link
Author

pcastagnaro commented Jul 14, 2019 via email

@ehrishirajsharma
Copy link
Owner

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)

@pcastagnaro
Copy link
Author

pcastagnaro commented Jul 14, 2019 via email

@mpgn
Copy link

mpgn commented Jul 18, 2019

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);
});

@ehrishirajsharma
Copy link
Owner

Thanks @mpgn!

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

@pcastagnaro
Copy link
Author

Hi @ehrishirajsharma,

Could you release the v0.3 version?

@ehrishirajsharma
Copy link
Owner

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.

@pcastagnaro
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants