Closed dshaw closed 2 months ago
In a modeling-app core dump file, KCL Errors are an array under KCL Manager in the Client State section:
{ "client_state": { "kcl_manager": { "kcl_errors": [] } } }
To view a KCL Error in a core dump or check for errors from the command line make sure you have curl and jq installed:
curl 'URL' | jq '.client_state.kcl_manager.kcl_errors'
To grab the URL for the core dump in this issue, expand the Core Dump section where you can right click and copy the link address for coredump-fc51898c-c4d5-4869-9e82-9a20c33df444.json:
curl 'https://public.blob.zoo.dev/f1969be9-4411-428b-b8a6-3690230a6756/modeling-app/coredump-fc51898c-c4d5-4869-9e82-9a20c33df444.json' | jq '.client_state.kcl_manager.kcl_errors'
If you download the file, cat the file and pass it jq:
cat
jq
cat 'f1969be9-4411-428b-b8a6-3690230a6756/modeling-app/coredump-fc51898c-c4d5-4869-9e82-9a20c33df444.json' | jq '.client_state.kcl_manager.kcl_errors'
This will output:
[ { "kind": "lexical", "sourceRanges": [ [ 640, 641 ] ], "msg": "found unknown token '🦄'" } ]
Core Dump with KCL Error
In a modeling-app core dump file, KCL Errors are an array under KCL Manager in the Client State section:
To view a KCL Error in a core dump or check for errors from the command line make sure you have curl and jq installed:
curl 'URL' | jq '.client_state.kcl_manager.kcl_errors'
To grab the URL for the core dump in this issue, expand the Core Dump section where you can right click and copy the link address for coredump-fc51898c-c4d5-4869-9e82-9a20c33df444.json:
If you download the file,
cat
the file and pass itjq
:This will output:
Core Dump
[coredump-fc51898c-c4d5-4869-9e82-9a20c33df444.json](https://public.blob.zoo.dev/f1969be9-4411-428b-b8a6-3690230a6756/modeling-app/coredump-fc51898c-c4d5-4869-9e82-9a20c33df444.json) Reference ID: fc51898c-c4d5-4869-9e82-9a20c33df444