This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-03
Channels
- # babashka (16)
- # beginners (70)
- # biff (1)
- # calva (15)
- # clj-commons (1)
- # cljsrn (1)
- # clojure (31)
- # clojure-android (1)
- # clojure-nl (4)
- # clojure-spec (17)
- # clojurescript (6)
- # cursive (3)
- # fulcro (22)
- # holy-lambda (21)
- # honeysql (20)
- # jobs-discuss (5)
- # kaocha (1)
- # lsp (51)
- # malli (1)
- # missionary (7)
- # nrepl (1)
- # off-topic (9)
- # portal (3)
- # reitit (1)
- # shadow-cljs (4)
- # xtdb (2)
Is anyone able to use dap for clojurescript like described in https://emacs-lsp.github.io/lsp-mode/tutorials/debugging-clojure-script/ ?
@yyoncho using this config when trying to start dap-mode
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "DAP clojurescript",
"url": "",
"sourceMaps": true,
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"*": "${workspaceFolder}/src/main/*"
},
"runtimeExecutable": "/run/current-system/sw/bin/google-chrome-stable",
"runtimeArgs": [
"--new-window",
"-user-data-dir=\"${workspaceFolder}/DevProfile\"",
"--remote-debugging-port=9222",
"--disable-background-networking"
]
}
]
}
gives me back crbug/1173575, non-JS module files deprecated.
and chrome says This site can't be reached
I have partially solved this issue by adding:
:dev-http
{3000 {:root "public" :handler user/app}}
to my shadow-cljs
configuration, and pointing the url
in the dap config to 3000
instead. So now I'm able to get in the debugger, but it doesn't seem to workA few times, to people having problems with MUI and shadow-cljs I have suggested to set :output-feature-set :es5
which appeared to work.
But seems like it's not the right way to do it. The correct fix would be to use :js-options {:entry-keys ["module" "browser" "main"]}
as per https://clojurians.slack.com/archives/C03S1L9DN/p1633252216062300?thread_ts=1633094777.021800&cid=C03S1L9DN
👍 1
1