Files
pplus-core/mojo/golden/ba9574c1c5d634373ef85db14a870f14defd78a3d47c9b2d6f4b87b28f457103.json
T
2026-10-05 03:03:38 +00:00

106 lines
3.3 KiB
JSON

{
"args": "",
"askedAt": "2026-10-03T14:30:01+00:00",
"compiler": "mojo_1_1_0",
"firstItem": "quest/MQ-222/starter",
"key": "ba9574c1c5d634373ef85db14a870f14defd78a3d47c9b2d6f4b87b28f457103",
"mode": "run",
"raw": {
"buildResult": {
"code": 1,
"compilationOptions": [
"build",
"/app/example.mojo"
],
"downloads": [],
"execTime": 209,
"executableFilename": "/nosym/tmp/compiler-explorer-compileraOYF5m/example",
"inputFilename": "example.mojo",
"instructionSet": "amd64",
"okToCache": true,
"processExecutionResultTime": 0.0477370023727417,
"stderr": [
{
"tag": {
"column": 39,
"file": "example.mojo",
"line": 8,
"severity": 3,
"text": "error: cannot call function that may raise in a context that cannot raise"
},
"text": "<source>:8:39: error: cannot call function that may raise in a context that cannot raise"
},
{
"text": " print(\"joint angle:\", joint_angles[\"joint_3\"])"
},
{
"text": " ~~~~~~~~~~~~^~~~~~~~~~~"
},
{
"tag": {
"column": 39,
"file": "example.mojo",
"line": 8,
"severity": 1,
"text": "note: try surrounding the call in a 'try' block"
},
"text": "<source>:8:39: note: try surrounding the call in a 'try' block"
},
{
"text": " print(\"joint angle:\", joint_angles[\"joint_3\"])"
},
{
"text": " ^"
},
{
"tag": {
"column": 5,
"file": "example.mojo",
"line": 4,
"severity": 1,
"text": "note: or mark surrounding function as 'raises'"
},
"text": "<source>:4:5: note: or mark surrounding function as 'raises'"
},
{
"text": "def main():"
},
{
"text": " ^"
},
{
"text": "/opt/compiler-explorer/mojo-1.1.0/bin/mojo: error: failed to parse the provided Mojo source module"
}
],
"stdout": [],
"timedOut": false,
"truncated": false
},
"code": -1,
"didExecute": false,
"execTime": 275,
"okToCache": false,
"queueTime": 3,
"stderr": [
{
"text": "Build failed"
}
],
"stdout": [],
"timedOut": false
},
"result": {
"asm": null,
"buildStderr": "<source>:8:39: error: cannot call function that may raise in a context that cannot raise\n print(\"joint angle:\", joint_angles[\"joint_3\"])\n ~~~~~~~~~~~~^~~~~~~~~~~\n<source>:8:39: note: try surrounding the call in a 'try' block\n print(\"joint angle:\", joint_angles[\"joint_3\"])\n ^\n<source>:4:5: note: or mark surrounding function as 'raises'\ndef main():\n ^\n/opt/compiler-explorer/mojo-1.1.0/bin/mojo: error: failed to parse the provided Mojo source module",
"compiled": false,
"executed": false,
"exitCode": -1,
"stderr": "Build failed",
"stdout": "",
"timedOut": false
},
"seconds": 0.5,
"sourceSha256": "529119468bf5c6e10bd953f583d264f2ceca2b7c079cb77aaa2de86ae38abc9e",
"stdin": ""
}