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

[Question] dap-debug with NetCoreDbg: no program specified #821

Open
SLAVONchick opened this issue Jan 17, 2025 · 0 comments
Open

[Question] dap-debug with NetCoreDbg: no program specified #821

SLAVONchick opened this issue Jan 17, 2025 · 0 comments

Comments

@SLAVONchick
Copy link

I'm trying to set up dap-mode with dap-netcore and stuck with an issue running dap-debug.

-*- mode: compilation; default-directory: "d:/repos/dotnet/dap-sample/" -*-
Comint started at Sat Jan 18 00:36:54

 
error: no program name specified.

Comint exited abnormally with code 255 at Sat Jan 18 00:36:54

And the status buffer (the lowest line in the editor) says:
LSP: Compilation step failed
Although, the lsp-mode works, at least I have all the autocompletion, compilation errors, etc.

My config (~/.emacs.el) looks like this:

(global-display-line-numbers-mode 1)

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired.  See `package-archive-priorities`
;; and `package-pinned-packages`. Most users will not need or want to do this.
;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(dap-netcore-download-url
   "https://github.com/Samsung/netcoredbg/releases/download/3.1.2-1054/netcoredbg-win64.zip")
 '(package-selected-packages '(dap-netcoredbg dap-mode company lsp-mode)))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

(require 'lsp-mode)
(use-package dap-mode
  :ensure
  :config
  (dap-ui-mode)
  (dap-ui-controls-mode 1))

(require 'dap-netcore)

(add-hook
 'csharp-mode-hook
 (lambda ()
   (lsp-mode 1)
   (company-mode 1)))

I'm running emacs 29.4 on Windows.

I'm pretty sure I've configured something in a wrong way, but I'm struggling to figure out what in particular (because I'm new to emacs). That is why I marked this as a question.

Please, let me know if there is anything else I should provide to resolve my issue :)

@SLAVONchick SLAVONchick changed the title [Question] dap-debug with NetCoreDbg doesn't run at all [Question] dap-debug with NetCoreDbg: no preogram specified Jan 17, 2025
@SLAVONchick SLAVONchick changed the title [Question] dap-debug with NetCoreDbg: no preogram specified [Question] dap-debug with NetCoreDbg: no program specified Jan 17, 2025
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