;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\303\304\305\306\307DD\310\311\312\313\314&\210\303\315\305\306\316DD\317\311\312\313\320&\210\303\321\305\306\322DD\323\311\312\313\314&\207" [require dap-mode dap-utils custom-declare-variable dap-go-debug-path funcall function #[0 "\301\302\"\207" [dap-utils-extension-path expand-file-name "vscode/golang.go"] 3] "The path to go vscode extension." :group dap-go :type string dap-go-debug-program #[0 "\301\302\303\"\302\304\"\305!\203\306\307!\210\202\211\266\202D\207" [dap-go-debug-path "node" f-join "extension/out/src/debugAdapter/goDebug.js" "extension/dist/debugAdapter.js" f-exists\? lsp--warn "Go debug adapter is outdated; some features will not work properly (map debugging).\nUpdate `dap-go' using `C-u M-x dap-go-setup'"] 5] "The path to the go debugger." (repeat string) dap-go-delve-path #[0 "\300\301!\206\302\301\302\303\304\305!\"\"\207" [executable-find "dlv" expand-file-name "bin" getenv "GOPATH"] 6] "The path to the delve command."] 8) #@114 Downloading golang.go to path specified. With prefix, FORCED to redownload the extension. (fn &optional FORCED) (defalias 'dap-go-setup #[256 "\211?\205\301!?\205\302\303\304\305$\210\306\307\310\"\207" [dap-go-debug-path file-exists-p dap-utils-get-vscode-extension "golang" "go" "0.22.1" message "%s: Downloading done!" "dap-go"] 6 (#$ . 1102) "P"]) (byte-code "\301!\204 \302\303\304\305\304$\210\301\207" [dap-go-debug-path file-exists-p message "%s: %s debug extension are not set. You can download it with M-x %s-setup" "dap-go" "golang.go"] 5) #@54 Populate CONF with the default arguments. (fn CONF) (defalias 'dap-go--populate-default-args #[257 "\302\303\"\211\304\267\202\213\305!\202\214\306\307\302\307\"\206\310\311 !#\202\214\306\307\302\307\"\206/\312\313!#\202\214\306\307\302\307\"\206A\310\311 !#\210\306\314\302\314\"\206Q\315\316\317\"#\210\306\320\302\320\"\206c\321\315\322\323\"!#\202\214\306\324\302\324\"\206u\310\311 !#\210\306\325\302\325\"\206\207\321\315\326\323\"!#\202\214\327\262\262\302\330\";\203\243\306\330\331\302\330\"!#\210\306\211\211\211\211\332\302\332\"\206\263#\333\302\306\332\302 \332\"\206\303#\333\"\206\312 #\334\302\306\211\332\302 \332\"\206\333#\333\302\306 \332\302\332\"\206\353#\333\"\206\362 #\334\"\206\335\310\311 !\336\337 \311 \"BC!#\340\302\306\211\211\332\302 \332\"\206#\333\302\306 \332\302\332\"\206(#\333\"\206/ #\334\302\306\211 \332\302\332\"\206@#\333\302\306\332\302\332\"\206P#\333\"\206W #\334\"\206k\335\310\311 !\336\337 \311 \"BC!#\340\"\206r\341#\342\302\306\211\211\211\332\302 \332\"\206\205#\333\302\306 \332\302\332\"\206\225#\333\"\206\234 #\334\302\306\211 \332\302\332\"\206\255#\333\302\306\332\302\332\"\206\275#\333\"\206\304 #\334\"\206\330\335\310\311 !\336\337 \311 \"BC!#\340\302\306\211\211 \332\302\332\"\206\352#\333\302\306\332\302\332\"\206\372#\333\"\206 #\334\302\306\211\332\302\332\"\206#\333\302\306\332\302\332\"\206\"#\333\"\206) #\334\"\206=\335\310\311 !\336\337 \311 \"BC!#\340\"\206D\341#\342\"\206K\343#\207" [dap-go-debug-program dap-go-delve-path plist-get :mode #s(hash-table size 5 test equal rehash-size 1.5 rehash-threshold 0.8125 purecopy t data ("auto" 10 "debug" 16 "exec" 34 "remote" 51 "local" 103)) dap-go--populate-auto-args plist-put :program f-dirname buffer-file-name read-file-name "enter full path to executable without tilde:" :host read-string "enter host:" "127.0.0.1" :port string-to-number "Enter port: " "2345" :cwd :processId "Enter pid: " nil :args split-string :dap-server-path :dlvToolPath :packagePathToGoModPathMap ht<-alist lsp-find-session-folder lsp-session :type "go" :name "Go Debug"] 23 (#$ . 1668)]) #@37 Populate auto arguments. (fn CONF) (defalias 'dap-go--populate-auto-args #[257 "\300\301\302\301\"\206\f\303 #\210\304\305\303 \"\203\300\306\307#\207\300\306\310#\207" [plist-put :program plist-get buffer-file-name string-suffix-p "_test.go" :mode "test" "debug"] 7 (#$ . 3904)]) (byte-code "\300\301\302\"\210\303\304\305\301\306\307\310\311\312\313\314\315\316\315\317\315\320\315\321\315\257\"\210\303\322\305\301\306\307\310\323\312\324\314\315\316\315\317\315\320\315\321\315\257\"\210\303\325\305\301\306\307\310\326\312\324\314\315\316\327\317\315\320\315\321\315\257\"\210\303\330\305\301\306\307\310\331\312\332\314\315\317\315\320\315\321\315\257\"\210\303\333\305\301\306\334\310\335\312\336\314\315\317\315\320\315\321\315\257\"\210\303\337\305\301\306\307\310\340\312\341\314\315\317\315\320\315\321\315\257\"\210\342\343!\207" [dap-register-debug-provider "go" dap-go--populate-default-args dap-register-debug-template "Go Launch File Configuration" :type :request "launch" :name "Launch File" :mode "auto" :program nil :buildFlags :args :env :envFile "Go Launch Debug Package Configuration" "Launch Debug Package" "debug" "Go Launch Unoptimized Debug Package Configuration" "Launch Unoptimized Debug Package" "-gcflags '-N -l'" "Go Launch Executable Configuration" "Launch Executable" "exec" "Go Attach Executable Configuration" "attach" "Attach to Executable" "local" "Go Connect Remote dlv Configuration" "Connect to Remote dlv" "remote" provide dap-go] 20)