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

nodejs configuration is not working #61

Open
sultanahamer opened this issue Jan 27, 2022 · 0 comments
Open

nodejs configuration is not working #61

sultanahamer opened this issue Jan 27, 2022 · 0 comments

Comments

@sultanahamer
Copy link

sultanahamer commented Jan 27, 2022

${workspaceFolder}/${file} is not working for nodejs instead $(file) is working. I see that this was changed as part of #34

I am not using any custom config for DAP and nodejs adapter.

Environment1:
Macos 10.15
neovim 0.6.0

Environment2:
debian on wsl2
neovim 0.6

Both environments have the same issue. To test this out, created a file called testing.js and has a simple function which is put on setInterval to debug with a breakpoint inside function code.

Started with continue() and it kept giving error "Error on launch: Attribute 'program' is not absolute ('{path}')" same as in #34
Do I need to add some config related to workspace folders etc?

Here are parts of my nvim config related to dap

" Debugger
Plug 'mfussenegger/nvim-dap'
Plug 'theHamsta/nvim-dap-virtual-text' " cannot see virtual text if Treesitter for a language is not installed
Plug 'Pocco81/DAPInstall.nvim'
Plug 'nvim-telescope/telescope-dap.nvim'
" Debugger end


" Lua plugins initialization
lua << EOF
require('telescope').load_extension('dap')

local dap_install = require("dap-install")

dap_install.setup({
  installation_path = vim.fn.stdpath("data") .. "/dapinstall/",
  verbosely_call_debuggers = true
})

local dbg_list = require("dap-install.api.debuggers").get_installed_debuggers()
for _, debugger in ipairs(dbg_list) do
  dap_install.config(debugger)
end
require("nvim-dap-virtual-text").setup() -- cannot see virtual text if Treesitter for a language is not installed

EOF

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

No branches or pull requests

1 participant