This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-14
Channels
- # ai (24)
- # announcements (36)
- # babashka (15)
- # babashka-sci-dev (8)
- # beginners (18)
- # biff (4)
- # calva (24)
- # cider (13)
- # clj-kondo (1)
- # clj-on-windows (2)
- # clojars (15)
- # clojure (120)
- # clojure-dev (13)
- # clojure-europe (69)
- # clojure-nl (1)
- # clojure-norway (8)
- # clojure-uk (2)
- # clojurescript (4)
- # core-logic (2)
- # cursive (6)
- # datomic (193)
- # dev-tooling (4)
- # emacs (1)
- # hyperfiddle (57)
- # lsp (56)
- # malli (11)
- # missionary (15)
- # nbb (61)
- # off-topic (8)
- # polylith (8)
- # practicalli (2)
- # proletarian (1)
- # reitit (3)
- # releases (2)
- # remote-jobs (1)
- # shadow-cljs (13)
- # spacemacs (1)
- # specter (2)
- # sql (17)
- # tools-deps (3)
- # vim (38)
want: target nbb
for https://playwright.dev/docs/debug#playwright-inspector.
@U5H74UNSF why do we need this if have already have a REPL, and e.g. https://github.com/borkdude/deflet? You can "debug" your build as you're writing it and use the code you wrote to "debug" as the final product
the inspector lets me drive the browser interactively and generates the test code for us
all this tooling is pretty great, uphill battle to replicate it, maybe better to just use nbb to talk to our api but stick to js for the browser tests
these reports and traces also look pretty nice https://playwright.dev/docs/trace-viewer-intro
Maybe they have an API to let you plug in what language you want to generate, but not sure if it's worth it compared to the generated JS
npx playwright codegen
is so good and the reason we have typescript test files in our cljs project
Regarding https://github.com/clojure-lsp/clojure-lsp/issues/1418#issuecomment-1443705502, I tried add that to nbb
and failed after recall I can't shell-out in js 😅 any tips?
what I tried to add at src/nbb/impl/main.cljs
(when (:print-classpath opts)
(println (process/shell "bb" "print-deps" "--format" "classpath"))
(js/process.exit 0))
I tried with both babaska.process and clojure.java.shell, for babashka.process I tried adding on deps.edn but didn't find the deps, not sure if I should do something else
I'm doing ATM
(println (.toString (cproc/execSync "bb --config nbb.edn print-deps --format classpath")))
now we need to include nbb deps or you think this is already enough? (note the --config nbb.edn there, not sure if we should pass a different cwd)I couldn't find a better way to test the shell-out https://github.com/babashka/nbb/pull/321
I think it would be useful to have the same API as with bb:
bb print-deps --format <classpath> | <deps>
I think print-deps
might print too much when going through bb though, it will print its own deps too and e.g. not promesa etc, I think?
I mean, the correct for nbb would be to print the deps from nbb's deps.edn right? but bb print-deps --format classpath
would print bb deps which are not included in nbb IIUC
> include the deps.edn
into the CLJS build via a macro
how can we do that, not sure I get how that will work
I think it might be better to not use bb print-deps
after all.
See nbb.impl.deps
which extracts the dependencies of nbb.edn
into .nbb/.cache/.blablabla
and this is what nbb uses as its classpath. you can get this classpath with nbb.classpath/get-classpath
so would be a merge of nbb.classpath/get-classpath
+ builtin deps that are in nbb's deps.edn