ray-x / go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
MIT License
1.93k stars 119 forks source link

Debug fail: could not remove /home/ogios/work/go/gosocket/__debug_bin1292934493: remove /home/ogios/work/go/gosocket/__debug_bin1292934493: no such file or directory #374

Closed ogios closed 10 months ago

ogios commented 10 months ago

The first time i run GoDebug was alright, but the second time it just return with this error. i dont actually have this __debug_bin1292934493 in my folder, but it wants to delete it, i dont know what could possiblly cause this. even if i reinstalled those dap related plugins, it still occurs.

Screenshot_2023-08-26-23-25-50_28061

checkhealth is all fine:

==============================================================================
go: require("go.health").check()

Binaries ~
- go installed.
- Tool installed: fillswitch
- Tool installed: mockgen
- Tool installed: guru
- Tool installed: callgraph
- Tool installed: richgo
- Tool installed: ginkgo
- Tool installed: gotestsum
- Tool installed: impl
- Tool installed: golangci-lint
- Tool installed: gotests
- Tool installed: gopls
- Tool installed: gorename
- Tool installed: golines
- Tool installed: gomodifytags
- Tool installed: govulncheck
- Tool installed: go-enum
- Tool installed: json-to-struct
- Tool installed: gofumpt
- Tool installed: fillstruct
- Tool installed: goimports
- Tool installed: dlv
- Tool installed: gomvp
- Tool installed: iferr
- sed installed.
- curl installed.
- OK All binaries installed

Go Plugin Check ~
- OK lspconfig: plugin is installed
- OK nvim-treesitter: plugin is installed
- OK guihua: plugin is installed
- OK nvim-dap-virtual-text: plugin is installed
- OK telescope: plugin is installed
- OK nvim-treesitter-go is installed
- OK nvim-dap-ui: plugin is installed
- OK nvim-dap: plugin is installed
- OK All plugin installed
- OK GOPATH is set
- OK GOROOT is set
- OK GOBIN is set
- OK All environment variables set
ogios commented 10 months ago

log file:

i didn't find anything related to that error in this log file

[Sat 26 Aug 2023 11:42:22 PM CST 565914]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/gopls.lua:178 |1: 0.13.2
[Sat 26 Aug 2023 11:42:22 PM CST 566979]   ...e/ogios/.local/share/nvim/lazy/go.nvim/lua/go/gotest.lua:83 |1: build tags |2: {}
 |3: {}

[Sat 26 Aug 2023 11:42:22 PM CST 567205]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/gopls.lua:197 |1: "-tags=linux,linux"
[Sat 26 Aug 2023 11:42:22 PM CST 577157]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/lsp.lua:226 |1: {
  capabilities = {
    textDocument = {
      completion = {
        completionItem = {
          commitCharactersSupport = true,
          deprecatedSupport = true,
          documentationFormat = { "markdown", "plaintext" },
          insertReplaceSupport = true,
          labelDetailsSupport = true,
          preselectSupport = true,
          resolveSupport = {
            properties = { "documentation", "details", "additionalTextEdits" }
          },
          snippetSupport = true
        },
        contextSupport = true,
        dynamicRegistration = true
      }
    }
  },
  cmd = { "gopls", "-remote=auto" },
  filetypes = { "go", "gomod", "gosum", "gotmpl", "gohtmltmpl", "gotexttmpl" },
  flags = {
    allow_incremental_sync = true,
    debounce_text_changes = 500
  },
  message_level = 1,
  on_attach = <function 1>,
  root_dir = <function 2>,
  settings = {
    gopls = {
      analyses = {
        ST1003 = true,
        fieldalignment = false,
        fillreturns = true,
        nilness = true,
        nonewvars = true,
        shadow = true,
        undeclaredname = true,
        unreachable = true,
        unusedparams = true,
        unusedwrite = true,
        useany = true
      },
      buildFlags = { "-tags=linux,linux" },
      codelenses = {
        gc_details = true,
        generate = true,
        regenerate_cgo = true,
        test = true,
        tidy = true,
        upgrade_dependency = true,
        vendor = true
      },
      completeUnimported = true,
      diagnosticsDelay = "500ms",
      gofumpt = true,
      hints = {
        assignVariableTypes = true,
        compositeLiteralFields = true,
        compositeLiteralTypes = true,
        constantValues = true,
        functionTypeParameters = true,
        parameterNames = true,
        rangeVariableTypes = true
      },
      ["local"] = "gosocket",
      matcher = "Fuzzy",
      semanticTokens = true,
      staticcheck = true,
      symbolMatcher = "fuzzy",
      usePlaceholders = true
    }
  }
}

[Sat 26 Aug 2023 11:42:22 PM CST 630937]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/codelens.lua:7 |1: enable codelens
[Sat 26 Aug 2023 11:42:22 PM CST 631584]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/gopls.lua:153 |1: golang.org/x/tools/gopls v0.13.2     golang.org/x/tools/gopls@v0.13.2 h1:Pyvx6MKvatbX3zzZmdGiFRfQZl0ohPlt2sFxO/5j6Ro= 
[Sat 26 Aug 2023 11:42:22 PM CST 631716]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/gopls.lua:167 |1: 0.13.2
[Sat 26 Aug 2023 11:42:22 PM CST 631734]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/gopls.lua:153 |1: 
[Sat 26 Aug 2023 11:42:22 PM CST 631752]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/gopls.lua:157
[Sat 26 Aug 2023 11:42:23 PM CST 663506]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/lsp.lua:24 |1: go.nvim on_on_attach |2: {
  _on_attach = <function 1>,
  attached_buffers = {},
  cancel_request = <function 2>,
  commands = {},
  config = {
    _on_attach = <function 3>,
    autostart = true,
    capabilities = {
      textDocument = {
        callHierarchy = {
          dynamicRegistration = false
        },
        codeAction = {
          codeActionLiteralSupport = {
            codeActionKind = {
              valueSet = { "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" }
            }
          },
          dataSupport = true,
          dynamicRegistration = false,
          isPreferredSupport = true,
          resolveSupport = {
            properties = { "edit" }
          }
        },
        completion = {
          completionItem = {
            commitCharactersSupport = true,
            deprecatedSupport = true,
            documentationFormat = { "markdown", "plaintext" },
            insertReplaceSupport = true,
            labelDetailsSupport = true,
            preselectSupport = true,
            resolveSupport = {
              properties = { "documentation", "details", "additionalTextEdits" }
            },
            snippetSupport = true
          },
          completionItemKind = {
            valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 }
          },
          contextSupport = true,
          dynamicRegistration = true
        },
        declaration = {
          linkSupport = true
        },
        definition = {
          linkSupport = true
        },
        documentHighlight = {
          dynamicRegistration = false
        },
        documentSymbol = {
          dynamicRegistration = false,
          hierarchicalDocumentSymbolSupport = true,
          symbolKind = {
            valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }
          }
        },
        hover = {
          contentFormat = { "markdown", "plaintext" },
          dynamicRegistration = false
        },
        implementation = {
          linkSupport = true
        },
        publishDiagnostics = {
          relatedInformation = true,
          tagSupport = {
            valueSet = { 1, 2 }
          }
        },
        references = {
          dynamicRegistration = false
        },
        rename = {
          dynamicRegistration = false,
          prepareSupport = true
        },
        semanticTokens = {
          augmentsSyntaxTokens = true,
          dynamicRegistration = false,
          formats = { "relative" },
          multilineTokenSupport = false,
          overlappingTokenSupport = true,
          requests = {
            full = {
              delta = true
            },
            range = false
          },
          serverCancelSupport = false,
          tokenModifiers = { "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary" },
          tokenTypes = { "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator", "decorator" }
        },
        signatureHelp = {
          dynamicRegistration = false,
          signatureInformation = {
            activeParameterSupport = true,
            documentationFormat = { "markdown", "plaintext" },
            parameterInformation = {
              labelOffsetSupport = true
            }
          }
        },
        synchronization = {
          didSave = true,
          dynamicRegistration = false,
          willSave = true,
          willSaveWaitUntil = true
        },
        typeDefinition = {
          linkSupport = true
        }
      },
      window = {
        showDocument = {
          support = true
        },
        showMessage = {
          messageActionItem = {
            additionalPropertiesSupport = false
          }
        },
        workDoneProgress = true
      },
      workspace = {
        applyEdit = true,
        configuration = true,
        didChangeWatchedFiles = {
          dynamicRegistration = false,
          relativePatternSupport = true
        },
        semanticTokens = {
          refreshSupport = true
        },
        symbol = {
          dynamicRegistration = false,
          hierarchicalWorkspaceSymbolSupport = true,
          symbolKind = {
            valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 }
          }
        },
        workspaceEdit = {
          resourceOperations = { "rename", "create", "delete" }
        },
        workspaceFolders = true
      }
    },
    cmd = { "/home/ogios/.local/share/nvim/mason/bin/gopls", "-remote=auto" },
    cmd_cwd = "/home/ogios/work/go/gosocket",
    filetypes = { "go", "gomod", "gosum", "gotmpl", "gohtmltmpl", "gotexttmpl" },
    flags = {
      allow_incremental_sync = true,
      debounce_text_changes = 500
    },
    get_language_id = <function 4>,
    handlers = <1>{},
    init_options = vim.empty_dict(),
    log_level = 2,
    message_level = 1,
    name = "gopls",
    on_attach = <function 5>,
    on_exit = <function 6>,
    on_init = <function 7>,
    root_dir = "/home/ogios/work/go/gosocket",
    settings = {
      gopls = {
        analyses = {
          ST1003 = true,
          fieldalignment = false,
          fillreturns = true,
          nilness = true,
          nonewvars = true,
          shadow = true,
          undeclaredname = true,
          unreachable = true,
          unusedparams = true,
          unusedwrite = true,
          useany = true
        },
        buildFlags = { "-tags=linux,linux" },
        codelenses = {
          gc_details = true,
          generate = true,
          regenerate_cgo = true,
          test = true,
          tidy = true,
          upgrade_dependency = true,
          vendor = true
        },
        completeUnimported = true,
        diagnosticsDelay = "500ms",
        gofumpt = true,
        hints = {
          assignVariableTypes = true,
          compositeLiteralFields = true,
          compositeLiteralTypes = true,
          constantValues = true,
          functionTypeParameters = true,
          parameterNames = true,
          rangeVariableTypes = true
        },
        ["local"] = "gosocket",
        matcher = "Fuzzy",
        semanticTokens = true,
        staticcheck = true,
        symbolMatcher = "fuzzy",
        usePlaceholders = true
      }
    },
    single_file_support = true,
    workspace_folders = <2>{ {
        name = "/home/ogios/work/go/gosocket",
        uri = "file:///home/ogios/work/go/gosocket"
      } },
    <metatable> = <3>{
      __tostring = <function 8>
    }
  },
  handlers = <table 1>,
  id = 1,
  initialized = true,
  is_stopped = <function 9>,
  messages = {
    messages = {},
    name = "gopls",
    progress = {},
    status = {}
  },
  name = "gopls",
  notify = <function 10>,
  offset_encoding = "utf-16",
  request = <function 11>,
  request_sync = <function 12>,
  requests = {},
  rpc = {
    is_closing = <function 13>,
    notify = <function 14>,
    request = <function 15>,
    terminate = <function 16>
  },
  server_capabilities = {
    callHierarchyProvider = true,
    codeActionProvider = {
      codeActionKinds = { "quickfix", "refactor.extract", "refactor.rewrite", "source.fixAll", "source.organizeImports" }
    },
    codeLensProvider = vim.empty_dict(),
    completionProvider = {
      triggerCharacters = { "." }
    },
    definitionProvider = true,
    documentFormattingProvider = true,
    documentHighlightProvider = true,
    documentLinkProvider = vim.empty_dict(),
    documentSymbolProvider = true,
    executeCommandProvider = {
      commands = { "gopls.add_dependency", "gopls.add_import", "gopls.apply_fix", "gopls.check_upgrades", "gopls.edit_go_directive", "gopls.fetch_vulncheck_result", "gopls.gc_details", "gopls.generate", "gopls.go_get_package", "gopls.list_imports", "gopls.list_known_packages", "gopls.mem_stats", "gopls.regenerate_cgo", "gopls.remove_dependency", "gopls.reset_go_mod_diagnostics", "gopls.run_go_work_command", "gopls.run_govulncheck", "gopls.run_tests", "gopls.start_debugging", "gopls.start_profile", "gopls.stop_profile", "gopls.test", "gopls.tidy", "gopls.toggle_gc_details", "gopls.update_go_sum", "gopls.upgrade_dependency", "gopls.vendor", "gopls.workspace_stats" }
    },
    foldingRangeProvider = true,
    hoverProvider = true,
    implementationProvider = true,
    inlayHintProvider = vim.empty_dict(),
    referencesProvider = true,
    renameProvider = {
      prepareProvider = true
    },
    selectionRangeProvider = true,
    semanticTokensProvider = {
      full = true,
      legend = {
        tokenModifiers = { "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary" },
        tokenTypes = { "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator", "decorator" }
      },
      range = true
    },
    signatureHelpProvider = {
      triggerCharacters = { "(", "," }
    },
    textDocumentSync = {
      change = 2,
      openClose = true,
      save = vim.empty_dict()
    },
    typeDefinitionProvider = true,
    workspace = {
      workspaceFolders = {
        changeNotifications = "workspace/didChangeWorkspaceFolders",
        supported = true
      }
    },
    workspaceSymbolProvider = true
  },
  stop = <function 17>,
  supports_method = <function 18>,
  workspace_did_change_configuration = <function 19>,
  workspace_folders = <table 2>
}
 |3: 4
