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

Error the first time it's ran #40

Closed
hotice opened this issue Apr 4, 2017 · 2 comments
Closed

Error the first time it's ran #40

hotice opened this issue Apr 4, 2017 · 2 comments

Comments

@hotice
Copy link

hotice commented Apr 4, 2017

Using PB For Desktop 5.0.0 in Ubuntu 16.10 (64bit), the application displays an error the first time it's ran:

A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Cannot read property 'split' of undefined
    at cmp (/opt/PB for Desktop/resources/app.asar/node_modules/semver-compare/index.js:3:15)
    at bumpInternalVersion (/opt/PB for Desktop/resources/app.asar/app/scripts/main/services/updater-service.js:185:96)
    at init (/opt/PB for Desktop/resources/app.asar/app/scripts/main/services/updater-service.js:244:5)
    at App.app.once (/opt/PB for Desktop/resources/app.asar/app/scripts/main/services/updater-service.js:254:5)
    at Object.onceWrapper (events.js:290:19)
    at emitTwo (events.js:111:20)
    at App.emit (events.js:191:7)

It appears this is because the ~/.config/PB for Desktop/Settings file doesn't exist initially. Here's the console output:

$ pb-for-desktop 
A JavaScript error occurred in the main process
Uncaught Exception:
Error: ENOENT: no such file or directory, open '/home/andrei/.config/PB for Desktop/Settings'
    at Object.fs.openSync (fs.js:558:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Object.fs.writeFileSync (fs.js:1233:33)
    at Object.writeFileSync (/opt/PB for Desktop/resources/app.asar/node_modules/jsonfile/index.js:115:13)
    at Settings._ensureSettings (/opt/PB for Desktop/resources/app.asar/node_modules/electron-settings/lib/settings.js:132:12)
    at Settings._readSettings (/opt/PB for Desktop/resources/app.asar/node_modules/electron-settings/lib/settings.js:171:10)
    at Settings._getValueAtKeyPath (/opt/PB for Desktop/resources/app.asar/node_modules/electron-settings/lib/settings.js:259:22)
    at Settings.getAll (/opt/PB for Desktop/resources/app.asar/node_modules/electron-settings/lib/settings.js:385:17)
    at setConfigurationDefaults (/opt/PB for Desktop/resources/app.asar/app/scripts/main/managers/configuration-manager.js:488:42)
    at App.app.once (/opt/PB for Desktop/resources/app.asar/app/scripts/main/managers/configuration-manager.js:552:5)
@sidneys
Copy link
Owner

sidneys commented Apr 5, 2017

@hotice Thanks. Please test with v5.0.3..

@hotice
Copy link
Author

hotice commented Apr 5, 2017

The issue no longer occurs, thanks!

@hotice hotice closed this as completed Apr 5, 2017
@sidneys sidneys removed their assignment Aug 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants