Is dart debug adapter currently supported? #34
-
This is what my mason-nvim-dap.lua file looks like.
I get the below error when opening neovim, no specific file.
Is there a way to fix this issue? Am I doing something wrong. Please let me know. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
I created a PR to add support: #35. added in mason.nvim on 12/7, did not know about it: https://github.com/williamboman/mason.nvim/blob/main/lua/mason-registry/dart-debug-adapter/init.lua. Do you mind testing it? Also, it seems you opted to not use: automatic_setup = {
configurations = {
dart = {
stepping_granularity = 'statement'
}
},
} the above would be merged with the config provided by this plugin to allow full customizability without the boilerplate. |
Beta Was this translation helpful? Give feedback.
-
for just dart full setup would be: require("mason-nvim-dap").setup({
ensure_installed = {"dart"}
automatic_setup = {
configurations = {
dart = {
stepping_granularity = "statement"
}
}
}
})
require("mason-nvim-dap").setup_handlers() |
Beta Was this translation helpful? Give feedback.
-
@jay-babu thank you so much for the super quick response brother! Super appreciate you adding support for dart also. As for your question, I am still learning a lot of things neovim and wasn't sure how automation in the context of setting up the debug adapter through mason-nvim-dap.nvim would work. And since I hadn't used it before, thought I shouldn't change too many variables at once. Any who, I am more than happy to test this out. Is the functionality already added? Do I have to update the plugin? I use Packer as my neovim manager. Let me try that and get back to you. |
Beta Was this translation helpful? Give feedback.
I created a PR to add support: #35. added in mason.nvim on 12/7, did not know about it: https://github.com/williamboman/mason.nvim/blob/main/lua/mason-registry/dart-debug-adapter/init.lua. Do you mind testing it?
Also, it seems you opted to not use:
automatic_setup
. May I ask why? It would remove much of the manual configuration you have to do. you can still override if you want (below). instead ofautomatic_setup = true
, you pass in a table.the above would be merged with the config provided by this plugin to allow full customizability without the boilerplate.