[Sat 26 Aug 2023 11:42:34 PM CST 324672]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/dap.lua:288 |1: {}
 |2: 1
[Sat 26 Aug 2023 11:42:34 PM CST 329134]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/dap.lua:325 |1: plugin loaded |2: test |3: {}

[Sat 26 Aug 2023 11:42:34 PM CST 433398]   ...e/ogios/.local/share/nvim/lazy/go.nvim/lua/go/gotest.lua:83 |1: build tags |2: {}
 |3: {}

[Sat 26 Aug 2023 11:42:34 PM CST 433545]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/dap.lua:451 |1: -tags=linux,linux
[Sat 26 Aug 2023 11:42:34 PM CST 433604]   ...e/ogios/.local/share/nvim/lazy/go.nvim/lua/go/gotest.lua:83 |1: build tags |2: {}
 |3: {}

[Sat 26 Aug 2023 11:42:34 PM CST 433742]   ...e/ogios/.local/share/nvim/lazy/go.nvim/lua/go/launch.lua:92 |1: /home/ogios/work/go/gosocket/.vscode/launch.json
[Sat 26 Aug 2023 11:42:34 PM CST 433764]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/dap.lua:465 |1: test |2: true |3: /home/ogios/work/go/gosocket/.vscode/launch.json
[Sat 26 Aug 2023 11:42:34 PM CST 434139]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:126 |1: ((function_declaration name: (identifier)@function.name) @function.declaration) ((method_declaration
     receiver: (parameter_list)@method.receiver
     name: (field_identifier)@method.name
     body:(block))@method.declaration) |2: go |3: {
  ["else"] = "else",
  ["for"] = "for",
  func = "function",
  ["if"] = "if"
}
 |4: 29 |5: 1
[Sat 26 Aug 2023 11:42:34 PM CST 434759]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:157 |1: {
  method = {
    declaration = {
      node = <userdata 1>
    },
    name = {
      node = <userdata 2>
    },
    receiver = {
      node = <userdata 3>
    }
  }
}

[Sat 26 Aug 2023 11:42:34 PM CST 434960]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:178 |1: node  |2: <userdata 1> |3: 
 path: method.declaration op: declaration  type: method
 txt: func (n *Linux) Notify(item app.Notification) error {
    params := []string{
        "--app-name=",
        item.A...
 range: 12:0 TO 33:1
[Sat 26 Aug 2023 11:42:34 PM CST 434994]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:178 |1: node  |2: <userdata 1> |3: 
 path: method.receiver op: receiver  type: method
 txt: (n *Linux)
 range: 12:5 TO 12:15
[Sat 26 Aug 2023 11:42:34 PM CST 435021]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:195 |1: unknown op: receiver
[Sat 26 Aug 2023 11:42:34 PM CST 435047]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:178 |1: node  |2: <userdata 1> |3: 
 path: method.name op: name  type: method
 txt: Notify
 range: 12:16 TO 12:22
[Sat 26 Aug 2023 11:42:34 PM CST 435085]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:187 |1: node name 
[Sat 26 Aug 2023 11:42:34 PM CST 435099]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:199 |1: Notify name
[Sat 26 Aug 2023 11:42:34 PM CST 435178]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:157 |1: {
  ["function"] = {
    declaration = {
      node = <userdata 1>
    },
    name = {
      node = <userdata 2>
    }
  }
}

[Sat 26 Aug 2023 11:42:34 PM CST 435270]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:178 |1: node  |2: <userdata 1> |3: 
 path: function.declaration op: declaration  type: function
 txt: func GetSystem() app.System {
    return &Linux{}
}
 range: 35:0 TO 37:1
[Sat 26 Aug 2023 11:42:34 PM CST 435396]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:178 |1: node  |2: <userdata 1> |3: 
 path: function.name op: name  type: function
 txt: GetSystem
 range: 35:5 TO 35:14
[Sat 26 Aug 2023 11:42:34 PM CST 435415]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:187 |1: node name 
[Sat 26 Aug 2023 11:42:34 PM CST 435429]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:199 |1: GetSystem name
[Sat 26 Aug 2023 11:42:34 PM CST 435441]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:202 |1: 36 beyond 29
[Sat 26 Aug 2023 11:42:34 PM CST 435475]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:226 |1: total nodes got: 2
[Sat 26 Aug 2023 11:42:34 PM CST 435487]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:263 |1: 2
[Sat 26 Aug 2023 11:42:34 PM CST 435685]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:265 |1: 29 |2: 1 |3: { {
    declaring_node = <userdata 1>,
    dim = {
      e = {
        c = 1,
        r = 34
      }
[Sat 26 Aug 2023 11:42:34 PM CST 435711]   ...e/ogios/.local/share/nvim/lazy/go.nvim/lua/go/gotest.lua:120 |1: /home/ogios/work/go/gosocket/notify/fac/linux.go
[Sat 26 Aug 2023 11:42:34 PM CST 435908]   ...e/ogios/.local/share/nvim/lazy/go.nvim/lua/go/gotest.lua:128 |1: /home/ogios/work/go/gosocket/notify/fac/linux_test.go |2: 47 |3: file:///home/ogios/work/go/gosocket/notify/fac/linux_test.go
[Sat 26 Aug 2023 11:42:34 PM CST 436786]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/dap.lua:475 |1: {
  declaring_node = <userdata 1>,
  dim = {
    e = {
      c = 1,
      r = 34
    },
    s = {
      c = 1,
      r = 13
    }
  },
  name = "Notify",
  operator = "name",
  type = "method"
}

[Sat 26 Aug 2023 11:42:34 PM CST 436968]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:126 |1: (literal_value (literal_element (literal_value .(keyed_element (literal_element (identifier)) (literal_element (interpreted_string_literal) @test.name))))) |2: go |3: {
  ["else"] = "else",
  ["for"] = "for",
  func = "function",
  ["if"] = "if"
}
 |4: 29 |5: 1
[Sat 26 Aug 2023 11:42:34 PM CST 437605]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:226 |1: total nodes got: 0
[Sat 26 Aug 2023 11:42:34 PM CST 437621]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:263 |1: 0
[Sat 26 Aug 2023 11:42:34 PM CST 437637]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:265 |1: 29 |2: 1 |3: {}
[Sat 26 Aug 2023 11:42:34 PM CST 437697]   ...ogios/.local/share/nvim/lazy/go.nvim/lua/go/ts/nodes.lua:271 |1: Unable to find any nodes at pos. 29:1
[Sat 26 Aug 2023 11:42:34 PM CST 437712]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/dap.lua:485
[Sat 26 Aug 2023 11:42:34 PM CST 437736]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/dap.lua:502
[Sat 26 Aug 2023 11:42:34 PM CST 441865]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/dap.lua:576 |1: {
  args = { "-test.run=^Notify$" },
  buildFlags = "-tags=linux,linux",
  dlvToolPath = "/usr/lib/go/bin/dlv",
  mode = "test",
  name = "Debug test",
  options = {
    initialize_timeout_sec = 15,
    max_retries = 20
  },
  program = "./${relativeFileDirname}",
  request = "launch",
  type = "go"
}
 |2: {}
 |3: {
  t = true
}

[Sat 26 Aug 2023 11:42:52 PM CST 378720]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/dap.lua:626 |1: {
  buffer = 0,
  callback = <function 1>,
  expr = 1,
  lhs = "c",
  lhsraw = "c",
  lnum = 0,
  mode = "n",
  noremap = 1,
  nowait = 0,
  replace_keycodes = 1,
  script = 0,
  sid = -8,
  silent = 0
}

[Sat 26 Aug 2023 11:42:52 PM CST 379539]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/dap.lua:626 |1: {
  buffer = 0,
  callback = <function 1>,
  desc = "Flash",
  expr = 0,
  lhs = "s",
  lhsraw = "s",
  lnum = 0,
  mode = "n",
  noremap = 1,
  nowait = 0,
  script = 0,
  sid = -8,
  silent = 0
}

[Sat 26 Aug 2023 11:42:52 PM CST 379741]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/dap.lua:626 |1: {
  buffer = 0,
  callback = <function 1>,
  desc = "Flash Treesitter",
  expr = 0,
  lhs = "S",
  lhsraw = "S",
  lnum = 0,
  mode = "n",
  noremap = 1,
  nowait = 0,
  script = 0,
  sid = -8,
  silent = 0
}

[Sat 26 Aug 2023 11:42:52 PM CST 482243]   /home/ogios/.local/share/nvim/lazy/go.nvim/lua/go/dap.lua:659 |1: closing dapui
ogios commented 10 months ago

turns out i can only launch GoDebug in main package, if i add break point in other sub packages and launch it from there, this would happen