Skip to content

Executed DAP server process doesn't set the process' working directory based on the run configuration #1684

Closed

Description

@SCWells72

This was reported by users of my plugin where I integrate LSP4IJ's DAP feature in a more first-class manner. My plugin creates and manages DAP run configurations and always sets the working directory to the IDE project root directory:

Image

When this run configuration is executed, LSP4IJ isn't setting the resulting server process' working/current directory based on that setting, though:

Image

As a result, all command-line options passed to the DAP server must use absolute paths, and if the DAP server uses the working directory in any manner, e.g., to find a local configuration file (which this one does), it won't be found given the default working directory used for the executed process.

LSP4IJ should set the working directory of the executed server process to the one from the run configuration if available.

Activity

  1. SCWells72 commented on Oct 2, 2026

    @SCWells72
    ContributorAuthor

    PR #1685 created with fix.

  2. angelozerr commented on Oct 2, 2026

    @angelozerr
    Contributor

    Fixed with #1685

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions