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

App breaks after updating engine code #472

Open
cale-bradbury opened this issue Dec 6, 2024 · 1 comment
Open

App breaks after updating engine code #472

cale-bradbury opened this issue Dec 6, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@cale-bradbury
Copy link
Contributor

After I change any of the engine/editor code that app restarts as expected, but upon selecting my sketch folder I get the following error. Curious if this happens on mac as well?

Uncaught (in promise) 
Error: Error invoking remote method 'start-sketches-server': Error: listen tcp 127.0.0.1:3000: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
@funwithtriangles
Copy link
Member

This isn't happening for me on OSX, the app restarts when I make the change, and I can load a project/sketches folder with no issues. I'm assuming it doesn't have to be specifically @hedron/engine code, and could also be something in @hedron/desktop?

To start debugging this I'd suggest checking out how the port is defined in the sketches server. I'm using get-port-please, an npm package that supposedly grabs the next available port at an address. I remember having trouble with this whole topic and wasn't quite satisfied with the solution, maybe there's a better way to do things?

@funwithtriangles funwithtriangles added the bug Something isn't working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants