{ "args": "--target-cpu x86-64-v3 --fp-mode contract=off", "askedAt": "2026-11-12T18:21:53+00:00", "attempts": 1, "compiler": "mojo_1_2_0", "firstItem": "manual/code/manual/errors/test_variant_errors", "key": "07748830893c4257ab495050c3d8ed77f5ea96d00ea18496a8fd13040e286a90", "mode": "run", "raw": { "buildResult": { "code": 1, "compilationOptions": [ "build", "-g1", "-o", "/app/output.s", "--target-cpu", "x86-64-v3", "--fp-mode", "contract=off", "/app/example.mojo", "-Xlinker=-L./lib", "-Xlinker=-rpath=./lib" ], "downloads": [], "execTime": 381, "executableFilename": "/nosym/tmp/compiler-explorer-compilerm31s6r/output.s", "inputFilename": "example.mojo", "instructionSet": "amd64", "okToCache": true, "processExecutionResultTime": 0.06009200029075146, "stderr": [ { "tag": { "column": 6, "file": "example.mojo", "line": 15, "severity": 3, "text": "error: unable to locate module 'variant_errors'" }, "text": ":15:6: error: unable to locate module 'variant_errors'" }, { "text": "from variant_errors import FileError, NotFoundError, PermissionError, open_file" }, { "text": " ^" }, { "tag": { "column": 13, "file": "example.mojo", "line": 39, "severity": 3, "text": "error: 'Error' value has no attribute 'isa'" }, "text": ":39:13: error: 'Error' value has no attribute 'isa'" }, { "text": " if e.isa[NotFoundError]():" }, { "text": " ~^" }, { "tag": { "column": 13, "file": "example.mojo", "line": 53, "severity": 3, "text": "error: 'Error' value has no attribute 'isa'" }, "text": ":53:13: error: 'Error' value has no attribute 'isa'" }, { "text": " if e.isa[PermissionError]():" }, { "text": " ~^" }, { "tag": { "column": 25, "file": "example.mojo", "line": 67, "severity": 3, "text": "error: 'Error' value has no attribute 'isa'" }, "text": ":67:25: error: 'Error' value has no attribute 'isa'" }, { "text": " is_not_found = e.isa[NotFoundError]()" }, { "text": " ~^" }, { "tag": { "column": 26, "file": "example.mojo", "line": 68, "severity": 3, "text": "error: 'Error' value has no attribute 'isa'" }, "text": ":68:26: error: 'Error' value has no attribute 'isa'" }, { "text": " is_permission = e.isa[PermissionError]()" }, { "text": " ~^" }, { "text": "/opt/compiler-explorer/mojo-1.2.0/bin/mojo: error: failed to parse the provided Mojo source module" } ], "stdout": [], "timedOut": false, "truncated": false }, "code": -1, "didExecute": false, "execTime": 457, "okToCache": false, "queueTime": 5, "stderr": [ { "text": "Build failed" } ], "stdout": [], "timedOut": false }, "result": { "asm": null, "buildStderr": ":15:6: error: unable to locate module 'variant_errors'\nfrom variant_errors import FileError, NotFoundError, PermissionError, open_file\n ^\n:39:13: error: 'Error' value has no attribute 'isa'\n if e.isa[NotFoundError]():\n ~^\n:53:13: error: 'Error' value has no attribute 'isa'\n if e.isa[PermissionError]():\n ~^\n:67:25: error: 'Error' value has no attribute 'isa'\n is_not_found = e.isa[NotFoundError]()\n ~^\n:68:26: error: 'Error' value has no attribute 'isa'\n is_permission = e.isa[PermissionError]()\n ~^\n/opt/compiler-explorer/mojo-1.2.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.69, "sourceSha256": "15415403dc27177cf32387ea347a74e86d629d621ed0cc91cedb6b1ec98e17cd", "stdin": "" }