Skip to content

Commit

Permalink
Extra explanation on "port already in use" error
Browse files Browse the repository at this point in the history
Closes #27
  • Loading branch information
TechnicJelle committed Nov 3, 2024
1 parent a72fad1 commit 0553a33
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/project_view/control_row.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ class RunningProcess {
_consoleOutputController.add(event);
}

if (event.contains("This usually happens when the configured port ") &&
event.contains(" is already in use by some other program.")) {
_consoleOutputController.add(
" There is probably already a BlueMap process running.\n"
" Check that you don't have any BlueMap mods installed on your Minecraft client,\n"
" and check in your Task Manager for any orphaned BlueMapCLI processes and close them.\n"
" If you are sure there is no other BlueMap process running and this error persists,\n"
" try restarting your computer.");
}

if (event.contains("WebServer bound to")) {
_stateController.add(RunningProcessState.running);
final String? portText = portExtractionRegex.firstMatch(event)?.group(1);
Expand Down

0 comments on commit 0553a33

Please sign in to comment.