This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
+86
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"args": "--target-cpu x86-64-v3 --fp-mode contract=off",
|
||||
"askedAt": "2026-11-12T18:34:53+00:00",
|
||||
"attempts": 1,
|
||||
"compiler": "mojo_1_2_0",
|
||||
"firstItem": "probes/string-length",
|
||||
"key": "257e831afb143e7cb082f130b76aa386c57f3233dda8fd1f7ab34368ad907f03",
|
||||
"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": 590,
|
||||
"executableFilename": "/nosym/tmp/compiler-explorer-compilerboiKqR/output.s",
|
||||
"inputFilename": "example.mojo",
|
||||
"instructionSet": "amd64",
|
||||
"okToCache": true,
|
||||
"processExecutionResultTime": 0.0544659998267889,
|
||||
"stderr": [
|
||||
{
|
||||
"tag": {
|
||||
"column": 11,
|
||||
"file": "example.mojo",
|
||||
"line": 4,
|
||||
"severity": 3,
|
||||
"text": "error: `len(String/StringSlice)` is not supported because Mojo strings are UTF-8 encoded, so a single length is ambiguous: it could mean the number of UTF-8 bytes, the number of Unicode code points, or the number of user-visible characters (grapheme clusters). Use `s.byte_length()` or `len(s.bytes())` for the number of UTF-8 bytes, `len(s.codepoints())` for Unicode code points, or `len(s.graphemes())` for grapheme clusters."
|
||||
},
|
||||
"text": "<source>:4:11: error: `len(String/StringSlice)` is not supported because Mojo strings are UTF-8 encoded, so a single length is ambiguous: it could mean the number of UTF-8 bytes, the number of Unicode code points, or the number of user-visible characters (grapheme clusters). Use `s.byte_length()` or `len(s.bytes())` for the number of UTF-8 bytes, `len(s.codepoints())` for Unicode code points, or `len(s.graphemes())` for grapheme clusters."
|
||||
},
|
||||
{
|
||||
"text": " print(len(s))"
|
||||
},
|
||||
{
|
||||
"text": " ^~~"
|
||||
},
|
||||
{
|
||||
"text": "<unknown>:0: note: 'len' declared here"
|
||||
},
|
||||
{
|
||||
"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": 757,
|
||||
"okToCache": false,
|
||||
"queueTime": 7,
|
||||
"stderr": [
|
||||
{
|
||||
"text": "Build failed"
|
||||
}
|
||||
],
|
||||
"stdout": [],
|
||||
"timedOut": false
|
||||
},
|
||||
"result": {
|
||||
"asm": null,
|
||||
"buildStderr": "<source>:4:11: error: `len(String/StringSlice)` is not supported because Mojo strings are UTF-8 encoded, so a single length is ambiguous: it could mean the number of UTF-8 bytes, the number of Unicode code points, or the number of user-visible characters (grapheme clusters). Use `s.byte_length()` or `len(s.bytes())` for the number of UTF-8 bytes, `len(s.codepoints())` for Unicode code points, or `len(s.graphemes())` for grapheme clusters.\n print(len(s))\n ^~~\n<unknown>:0: note: 'len' declared here\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.98,
|
||||
"sourceSha256": "5033aab79ff3be2f550c063c967be459df63ad8e33ab2147f1967c2c75830d4e",
|
||||
"stdin": ""
|
||||
}
|
||||
Reference in new issue
Block a user