Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit44124f3

Browse files
committed
Tracebacks with stack_data
1 parent1a56bf2 commit44124f3

File tree

8 files changed

+185
-167
lines changed

8 files changed

+185
-167
lines changed

‎backend/main/test_transcript.json‎

Lines changed: 83 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -82,67 +82,19 @@
8282
},
8383
{
8484
"color":"red",
85-
"text":" File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/code.py\", line63, in runsource\n"
85+
"text":" File\"my_program.py\", line1\n"
8686
},
8787
{
8888
"color":"red",
89-
"text":"File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/codeop.py\", line 168, in __call__\n"
89+
"text":" 3 x 4\n"
9090
},
9191
{
9292
"color":"red",
93-
"text":"File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/codeop.py\", line 99, in _maybe_compile\n"
93+
"text":" ^\n"
9494
},
9595
{
9696
"color":"red",
97-
"text":" File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/codeop.py\", line 87, in _maybe_compile\n"
98-
},
99-
{
100-
"color":"red",
101-
"text":" File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/codeop.py\", line 133, in __call__\n"
102-
},
103-
{
104-
"color":"red",
105-
"text":" File\"<console>\", line 1\n"
106-
},
107-
{
108-
"color":"red",
109-
"text":""
110-
},
111-
{
112-
"color":"red",
113-
"text":"3 x 4\n"
114-
},
115-
{
116-
"color":"red",
117-
"text":""
118-
},
119-
{
120-
"color":"red",
121-
"text":""
122-
},
123-
{
124-
"color":"red",
125-
"text":""
126-
},
127-
{
128-
"color":"red",
129-
"text":"^\n"
130-
},
131-
{
132-
"color":"red",
133-
"text":"SyntaxError"
134-
},
135-
{
136-
"color":"red",
137-
"text":":"
138-
},
139-
{
140-
"color":"red",
141-
"text":"invalid syntax"
142-
},
143-
{
144-
"color":"red",
145-
"text":"\n"
97+
"text":"SyntaxError: invalid syntax\n"
14698
},
14799
{
148100
"color":"white",
@@ -446,27 +398,15 @@
446398
},
447399
{
448400
"color":"red",
449-
"text":" File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/code.py\", line 90, in runcode\n"
450-
},
451-
{
452-
"color":"red",
453-
"text":" File\"<console>\", line 1, in <module>\n"
454-
},
455-
{
456-
"color":"red",
457-
"text":"NameError"
458-
},
459-
{
460-
"color":"red",
461-
"text":":"
401+
"text":" File\"my_program.py\", line 1, in <module>\n"
462402
},
463403
{
464404
"color":"red",
465-
"text":"name 'sunshine' is not defined"
405+
"text":"--> 1 |\u001b[38;5;15msunshine\u001b[39m\n"
466406
},
467407
{
468408
"color":"red",
469-
"text":"\n"
409+
"text":"NameError: name 'sunshine' is not defined\n"
470410
},
471411
{
472412
"color":"white",
@@ -1024,11 +964,23 @@
1024964
"result": [
1025965
{
1026966
"color":"red",
1027-
"text":" File\"my_program.py\", line 2\n print(character)\n ^\nIndentationError: expected an indented block\n"
967+
"text":"Traceback (most recent call last):\n"
1028968
},
1029969
{
1030970
"color":"red",
1031-
"text":"\n"
971+
"text":" File\"my_program.py\", line 2\n"
972+
},
973+
{
974+
"color":"red",
975+
"text":" print(character)\n"
976+
},
977+
{
978+
"color":"red",
979+
"text":" ^\n"
980+
},
981+
{
982+
"color":"red",
983+
"text":"IndentationError: expected an indented block\n"
1032984
},
1033985
{
1034986
"color":"white",
@@ -1248,11 +1200,23 @@
12481200
"result": [
12491201
{
12501202
"color":"red",
1251-
"text":" File\"my_program.py\", line 3\n print('---')\n ^\nIndentationError: unindent does not match any outer indentation level\n"
1203+
"text":"Traceback (most recent call last):\n"
12521204
},
12531205
{
12541206
"color":"red",
1255-
"text":"\n"
1207+
"text":" File\"my_program.py\", line 3\n"
1208+
},
1209+
{
1210+
"color":"red",
1211+
"text":" print('---')\n"
1212+
},
1213+
{
1214+
"color":"red",
1215+
"text":" ^\n"
1216+
},
1217+
{
1218+
"color":"red",
1219+
"text":"IndentationError: unindent does not match any outer indentation level\n"
12561220
},
12571221
{
12581222
"color":"white",
@@ -1539,10 +1503,6 @@
15391503
"birdseye_url":null,
15401504
"message":"",
15411505
"result": [
1542-
{
1543-
"color":"white",
1544-
"text":""
1545-
},
15461506
{
15471507
"color":"white",
15481508
"text":"\n"
@@ -2493,10 +2453,6 @@
24932453
"birdseye_url":null,
24942454
"message":"",
24952455
"result": [
2496-
{
2497-
"color":"white",
2498-
"text":""
2499-
},
25002456
{
25012457
"color":"white",
25022458
"text":"\u001b[38;5;242m\u001b[0m\u001b[38;5;242m 1\u001b[0m | sentence\u001b[38;5;197m=\u001b[39m\u001b[38;5;186m'\u001b[39m\u001b[38;5;186mHello World\u001b[39m\u001b[38;5;186m'\u001b[39m\n"
@@ -2697,10 +2653,6 @@
26972653
"color":"white",
26982654
"text":"\n"
26992655
},
2700-
{
2701-
"color":"white",
2702-
"text":""
2703-
},
27042656
{
27052657
"color":"white",
27062658
"text":">>>"
@@ -2940,11 +2892,19 @@
29402892
"result": [
29412893
{
29422894
"color":"red",
2943-
"text":"NameError: name 'char' is not defined\n"
2895+
"text":"Traceback (most recent call last):\n"
29442896
},
29452897
{
29462898
"color":"red",
2947-
"text":"\n"
2899+
"text":" File\"my_program.py\", line 6, in <module>\n"
2900+
},
2901+
{
2902+
"color":"red",
2903+
"text":"--> 6 |\u001b[38;5;15msentence\u001b[39m\u001b[38;5;15m\u001b[39m\u001b[38;5;197m+\u001b[39m\u001b[38;5;197m=\u001b[39m\u001b[38;5;15m\u001b[39m\u001b[38;5;15mchar\u001b[39m\n"
2904+
},
2905+
{
2906+
"color":"red",
2907+
"text":"NameError: name 'char' is not defined\n"
29482908
},
29492909
{
29502910
"color":"white",
@@ -3287,43 +3247,11 @@
32873247
},
32883248
{
32893249
"color":"red",
3290-
"text":" File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/code.py\", line 63, in runsource\n"
3291-
},
3292-
{
3293-
"color":"red",
3294-
"text":" File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/codeop.py\", line 168, in __call__\n"
3295-
},
3296-
{
3297-
"color":"red",
3298-
"text":" File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/codeop.py\", line 99, in _maybe_compile\n"
3299-
},
3300-
{
3301-
"color":"red",
3302-
"text":" File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/codeop.py\", line 87, in _maybe_compile\n"
3303-
},
3304-
{
3305-
"color":"red",
3306-
"text":" File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/codeop.py\", line 133, in __call__\n"
3307-
},
3308-
{
3309-
"color":"red",
3310-
"text":" File\"<console>\", line 1\n"
3250+
"text":" File\"my_program.py\", line 1\n"
33113251
},
33123252
{
33133253
"color":"red",
3314-
"text":"SyntaxError"
3315-
},
3316-
{
3317-
"color":"red",
3318-
"text":":"
3319-
},
3320-
{
3321-
"color":"red",
3322-
"text":"expression cannot contain assignment, perhaps you meant\"==\"?"
3323-
},
3324-
{
3325-
"color":"red",
3326-
"text":"\n"
3254+
"text":"SyntaxError: expression cannot contain assignment, perhaps you meant\"==\"?\n"
33273255
},
33283256
{
33293257
"color":"white",
@@ -4204,27 +4132,15 @@
42044132
},
42054133
{
42064134
"color":"red",
4207-
"text":"File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/code.py\", line90, inruncode\n"
4135+
"text":" File\"my_program.py\", line1, in<module>\n"
42084136
},
42094137
{
42104138
"color":"red",
4211-
"text":" File\"<console>\", line 1, in <module>\n"
4139+
"text":"--> 1 |\u001b[38;5;15mwords\u001b[39m\u001b[38;5;15m[\u001b[39m\u001b[38;5;141m4\u001b[39m\u001b[38;5;15m]\u001b[39m\n"
42124140
},
42134141
{
42144142
"color":"red",
4215-
"text":"IndexError"
4216-
},
4217-
{
4218-
"color":"red",
4219-
"text":":"
4220-
},
4221-
{
4222-
"color":"red",
4223-
"text":"list index out of range"
4224-
},
4225-
{
4226-
"color":"red",
4227-
"text":"\n"
4143+
"text":"IndexError: list index out of range\n"
42284144
},
42294145
{
42304146
"color":"white",
@@ -4893,11 +4809,19 @@
48934809
},
48944810
{
48954811
"color":"red",
4896-
"text":"TypeError: 'str' object is not callable\n"
4812+
"text":"Traceback (most recent call last):\n"
48974813
},
48984814
{
48994815
"color":"red",
4900-
"text":"\n"
4816+
"text":" File\"my_program.py\", line 3, in <module>\n"
4817+
},
4818+
{
4819+
"color":"red",
4820+
"text":"--> 3 |\u001b[38;5;15;48;5;24mf\u001b[39;49m\u001b[38;5;15;48;5;24m(\u001b[39;49m\u001b[38;5;15;48;5;24m)\u001b[39;49m\n"
4821+
},
4822+
{
4823+
"color":"red",
4824+
"text":"TypeError: 'str' object is not callable\n"
49014825
},
49024826
{
49034827
"color":"white",
@@ -4981,11 +4905,19 @@
49814905
},
49824906
{
49834907
"color":"red",
4984-
"text":"TypeError: object of type 'NoneType' has no len()\n"
4908+
"text":"Traceback (most recent call last):\n"
49854909
},
49864910
{
49874911
"color":"red",
4988-
"text":"\n"
4912+
"text":" File\"my_program.py\", line 2, in <module>\n"
4913+
},
4914+
{
4915+
"color":"red",
4916+
"text":"--> 2 |\u001b[38;5;15mlength\u001b[39m\u001b[38;5;15m\u001b[39m\u001b[38;5;197m=\u001b[39m\u001b[38;5;15m\u001b[39m\u001b[38;5;15;48;5;24mlen\u001b[39;49m\u001b[38;5;15;48;5;24m(\u001b[39;49m\u001b[38;5;15;48;5;24mthings\u001b[39;49m\u001b[38;5;15;48;5;24m)\u001b[39;49m\n"
4917+
},
4918+
{
4919+
"color":"red",
4920+
"text":"TypeError: object of type 'NoneType' has no len()\n"
49894921
},
49904922
{
49914923
"color":"white",
@@ -5060,11 +4992,19 @@
50604992
"result": [
50614993
{
50624994
"color":"red",
5063-
"text":"AttributeError: 'str' object has no attribute 'append'\n"
4995+
"text":"Traceback (most recent call last):\n"
50644996
},
50654997
{
50664998
"color":"red",
5067-
"text":"\n"
4999+
"text":" File\"my_program.py\", line 2, in <module>\n"
5000+
},
5001+
{
5002+
"color":"red",
5003+
"text":"--> 2 |\u001b[38;5;15;48;5;24mword\u001b[39;49m\u001b[38;5;197;48;5;24m.\u001b[39;49m\u001b[38;5;15;48;5;24mappend\u001b[39;49m\u001b[38;5;15m(\u001b[39m\u001b[38;5;186m'\u001b[39m\u001b[38;5;186m!\u001b[39m\u001b[38;5;186m'\u001b[39m\u001b[38;5;15m)\u001b[39m\n"
5004+
},
5005+
{
5006+
"color":"red",
5007+
"text":"AttributeError: 'str' object has no attribute 'append'\n"
50685008
},
50695009
{
50705010
"color":"white",
@@ -5137,27 +5077,15 @@
51375077
},
51385078
{
51395079
"color":"red",
5140-
"text":"File\"/Users/alexhall/.pyenv/versions/3.8.0/lib/python3.8/code.py\", line90, inruncode\n"
5080+
"text":" File\"my_program.py\", line1, in<module>\n"
51415081
},
51425082
{
51435083
"color":"red",
5144-
"text":" File\"<console>\", line 1, in <module>\n"
5084+
"text":"--> 1 |\u001b[38;5;15mnums\u001b[39m\u001b[38;5;197m.\u001b[39m\u001b[38;5;15minsert\u001b[39m\u001b[38;5;15m(\u001b[39m\u001b[38;5;141m2\u001b[39m\u001b[38;5;15m,\u001b[39m\u001b[38;5;15m\u001b[39m\u001b[38;5;141m9\u001b[39m\u001b[38;5;15m)\u001b[39m\n"
51455085
},
51465086
{
51475087
"color":"red",
5148-
"text":"NameError"
5149-
},
5150-
{
5151-
"color":"red",
5152-
"text":":"
5153-
},
5154-
{
5155-
"color":"red",
5156-
"text":"name 'nums' is not defined"
5157-
},
5158-
{
5159-
"color":"red",
5160-
"text":"\n"
5088+
"text":"NameError: name 'nums' is not defined\n"
51615089
},
51625090
{
51635091
"color":"white",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp