-
Notifications
You must be signed in to change notification settings - Fork 229
Open
Labels
@haraldschilly
Description
I saw this when checking for caught bugs in projects. It happens when handling a sagews message. Would be interesting to know if this is caught by rewriting to TS. the console.trace I hope so, but the "doc must be set" ?
2021年07月09日T14:39:00.113Z - ESC[34mdebugESC[39m: SageSession(path='Individual Files/Maria/Critical Points - Sage 1 - Updated.sagews').init_socket(): sage session: received message json
2021年07月09日T14:39:00.113Z - ESC[34mdebugESC[39m: SageSession(path='Individual Files/Maria/Critical Points - Sage 1 - Updated.sagews')._handle_mesg_json: mesg='{"event":"output","id":"d38a5f97-c2d7-4acf-a837-59f8ed57094a","done":true}'
2021年07月09日T14:39:00.118Z - ESC[34mdebugESC[39m: SageSession(path='Individual Files/Maria/Critical Points - Sage 1 - Updated.sagews').init_socket(): sage session: received message json
2021年07月09日T14:39:00.118Z - ESC[34mdebugESC[39m: SageSession(path='Individual Files/Maria/Critical Points - Sage 1 - Updated.sagews')._handle_mesg_json: mesg='{"event":"output","id":"1b395f8f-2437-44af-9361-f61cf2cb0fd1","stdout":"dict_values([1/2*y + 1/2, x^2, 1/108*x^2 + 1/
27*y + 14/27, 3/64*x^2 + 1/64*x*y + 3/64*x + 63/64, 1/144*x^2 + 1/432*(x + 13)*y + 1/108*x + 55/108, -5/27*x^2 + 1/27*(x + 7)*y - 2/27*x + 5/9, 1/324*(x + 5)*y + 1/2, 1/32*(x - 5)*y + 1/2])\n","done":false}'
2021年07月09日T14:39:00.118Z - ESC[34mdebugESC[39m: SageSession(path='Individual Files/Maria/Critical Points - Sage 1 - Updated.sagews').init_socket(): sage session: received message json
2021年07月09日T14:39:00.118Z - ESC[34mdebugESC[39m: SageSession(path='Individual Files/Maria/Critical Points - Sage 1 - Updated.sagews')._handle_mesg_json: mesg='{"event":"output","id":"1b395f8f-2437-44af-9361-f61cf2cb0fd1","stdout":"\n","done":false}'
2021年07月09日T14:39:00.203Z - ESC[34mdebugESC[39m: BUG ****************************************************************************
2021年07月09日T14:39:00.203Z - ESC[34mdebugESC[39m: Uncaught exception: Error: doc must be set
2021年07月09日T14:39:00.257Z - ESC[34mdebugESC[39m: /cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/sync/editor/generic/sync-doc.ts:468
throw Error("doc must be set");
^
Error: doc must be set
at SyncString.SyncDoc.to_str (/cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/dist/sync/editor/generic/sync-doc.js:419:19)
-> /cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/sync/editor/generic/sync-doc.ts:468:13
at hook (/cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/dist/sync/editor/generic/evaluator.js:357:41)
-> /cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/sync/editor/generic/evaluator.ts:294:34
at Timeout._onTimeout (/cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/dist/sync/editor/generic/evaluator.js:401:45)
-> /cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/sync/editor/generic/evaluator.ts:343:24
at listOnTimeout (internal/timers.js:555:17)
at processTimers (internal/timers.js:498:7)
2021年07月09日T14:39:00.257Z - ESC[34mdebugESC[39m: BUG ****************************************************************************
/cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/dist/..local_hub.coffee:38
console.trace()
^
Trace
at process.<anonymous> (/cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/dist/local_hub.js:65:15)
-> /cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/dist/..local_hub.coffee:38:17
at process.emit (events.js:376:20)
at process._fatalException (internal/process/execution.js:163:25)
2021年07月09日T14:39:00.353Z - ESC[34mdebugESC[39m: BUG ****************************************************************************
2021年07月09日T14:39:00.353Z - ESC[34mdebugESC[39m: Uncaught exception: Error: doc must be set
2021年07月09日T14:39:00.392Z - ESC[34mdebugESC[39m: /cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/sync/editor/generic/sync-doc.ts:468
throw Error("doc must be set");
^
Error: doc must be set
at SyncString.SyncDoc.to_str (/cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/dist/sync/editor/generic/sync-doc.js:419:19)
-> /cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/sync/editor/generic/sync-doc.ts:468:13
at hook (/cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/dist/sync/editor/generic/evaluator.js:357:41)
-> /cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/sync/editor/generic/evaluator.ts:294:34
at Timeout._onTimeout (/cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/dist/sync/editor/generic/evaluator.js:401:45)
-> /cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/sync/editor/generic/evaluator.ts:343:24
at listOnTimeout (internal/timers.js:555:17)
at processTimers (internal/timers.js:498:7)
2021年07月09日T14:39:00.392Z - ESC[34mdebugESC[39m: BUG ****************************************************************************
/cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/dist/..local_hub.coffee:38
console.trace()
^
Trace
at process.<anonymous> (/cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/dist/local_hub.js:65:15)
-> /cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/dist/..local_hub.coffee:38:17
at process.emit (events.js:376:20)
at process._fatalException (internal/process/execution.js:163:25)
2021年07月09日T14:39:00.394Z - ESC[34mdebugESC[39m: BUG ****************************************************************************
2021年07月09日T14:39:00.394Z - ESC[34mdebugESC[39m: Uncaught exception: Error: doc must be set
2021年07月09日T14:39:00.408Z - ESC[34mdebugESC[39m: /cocalc/nvm/versions/node/v14.17.0/lib/node_modules/smc-project/node_modules/smc-util/sync/editor/generic/sync-doc.ts:468
throw Error("doc must be set");
^
Error: doc must be set