sciencefair-land / sciencefair

The futuristic, fabulous and free desktop app for working with scientific literature :microscope: :book:
https://sciencefair-app.com
MIT License
604 stars 52 forks source link

beta3 .deb Ubuntu install just yields an empty window #58

Closed ethanwhite closed 7 years ago

ethanwhite commented 7 years ago

Very exciting project. I'm really looking forward to using it.

When I install 1.0.0-beta3 on Ubuntu 16.04 using the deb the install appears to run fine, but when I launch the application I just get an empty gray window:

screenshot from 2017-05-03 21-23-44

phcerdan commented 7 years ago

same empty screen installing the dev version in archlinux. Looking forward to trying it!

blahah commented 7 years ago

Hmm sorry about that @ethanwhite and @phcerdan. I don't have a linux machine to hand right now - could you try right-clicking in the middle of the screen to see if it gives you an 'inspect element' option? If so, you should be able to access the browser console and see any errors. If you could copy-paste them that would be super helpful.

If the above isn't possible I'll find a linux box later this evening to get it sorted. Many thanks.

HeidiSeibold commented 7 years ago

Right-clicking in the middle does not do anything, unfortunately.

phcerdan commented 7 years ago

After inspect element in the empty colored screen:

module.js:472 Uncaught Error: Cannot find module './lib/contentserver'
    at Module._resolveFilename (module.js:470)
    at Function.Module._resolveFilename (/home/phc/repository_local/sciencefair/node_modules/electron/dist/resources/electron.asar/common/re…:35)
    at Function.Module._load (module.js:418)
    at Module.require (module.js:498)
    at require (internal/module.js:20)
    at index.js:2
ethanwhite commented 7 years ago

Right-clicking in the middle does not do anything, unfortunately.

Same for me.

rgieseke commented 7 years ago

After editing /opt/ScienceFair/resources/app/index.js (with sudo) and adding

  main.webContents.openDevTools()

I get the same error message. Right-clicking didn't work for me either.

blahah commented 7 years ago

Thanks all, the issue is to do with case-sensitivity of require being different between linux/macos. I'm pushing out a fix now. I also discovered why the devtools aren't working - they'll be enabled in the next beta.

blahah commented 7 years ago

Also, to fix locally you can rename ScienceFair/resources/app/client/lib/contentServer.js to ScienceFair/resources/app/client/lib/contentserver.js 🙄

blahah commented 7 years ago

Should be fixed in beta4, currently building on the CI servers: https://github.com/codeforscience/sciencefair/releases/tag/v1.0.0-beta4. Once the builds are ready they will automatically be added as downloads to that release :)

blahah commented 7 years ago

can anyone confirm whether this issue is resolved in beta4?

phcerdan commented 7 years ago

Working from current master in Arch. Thanks!

blahah commented 7 years ago

w00p, thanks @phcerdan