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

Unhandled promise rejection on startup #32

Closed
ecciv opened this issue Nov 25, 2020 · 5 comments
Closed

Unhandled promise rejection on startup #32

ecciv opened this issue Nov 25, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@ecciv
Copy link

ecciv commented Nov 25, 2020

Not sure what's up but each time I open Parsify, I get an error like this, and the input side of the app is replaced by a white box saying "An unexpected error occurred.". Can't get it to run! On 1.4.1 now, this error is new to me.

Unhandled Promise Rejection
TypeError: Cannot read property 'value' of undefined
at IpcMainImpl. (C:/Users/Victor/AppData/Local/Programs/parsify-desktop/resources/app.asar/app/background.js:1:11092)

@xxczaki
Copy link
Member

xxczaki commented Nov 25, 2020

If you care about your configuration, you can modify the preferences.json file inside the Parsify Desktop folder, which is located in %appdata%. Open it with any editor and add a missing property (do not include the + symbols):

{
	"preferences": [
		...
	      {
		  "name": "configuration",
		  "value": ""
+	      },
+             {
+	          "name": "fontSize",
+	          "value": "1rem"
+             }
	],
	...
}

If you don't manage to do it, just sent me this file to my email ([email protected]) and I will do it for you.

In case you don't really care about your configuration, go ahead and just delete the whole Parsify Desktop folder inside %appdata% - the configuration will reset and everything will work fine.


I'm sorry about this inconvenience, but this is an issue with the problematic user configuration storage used in Parsify Desktop. I'm thinking about using a different solution for that in the upcoming release, so that such problems won't occur in the future :)

@xxczaki xxczaki added the bug Something isn't working label Nov 25, 2020
@ecciv
Copy link
Author

ecciv commented Nov 25, 2020

Thanks! I got it to work.

Also I was trying out to see if Parsify will solve equations and the input side crashes when I write solve(-any equation here-). What's up with that?

@xxczaki
Copy link
Member

xxczaki commented Dec 1, 2020

@ecciv Glad to hear that it works 😄 Parsify currently does not support equation solving (for example x + 2 = 3). I would really like to support it, but currently, it would be incredibly hard to implement. But because the math parser in Parsify is based on Math.js, they might implement it at some point, as it seems like a requested feature (see josdejong/mathjs#38 and mentioned issues/PRs).

@xxczaki xxczaki closed this as completed Dec 1, 2020
@joaovicentefs
Copy link

Hi mate @xxczaki i'm prouded user of Parsify.
After update from 1.2.2 to the 1.4.1 version i allways receive a similar message when startup the app. This is the message:

Unhandled Promise Rejection
TypeError: Cannot read property 'value' of undefined
at IpcMainImpl. (/opt/Parsify Desktop/resources/app.asar/app/background.js:1:11092)

Do you know how can i hanndle with this? As an workaround i'm did an downgrade to 1.2.2 version
To give you more information my OS is Ubuntu 20.10

@xxczaki
Copy link
Member

xxczaki commented Dec 24, 2020

The configuration storage was completely refactored in version 1.5.0 and this issue will no longer occur. Please update 😄

https://download.parsify.app

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