Giter VIP home page Giter VIP logo

Comments (9)

heapwolf avatar heapwolf commented on June 16, 2024 2

@chicoxyzzy I'll assign you here to this so you can close this when you have an example app for this particular use case

from socket-examples.

nichoth avatar nichoth commented on June 16, 2024

see socketsupply/socket#3


Looks like a different error actually

from socket-examples.

aleclarson avatar aleclarson commented on June 16, 2024

I don't think that's related, @nichoth. This isn't a Bluetooth permission issue. And I don't get a crash report window like that issue does.

from socket-examples.

aleclarson avatar aleclarson commented on June 16, 2024

So the app works as expected when I use open dist/mac/TestExample-dev.app in the terminal. But when I open it by double-clicking from the Finder, this bug appears.

from socket-examples.

chicoxyzzy avatar chicoxyzzy commented on June 16, 2024

I can confirm the app crashes on button click when it's opened from the Finder. Updates from the Node backed doesn't seem to work as well

from socket-examples.

jwerle avatar jwerle commented on June 16, 2024

The issue is that the node command cannot be resolved when running from Finder (double clicking the .app file) because there the PATH env var is very limited by default (/usr/bin:/bin:/usr/sbin:/sbin)

node is available on my PATH in /usr/local/bin so changing the mac_cmd to

mac_cmd: /usr/local/bin/node index.js

fixes this and prevents a crash

it is unfortunate that we have no crash report or logs for things like this

from socket-examples.

aleclarson avatar aleclarson commented on June 16, 2024

Shouldn't node be included in the .app so end users don't need to install Node themselves?

from socket-examples.

chicoxyzzy avatar chicoxyzzy commented on June 16, 2024

error logs could be caught via

window.addEventListener('process-error', ({ detail }) => {
  console.error('process-error', detail)
})

in the frontend code. Hm, maybe we should add this to the preload script.

from socket-examples.

chicoxyzzy avatar chicoxyzzy commented on June 16, 2024

Shouldn't node be included in the .app so end users don't need to install Node themselves?

it is definitely possible and that's how our own apps work. That will make example apps code a bit more complicated. I think that we should rethink example apps to make some of them work without node and make others use bundled node. @heapwolf @jwerle WDYT?

from socket-examples.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.