stevearc / overseer.nvim

A task runner and job management plugin for Neovim
MIT License
1.24k stars 56 forks source link

bug: presentation.reveal = silent doesn't work with dap #367

Open GopherJ opened 1 month ago

GopherJ commented 1 month ago

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

tasks.json

    {
      "label": "project-build",
      "type": "shell",
      "command": "cargo build",
      "options": {
        "cwd": "${workspaceFolder}"
      },
      "group": "BUILD",
      "problemMatcher": [
        "$rustc"
      ],
      "presentation": {
        "reveal": "silent"
      }
    },

launch.json

    {
      "type": "codelldb",
      "request": "launch",
      "name": "Debug Rust (with args)",
      "program": "${workspaceFolder}/target/debug/${input:executableName}",
      "args": ["${input:debugArgs}"],
      "cwd": "${workspaceFolder}",
      "stopOnEntry": false,
      "preLaunchTask": "project-build"
    }

project-build task still opened the terminal

What is the severity of this bug?

breaking (some functionality is broken)

Steps To Reproduce

create .vscode/tasks.json create .vscode/launch.json launch dap

Expected Behavior

respect presentation.reveal = silent

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 commented 1 month ago

tried also isBackground but still the terminal show up

GopherJ commented 1 month ago

if I change from shell to process the task failed and it keeps retrying every hundreds of milliseconds, how to interrupt this?

image

it basically was failling to run cargo build in fish shell with an error command not found but it should work

GopherJ commented 1 month ago

looks like it's a compatibility issue with toggleterm, if I switch to built in terminal it's ok