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

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

Closed
ethanwhite opened this issue May 4, 2017 · 12 comments
Closed

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

ethanwhite opened this issue May 4, 2017 · 12 comments

Comments

@ethanwhite
Copy link

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
Copy link

phcerdan commented May 4, 2017

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

@blahah
Copy link
Member

blahah commented May 4, 2017

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
Copy link

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

@phcerdan
Copy link

phcerdan commented May 4, 2017

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
Copy link
Author

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

Same for me.

@rgieseke
Copy link

rgieseke commented May 4, 2017

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
Copy link
Member

blahah commented May 4, 2017

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
Copy link
Member

blahah commented May 4, 2017

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

@blahah
Copy link
Member

blahah commented May 4, 2017

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
Copy link
Member

blahah commented May 4, 2017

can anyone confirm whether this issue is resolved in beta4?

@phcerdan
Copy link

phcerdan commented May 4, 2017

Working from current master in Arch. Thanks!

@blahah
Copy link
Member

blahah commented May 4, 2017

w00p, thanks @phcerdan

@blahah blahah closed this as completed May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants