Skip to content

Process Picker broken when JVM binds to random port #1121

Description

When port conflicts occur, a user may choose to let the JVM bind to a random port by omitting the [address attribute] (https://docs.oracle.com/cd/E19501-01/819-3664/abgdm/index.html) or by passing address=0 as command-line arguments. This breaks the process picker because it matches on address, which is either missing or its value is 0:

const DEBUG_MODE_PATTERN = /(-agentlib|-Xrunjdwp):\S*(address=[^\s,]+)/i;

A workaround is to let users manually enter the port: tlaplus/CommunityModules@fa56d3f

Activity

  1. github-actions commented on Nov 11, 2025

    @github-actions

    Hi Markus Alexander Kuppe (@lemmy), I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.

    • Enhance the process picker to fall back on port‐only matching when address is omitted or set to 0. For example, in src/processPicker.ts:

      const portArg = args.get('port');
      return processes.filter(p => {
        const addr = args.get('address');
        return (addr && addr !== '0' && p.commandLine.includes(`address=${addr}`))
          || p.commandLine.includes(`port=${portArg}`);
      });
    • Update the regex/filter in processPicker.ts to treat missing or 0 address as a wildcard host and only match on port.

    • As a temporary workaround, prompt the user to manually enter the port (see this example commit):
      • tlaplus/CommunityModules@fa56d3f

    The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions