-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Dap UI not working #145
Comments
@Davincible |
Well I haven't actually gotten debugging to work yet, everytime I set a breakpoint and run And the dap plugins has this notification; |
Everything should be latest, according to packer |
Just replicated everything with a very minimal config, same behavior for both. local execute = vim.api.nvim_command
local fn = vim.fn
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({ "git", "clone", "https://github.com/wbthomason/packer.nvim", install_path })
execute("packadd packer.nvim")
end
return require("packer").startup(function()
-- Packer can manage itself
use("wbthomason/packer.nvim")
-- Nvim Treesitter
use({ "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" })
use("kyazdani42/nvim-web-devicons")
-- Golang
use({
"ray-x/go.nvim",
requires = {
"mfussenegger/nvim-dap", -- Debug Adapter Protocol
"rcarriga/nvim-dap-ui",
"theHamsta/nvim-dap-virtual-text",
"ray-x/guihua.lua",
},
})
local path = require("nvim-lsp-installer.core.path")
local install_root_dir = path.concat({ vim.fn.stdpath("data"), "lsp_servers" })
require("go").setup({
gopls_cmd = { install_root_dir .. "/go/gopls" },
})
-- Nvim LSP
use({ "neovim/nvim-lspconfig", "williamboman/nvim-lsp-installer", after = "go.nvim" })
end)
|
Your config look good. I pushed an update. Could you check if it works for you? |
You updated the readme? I tried |
Sorry, the merge was not successful, re-push a new version. |
Yeeaahh it works now. But also the reason the UI keeps double opening is because the session failed to launch, and thus the check I can start a debug session now successfully. But if you just set your cursor on line 1 (package definition), it will fail to start the debug session as expected, but open the UI. If you then run GoDebug again, it doesn't detect a running session and re-opens another UI |
Filed an issue here: |
Close this for now. Most parts of the issue are solved. |
This check doesn't work for me, it keeps opening windows indefinitely
go.nvim/lua/go/dap.lua
Lines 272 to 275 in d402d9c
Originally posted by @Davincible in #139 (comment)
The text was updated successfully, but these errors were encountered: