Skip to content

dap-debug not working in small project, while lsp-lens functions well. #113

@gkfabs

Description

@gkfabs

Describe the bug
dap-debug not working in small project, while lsp-lens functions well.

To Reproduce
A minimal Main to reproduce would be

package com.fabien.test

object Main {

  val a = 0

  def main(args: Array[String]) = {
    println(s"a = ${a}")
    val b = a + 10
    println(s"b = ${b}")
  }
}

Expected behavior
I am expecting the same behaviour with lsp-lens and dap-debug

Logs
The error message I see when running dap-debug is

helm-M-x-execute-command: ‘workspace/executeCommand’ with ‘debug-adapter-start’ failed.

(error "Could not find folder for build targets: BuildTargetIdentifier [
  uri = \"file:///home/fabs/test?id=root\"
]")

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