This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-10
Channels
- # announcements (4)
- # beginners (111)
- # boot (34)
- # cider (67)
- # cljdoc (10)
- # clojure (90)
- # clojure-dev (37)
- # clojure-europe (3)
- # clojure-gamedev (3)
- # clojure-italy (18)
- # clojure-losangeles (2)
- # clojure-nl (27)
- # clojure-spec (24)
- # clojure-uk (59)
- # clojurescript (41)
- # cursive (32)
- # datomic (31)
- # emacs (21)
- # figwheel (1)
- # figwheel-main (2)
- # fulcro (43)
- # graalvm (6)
- # graphql (3)
- # jobs-discuss (3)
- # kaocha (1)
- # nyc (1)
- # off-topic (22)
- # pathom (10)
- # pedestal (11)
- # re-frame (9)
- # reitit (17)
- # shadow-cljs (15)
- # spacemacs (13)
- # sql (6)
- # testing (5)
- # tools-deps (3)
- # vim (13)
- # yada (1)
I generated a source map for my advanced compiled production build and put it in production. However, it's not fully working - the browser recognizes the source map, and stack traces now include the right file names and line numbers, but the symbols/names are still mangled. Also, when I click on a file location, the source is empty. Any pointers?
@christian767 the original sources can't be resolved - that's all
I guess 🙂 Well, copying the sources over solved the navigation, but the symbols on the left are still garbled
@christian767 if you are debugging :advanced
issues setting :pseudo-names true
is very helpful since it makes the names actually somewhat readable
Ok, thanks. I'll try that. I expected that source maps would know to translate PZ
to taoensse.timbre/log
, but that's perhaps hoping for too much?
but doing that translation is quite costly so browser probably just don't do it at that level
:advanced
also changes the code in pretty dramatic ways .. so it might just not be possible to map it back
btw, does anyone know of tools for parsing source maps on the JVM? Something like this, just for the JVM: https://github.com/mozilla/source-map/
yeah, there is something in the closure compiler for that. its just not well documented. see https://clojureverse.org/t/server-side-decoding-of-javascript-sourcemaps/1591/3?u=thheller
@thheller where does com.google.debugging.sourcemap
come from? com.google.javascript/closure-compiler-unshaded
?
you don't also happen to know where to look for stack trace parsing utilities in closure?