Fork me on GitHub
#clojurescript
<
2019-06-07
>
brandon04:06:33

Hello, I'm trying to use some namespaces implemented in JavaScript in a ClojureScript codebase. Currently it works just fine if the JS uses goog.provide("...") - curious if CLJS supports the newer goog.module("...") mechanism described here? https://google.github.io/styleguide/jsguide.html#appendices-legacy-exceptions-goog-provide According to this, goog,provide is deprecated

Jacob Haag14:06:13

Does anyone know of a good way to debug clojurescript code in VS Code?

zane16:06:24

By "debug" do you mean with an interactive debugger (stepper, etc)?

zane16:06:40

If so, you're probably out of luck.

zane16:06:56

Clojure programmers tend to rely much more heavily on println-style debugging.

Jacob Haag17:06:31

Good to know, I wasn't sure because VS Code enables JS debugging and devtools enables cljs debugging. I didn't know if the two tools came together or if it's even possible

zane17:06:36

Ah, yeah. I'm not sure if that's possible, but I'd be surprised.

john18:06:06

@jacobhaag17 I assume you've heard of #calva-dev?

Jacob Haag18:06:44

@U050PJ2EU I have, didn't want to be that specific to an extension, but it seems worth it to throw the same question out there

Alan Thompson17:06:57

I always prefer either println or log statements, which work anywhere. Especially handy when prefixed with a keyword tag, so you can filter the output with grep of the browser console filter box.

😀 4
dnolen20:06:01

@brandon268 we don't support it yet - but far as I can tell there's no hurry either

dnolen20:06:14

10 years of goog.provide isn't going to magically go away

dnolen20:06:56

if VS Code JS support is generic and not specific to TypeScript

dnolen20:06:23

if it does just work that would be an awesome blog post

4