You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Step through the function until evaluation is complete (F10)
Try to evaluate the function regularly to remove the instrumentation and notice that the decorations do not disappear as they should
The following error appears in the debug console when running calva in debug mode and after performing the above steps:
stack trace: Error: The map literal starting with :filename contains 7 form(s). Map literals must contain an even number of forms.
at new cljs$core$ExceptionInfo (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/core.cljs:11332:1)
at Function.cljs$core$IFn$_invoke$arity$3 (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/core.cljs:11361:1)
at Function.cljs$core$IFn$_invoke$arity$2 (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/core.cljs:11361:1)
at Function.cljs$core$IFn$_invoke$arity$variadic (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/tools/reader/impl/errors.cljs:29:3)
at Function.cljs$core$IFn$_invoke$arity$variadic (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/tools/reader/impl/errors.cljs:39:1)
at Object.cljs$tools$reader$impl$errors$throw_odd_map [as throw_odd_map] (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/tools/reader/impl/errors.cljs:70:1)
at cljs$tools$reader$edn$read_map (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/tools/reader/edn.cljs:200:5)
at Object.cljs$tools$reader$edn$read_delimited [as read_delimited] (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/tools/reader/edn.cljs:175:11)
at cljs$tools$reader$edn$read_vector (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/tools/reader/edn.cljs:188:1)
at Object.the-map [as read_delimited] (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/tools/reader/edn.cljs:175:11)
at cljs$tools$reader$edn$read_map (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/tools/reader/edn.cljs:196:9)
at Function.cljs$core$IFn$_invoke$arity$4 (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/tools/reader/edn.cljs:411:23)
at Function.cljs$core$IFn$_invoke$arity$2 (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/tools/reader/edn.cljs:399:6)
at Function.cljs$core$IFn$_invoke$arity$2 (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/tools/reader/edn.cljs:447:6)
at Function.cljs$core$IFn$_invoke$arity$2 (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/cljs/reader.cljs:174:1)
at Object.calva$parse$parse_edn [as parse_edn] (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/calva/parse.cljs:9:1)
at Object.calva$parse$parse_edn_js [as parse_edn_js] (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/calva/parse.cljs:21:1)
at calva$parse$parse_edn_js_bridge (/home/brandon/development/calva/.shadow-cljs/builds/calva-lib/dev/out/cljs-runtime/calva/parse.cljs:24:1)
at /home/brandon/development/calva/src/debugger/decorations.ts:27:12
at Generator.next (<anonymous>)
at fulfilled (/home/brandon/development/calva/out/debugger/decorations.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
extensionHostProcess.js:976
Right before the above error is thrown, if you put a breakpoint at the return line of this function in decorations.ts,
This results in the error mentioned above because of {:filename "<stdin>", :row 1, :col 1, ...}.
Before the error happens, resEdn contains unshortened/full results. So we need to figure out what is causing the switch to shortened results. Is something setting *print-length*?
The text was updated successfully, but these errors were encountered:
This is related to #631. I just need to remove that line, but I'm about to be afk for a while and may not be able to get to it until later tonight or tomorrow.
Also this makes me realize that we should probably set *print-length* to false and then back to what it was before inside getLintAnalysis so that when the user sets *print-length* it doesn't break debug decorations.
bpringe
changed the title
Debug decorations are breaking after completed debug session
Debug decorations are breaking after stepping through code during debug session
Jun 15, 2020
Steps to reproduce:
The following error appears in the debug console when running calva in debug mode and after performing the above steps:
Right before the above error is thrown, if you put a breakpoint at the return line of this function in decorations.ts,
when execution pauses there you will see that
resEdn
looks like it was printed with a short*print-length*
value.This results in the error mentioned above because of
{:filename "<stdin>", :row 1, :col 1, ...}
.Before the error happens,
resEdn
contains unshortened/full results. So we need to figure out what is causing the switch to shortened results. Is something setting*print-length*
?The text was updated successfully, but these errors were encountered: