Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Error on start. #136

Closed
susanthenerd opened this issue Sep 26, 2021 · 4 comments · Fixed by #137
Closed

Error on start. #136

susanthenerd opened this issue Sep 26, 2021 · 4 comments · Fixed by #137

Comments

@susanthenerd
Copy link
Contributor

I just installed it and I'm geting the following error. I did get another one that it didn't find gcc and g++ but that one I solved and now I get this error.

Automatically opening the UI is deprecated.
You can replicate previous behaviour by adding the following to your config

local dap, dapui = require('dap'), require('dapui')
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

To hide this message, remove the `open_on_start` settings from your config

Thanks,
Cristian

@NTBBloodbath NTBBloodbath linked a pull request Sep 26, 2021 that will close this issue
@NTBBloodbath
Copy link
Collaborator

I have closed this issue since you uploaded a PR to fix this change and it has been merged (don't know why the issue didn't was automatically closed tho).

@leejuyuu
Copy link
Contributor

leejuyuu commented Oct 9, 2021

I still saw the "Automatically opening the UI is deprecated" message earlier today. I found that if the "open_on_start" in the following line is removed, the message disappears. However, I am new to Neovim and not sure whether that line can be safely removed.

https://github.com/NTBBloodbath/doom-nvim/blob/20a983704c45ea92d3aa13b1926448de4887e1ae/lua/doom/modules/config/doom-dap-ui.lua#L37

@NTBBloodbath
Copy link
Collaborator

woops didn't know there was still a open_on_start field in main branch (it seems that there were two smh). Yeah it is safe to remove this line, thanks per reporting and feel free to open a PR for this patch :)

@leejuyuu
Copy link
Contributor

Thanks for replying! I opened a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants