Fork me on GitHub
#keechma
<
2018-02-05
>
mjmeintjes02:02:44

@mihaelkonjevic Do you know how to get source-mappings working with pipeline controllers? Currently, when a pipeline controller throws an exception (i.e. in a promise), I get a long stack trace, but the line numbers do not correspond with the cljs code. I'm using shadow-cljs, so not sure if this is a common problem, but was just wondering whether it is something I'm doing wrong or just the way things are.

mihaelkonjevic12:02:26

@mjmeintjes This is a tricky one, but I did find a solution. First, there are some changes in Keechma Toolbox that will be pushed in the next release. This will get us half way there - it will report the correct error location in the built JS file. Second part of the solution is https://www.npmjs.com/package/source-map-support which needs to be installed in the app so it applies source maps to the stacktrace

mihaelkonjevic12:02:25

this is how the stack trace looks then:

mihaelkonjevic12:02:01

I’ll push the new version of Keechma Toolbox this week