Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Task project-run dispatch on_output_summarize.on_output: ...seer.nvim/lua/overseer/component/on_output_summarize.lua:8: Invalid 'buffer': Expected Lua number #368

Open
GopherJ opened this issue Oct 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@GopherJ
Copy link

GopherJ commented Oct 6, 2024

Neovim version (nvim -v)

NVIM v0.10.1 Build type: Debug LuaJIT 2.1.1713484068 Run "nvim -V1 -v" for more info

Operating system/version

Linux Mint (Ubuntu 22.04)

Describe the bug

with toggleterm, sometimes it outputs this error

What is the severity of this bug?

breaking (some functionality is broken)

Steps To Reproduce

  1. configure the following
    {
    "label": "project-run",
    "type": "shell",
    "command": "cargo run",
    "options": {
    "cwd": "${workspaceFolder}"
    },
    "group": "RUN"
    },

    require("overseer").setup({
    strategy = {
    "toggleterm",
    close_on_exit = true
    },
    })

    {
    "akinsho/toggleterm.nvim",
    version = "*",
    config = function()
    require("toggleterm").setup({
    open_mapping = [[<M-=>]],
    })
    -- vim.api.nvim_set_keymap("t", "", [[<C->:bw!]], { noremap = true, silent = true })
    function _G.set_terminal_keymaps()
    local opts = { buffer = 0 }
    vim.keymap.set("t", "", [[<C->:bw!]], opts)
    vim.keymap.set("t", "", [[wincmd h]], opts)
    vim.keymap.set("t", "", [[wincmd j]], opts)
    vim.keymap.set("t", "", [[wincmd k]], opts)
    vim.keymap.set("t", "", [[wincmd l]], opts)
    end

     	vim.cmd("autocmd! TermOpen term://*toggleterm#* lua set_terminal_keymaps()")
     end,
    

    },

  2. start project-run task

  3. hit esc

Expected Behavior

No error

Minimal example file

No response

Minimal init.lua

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  { "stevearc/dressing.nvim", config = true },
  {
    "stevearc/overseer.nvim",
    config = function()
      require("overseer").setup({
        -- add your overseer config here
      })
    end,
  },
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

Additional context

No response

@GopherJ GopherJ added the bug Something isn't working label Oct 6, 2024
@GopherJ
Copy link
Author

GopherJ commented Oct 6, 2024

this will probably only when it's a long running task, when the task was still running, user hit esc to kill the buffer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant