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

Please help -- looking for in-depth example of using google-chrome-stable with nvim-dap and microsoft/vscode-js-debug #21

Open
elmarsto opened this issue Jan 4, 2023 · 2 comments

Comments

@elmarsto
Copy link

elmarsto commented Jan 4, 2023

This is a super-common stack which is directly supported by this codebase, so it would be beyond rad if we could have a substantial example in the docs showing how to combine these:

  • Google Chrome (On my NixOS machine, that's google-chrome-stable)
  • Neovim
  • Nvim-dap
  • vscode-js-debug

TBH I'm stumped -- I keep getting:

image

I have a slightly idiosyncratic way of grouping dependencies everything works except specifically nvim-dap-vscode-js, and my intuition, plus having attempted various other options, including program, with the same result, suggests that the problem is with how I've configured nvim-dap-vscode-js rather than Packer.

EDIT After rereading the message above, I need to clarify that I've naively played with specifying a lot of options, including the obvious address and server, but with no change in error. I figured I'd make a minimally reproducible example. What am I getting wrong below?

  use { "mfussenegger/nvim-dap",
    requires = { 
       "mxsdev/nvim-dap-vscode-js",
       { "microsoft/vscode-js-debug", opt = true, run = "npm install --legacy-peer-deps && npm run compile" },
     },
    config = function()
      require "dap-vscode-js".setup({
        adapters = { 'pwa-chrome' },
        log_file_path = "/tmp/dap_vscode_js.log",
        log_file_level = vim.log.levels.INFO
        log_console_level = vim.log.levels.INFO
      })
      for _, language in ipairs({ "typescript", "javascript", "typescriptreact", "javascriptreact" }) do
        require("dap").configurations[language] = {
          {
            type = "pwa-chrome",
            request = "launch",
            name = "Chrome Launch",
          },
        }
     end
    end
  }
@anasrar
Copy link

anasrar commented Jan 7, 2023

@mxsdev
Copy link
Owner

mxsdev commented Jan 11, 2023

@elmarsto Does #23 fix the issue?

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

3 participants