nvim-dap-ui icon indicating copy to clipboard operation
nvim-dap-ui copied to clipboard

float console not responding

Open nzlov opened this issue 2 years ago • 1 comments

Version:

NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Config

local config = {
    controls = {
      element = "repl",
      enabled = true,
      icons = {
        disconnect = "",
        pause = "",
        play = "",
        run_last = "",
        step_back = "",
        step_into = "",
        step_out = "",
        step_over = "",
        terminate = "",
      },
    },
    element_mappings = {},
    expand_lines = true,
    floating = {
      max_height = 0.9,
      border = "single",
      mappings = {
        close = { "q", "<Esc>" },
      },
    },
    force_buffers = true,
    icons = {
      collapsed = "",
      current_frame = "",
      expanded = "",
    },
    layouts = {
      {
        elements = {
          {
            id = "repl",
            size = 0.05,
          },
          {
            id = "scopes",
            size = 0.25,
          },
          {
            id = "breakpoints",
            size = 0.25,
          },
          {
            id = "stacks",
            size = 0.25,
          },
          {
            id = "watches",
            size = 0.20,
          },
        },
        position = "left",
        size = 30,
      },
      {
        elements = {
          {
            id = "console",
            size = 1.0,
          },
        },
        position = "bottom",
        size = 30,
      },
    },
    mappings = {
      edit = "e",
      expand = { "<CR>", "<2-LeftMouse>" },
      open = "o",
      remove = "d",
      repl = "r",
      toggle = "t",
    },
    render = {
      indent = 1,
      max_value_lines = 100,
    },
  }
  local dap, dapui = require "dap", require "dapui"
  dapui.setup(config)

  dap.listeners.after.event_initialized["dapui_config"] = function()
    dapui.open()
  end
  dap.listeners.before.event_terminated["dapui_config"] = function()
    dapui.close()
  end
  dap.listeners.before.event_exited["dapui_config"] = function()
    dapui.close()
  end

Err:

Error executing lua callback: vim/_editor.lua:0: Keyboard interrupt
stack traceback:
        [C]: in function 'nvim_exec2'
        vim/_editor.lua: in function 'cmd'
        ...are/nvim/lazy/nvim-dap-ui/lua/dapui/elements/console.lua:41: in function <...are/
nvim/lazy/nvim-dap-ui/lua/dapui/elements/console.lua:39>

nzlov avatar Aug 09 '23 08:08 nzlov

You've not given any information on what adapter(s) you're using or how they're configured. Please provider a way to easily reproduce the issue, otherwise I can't help

rcarriga avatar Sep 10 '23 11:09 rcarriga