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: presentation.reveal = silent doesn't work with dap #367

Open
GopherJ opened this issue Oct 6, 2024 · 3 comments
Open

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

GopherJ opened this issue Oct 6, 2024 · 3 comments
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

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 GopherJ added the bug Something isn't working label Oct 6, 2024
@GopherJ
Copy link
Author

GopherJ commented Oct 6, 2024

tried also isBackground but still the terminal show up

@GopherJ
Copy link
Author

GopherJ commented Oct 6, 2024

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
Copy link
Author

GopherJ commented Oct 6, 2024

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

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