sveltejs / sapper-studio

An electron app for building Sapper projects
Other
220 stars 25 forks source link

Does not start on Linux #39

Open hexagon6 opened 5 years ago

hexagon6 commented 5 years ago

Building works, but warns on build.

When starting, just quietly exits with error code 0, but no window shows up.

Environment: i3 on ubuntu 19.04.

Might this be an issue with electron itself? I would at least expect an error thrown.

USER@laptop:~/projects/sapper-studio$ nvm use 10
Now using node v10.15.3 (npm v6.4.1)
USER@laptop:~/projects/sapper-studio$ yarn
yarn install v1.9.4
[1/4] Resolving packages...
[2/4] Fetching packages...
[-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0/515(node:9956) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
info 7zip-bin-mac@1.0.1: The platform "linux" is incompatible with this module.
info "7zip-bin-mac@1.0.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info 7zip-bin-win@2.2.0: The platform "linux" is incompatible with this module.
info "7zip-bin-win@2.2.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info app-builder-bin-mac@1.8.6: The platform "linux" is incompatible with this module.
info "app-builder-bin-mac@1.8.6" is an optional dependency and failed compatibility check. Excluding it from installation.
info app-builder-bin-win@1.8.6: The platform "linux" is incompatible with this module.
info "app-builder-bin-win@1.8.6" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ electron-builder install-app-deps
  • electron-builder version=20.13.4
  • rebuilding native production dependencies platform=linux arch=x64
  • rebuilding native dependency name=node-pty
Done in 6.46s.
USER@laptop:~/projects/sapper-studio$ yarn build
yarn run v1.9.4
$ rollup -c

src/main.ts, src/launcher.ts, src/project.ts → dist...
(!) `this` has been rewritten to `undefined`
https://github.com/rollup/rollup/wiki/Troubleshooting#this-is-undefined
src/main.ts
107:         buttonLabel: 'Create project',
108:         properties: ['openDirectory', 'createDirectory'],
109:     }, (filenames) => tslib_1.__awaiter(this, void 0, void 0, function* () {
                                             ^
110:         if (!filenames)
111:             return;
...and 1 other occurrence
created dist in 1.1s
Done in 1.58s.
USER@laptop:~/projects/sapper-studio$ yarn start
yarn run v1.9.4
$ cross-env NODE_ENV=development electron .
Done in 0.28s.
USER@laptop:~/projects/sapper-studio$ echo $?
0
3demax commented 4 years ago

Can confirm, same problem: not starting on Linux for no obvious reason.

3demax commented 4 years ago

@Rich-Harris Can you give a suggestion where to look at, how to debug this?

rdb commented 4 years ago

You currently need to use electron 4 to run it (but see also #40). There's also a typo that prevents running this on Linux, see #41.