compiler icon indicating copy to clipboard operation
compiler copied to clipboard

elm: Network.Socket.bind: resource busy (Address in use)

Open aminnairi opened this issue 3 years ago • 1 comments

Quick Summary:

The error message for when the command reactor from the elm compiler is used could be more human friendly and newcomers' friendly (writers, non-devs, ...).

SSCCE

elm reactor
Go to http://localhost:8000 to see your project dashboard.
elm: Network.Socket.bind: resource busy (Address in use)
  • Elm: 0.19.1
  • Browser: N/A
  • Operating System: Arch Linux

Additional Details

The error message, while sufficient for devs, might be intimidating since it refers to socket which can be confused with websockets and lead the user to the wrong guess (am I using a websocket? What is a websocket? How can I disable this in my operating system?).

The error could maybe look like

elm reactor
Oops! Looks like another application is using the port 8000.  A port is a way
to open communication between two interfaces, a server (elm reactor) and a
client (your browser).  But I can't open the port 8000 since there is already
another application (another server) listening for requests for this port!  Try
to search & stop the application that is responsible for listening to this port?
Or you can also use a different port by using this syntax.

elm reactor --port 8001

Try using

elm reactor --help

For more information.

Of course the error message could be shorter but it's nice to have this educational error messages sometimes.

aminnairi avatar Aug 23 '22 19:08 aminnairi

Thanks for reporting this! To set expectations:

  • Issues are reviewed in batches, so it can take some time to get a response.
  • Ask questions in a community forum. You will get an answer quicker that way!
  • If you experience something similar, open a new issue. We like duplicates.

Finally, please be patient with the core team. They are trying their best with limited resources.

github-actions[bot] avatar Aug 23 '22 19:08 github-actions[bot]