106 lines
3.2 KiB
JSON
106 lines
3.2 KiB
JSON
{
|
|
"args": "",
|
|
"askedAt": "2026-10-03T14:29:16+00:00",
|
|
"compiler": "mojo_1_1_0",
|
|
"firstItem": "quest/MQ-115/starter",
|
|
"key": "b8c1e34fa23301965f41cd8f7ea63b7d48c914628be1725c05e28c393c33875f",
|
|
"mode": "run",
|
|
"raw": {
|
|
"buildResult": {
|
|
"code": 1,
|
|
"compilationOptions": [
|
|
"build",
|
|
"/app/example.mojo"
|
|
],
|
|
"downloads": [],
|
|
"execTime": 206,
|
|
"executableFilename": "/nosym/tmp/compiler-explorer-compilerp4yyNd/example",
|
|
"inputFilename": "example.mojo",
|
|
"instructionSet": "amd64",
|
|
"okToCache": true,
|
|
"processExecutionResultTime": 0.06351600028574467,
|
|
"stderr": [
|
|
{
|
|
"tag": {
|
|
"column": 34,
|
|
"file": "example.mojo",
|
|
"line": 8,
|
|
"severity": 3,
|
|
"text": "error: cannot call function that may raise in a context that cannot raise"
|
|
},
|
|
"text": "<source>:8:34: error: cannot call function that may raise in a context that cannot raise"
|
|
},
|
|
{
|
|
"text": " print(\"reading:\", read_sensor(2))"
|
|
},
|
|
{
|
|
"text": " ~~~~~~~~~~~^~~"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 34,
|
|
"file": "example.mojo",
|
|
"line": 8,
|
|
"severity": 1,
|
|
"text": "note: try surrounding the call in a 'try' block"
|
|
},
|
|
"text": "<source>:8:34: note: try surrounding the call in a 'try' block"
|
|
},
|
|
{
|
|
"text": " print(\"reading:\", read_sensor(2))"
|
|
},
|
|
{
|
|
"text": " ^"
|
|
},
|
|
{
|
|
"tag": {
|
|
"column": 5,
|
|
"file": "example.mojo",
|
|
"line": 7,
|
|
"severity": 1,
|
|
"text": "note: or mark surrounding function as 'raises'"
|
|
},
|
|
"text": "<source>:7: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": 284,
|
|
"okToCache": false,
|
|
"queueTime": 9,
|
|
"stderr": [
|
|
{
|
|
"text": "Build failed"
|
|
}
|
|
],
|
|
"stdout": [],
|
|
"timedOut": false
|
|
},
|
|
"result": {
|
|
"asm": null,
|
|
"buildStderr": "<source>:8:34: error: cannot call function that may raise in a context that cannot raise\n print(\"reading:\", read_sensor(2))\n ~~~~~~~~~~~^~~\n<source>:8:34: note: try surrounding the call in a 'try' block\n print(\"reading:\", read_sensor(2))\n ^\n<source>:7: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": "f6c9f8b9ef1bad09a754de3596cbca065d8b62f3834a234b2096edc127e215c1",
|
|
"stdin": ""
|
|
}
|