-
-
Notifications
You must be signed in to change notification settings - Fork 180
/
Copy pathgdscript-error-list.txt
325 lines (325 loc) · 17.8 KB
/
gdscript-error-list.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
"Using own name in class file is not allowed (creates a cyclic reference)"
"Can't load global class %IDENTIFIER%, cyclic reference?"
"Identifier not found: %IDENTIFIER%"
"'self' not present in static function!"
"Invalid native class type '%NATIVE_TYPE%'."
"Parser bug: unresolved data type."
"Attempt to call a non-identifier."
"Must use '%IDENTIFIER%' instead of 'self.%IDENTIFIER%' in getter."
"Must use '%IDENTIFIER%' instead of 'self.%IDENTIFIER%' in setter."
"'break'' not within loop"
"'continue' not within loop"
"Cyclic class reference for '%CLASS_NAME%'."
"Parser bug: invalid inheritance."
"Signal '%SIGNAL_NAME%' redefined (in current or parent class)"
"Signal '%SIGNAL_NAME%' redefined (original in native class '%CLASS_NAME%')"
"Expected end of statement (\"%STATEMENT_NAME%\"), got %TOKEN_NAME% (\"%IDENTIFIER%\") instead."
"Expected end of statement (\"%STATEMENT_NAME%\"), got %TOKEN_NAME% instead."
"':' expected at end of line."
"Mixed tabs and spaces in indentation."
"Expression expected"
"Expected ',' or ')'"
"Expected ')' in expression"
"Expected string constant or identifier after '$' or '/'."
"Path expected after $."
"Expected '(' after 'preload'"
"expected string constant as 'preload' argument."
"Can't preload itself (use 'get_script()')."
"Can't preload resource at path: %PATH%"
"Expected ')' after 'preload' path"
"Couldn't fully preload the script, possible cyclic reference or compilation error. Use \"load()\" instead if a cyclic reference is intended."
"\"yield()\" can only be used inside function blocks."
"Expected \"(\" after \"yield\"."
"Expected \",\" after the first argument of \"yield\"."
"Expected \")\" after the second argument of \"yield\"."
"\"self\" isn't allowed in a static function or constant expression."
"Built-in type constant or static function expected after \".\"."
"Static constant '%CONSTANT_NAME%' not present in built-in type %BUILTIN_TYPE%."
"Using assignment with operation on a variable that was never assigned."
"Misplaced 'not'."
"Expected identifier before 'is' operator"
"Unterminated array"
"expression or ']' expected"
"',' or ']' expected"
"Unterminated dictionary"
"':' expected"
"value expected"
"key or '}' expected"
"',' or '}' expected"
"Duplicate key found in Dictionary literal"
"Expected '(' for parent function call."
"Error parsing expression, misplaced: %TOKEN_NAME%"
"Expected identifier as member"
"Expected ']'"
"Unexpected 'as'."
"Expected type after 'as'."
"Unexpected assign."
"GDScriptParser bug, invalid operator in expression: %EXPRESSION%"
"Unexpected operator"
"Yet another parser bug...."
"Unexpected end of expression..."
"Parser bug..."
"Expected else after ternary if."
"Expected value after ternary else."
"Unexpected two consecutive operators after ternary if."
"Unexpected two consecutive operators after ternary else."
"Unexpected two consecutive operators."
"Invalid argument (#%ARGUMENT_NUMBER%) for '%TYPE_NAME%' constructor."
"Too many arguments for '%TYPE_NAME%' constructor."
"Too few arguments for '%TYPE_NAME%' constructor."
"Invalid arguments for '%TYPE_NAME%' constructor."
"Invalid argument (#%ARGUMENT_NUMBER%) for '%TYPE_NAME%' intrinsic function."
"Too many arguments for '%TYPE_NAME%' intrinsic function."
"Too few arguments for '%TYPE_NAME%' intrinsic function."
"Invalid arguments for '%TYPE_NAME%' intrinsic function."
"invalid index in constant expression"
"invalid index '%INDEX_NAME%' in constant expression"
"Can't assign to constant"
"Can't assign to self."
"Can't assign to an expression"
"Invalid operand for unary operator"
"Invalid operands for operator"
"Invalid export type. Only built-in and native resource types can be exported."
"'..' pattern only allowed at the end of an array pattern"
"Not a valid pattern"
"Expected identifier for binding variable name."
"Binding name of '%BINDING_NAME%' is already declared in this scope."
"'..' pattern only allowed at the end of a dictionary pattern"
"Not a valid key in pattern"
"Not a constant expression as key"
"Expected pattern in dictionary value"
"Not a valid pattern"
"Expect constant expression or variables in a pattern"
"Invalid operator in pattern. Only index (`A.B`) is allowed"
"Only constant expression or variables allowed in a pattern"
"Only constant expressions or variables allowed in a pattern"
"Cannot use bindings with multipattern."
"Expected block in pattern branch"
"The pattern type (%PATTERN_TYPE%) isn't compatible with the type of the value to match (%MATCH_TYPE%)."
"Cannot match an array pattern with a non-array expression."
"Cannot match an dictionary pattern with a non-dictionary expression."
"Multipatterns can't contain bindings"
"Parser bug: missing pattern bind variable."
"Mixed tabs and spaces in indentation."
"Expected \";\" or a line break."
"Expected an identifier for the local variable name."
"Variable \"%VARIABLE_NAME%\" already defined in the scope (at line %LINE_NUMBER%)."
"Expected a type for the variable."
"Expected an indented block after \"if\"."
"Invalid indentation."
"Expected an indented block after \"elif\"."
"Invalid indentation."
"Expected an indented block after \"else\"."
"Expected an indented block after \"while\"."
"Identifier expected after \"for\"."
"\"in\" expected after identifier."
"Expected indented block after \"for\"."
"Unexpected keyword \"continue\" outside a loop."
"Unexpected keyword \"break\" outside a loop."
"Expected indented pattern matching block after \"match\"."
"Expected '(' after assert"
"Wrong number of arguments, expected 1 or 2"
"Unexpected ':=', use '=' instead. Expected end of statement after expression."
"Expected end of statement after expression, got %TOKEN_NAME% instead."
"Mixed tabs and spaces in indentation."
"Unexpected indentation."
"Invalid indentation. Bug?"
"Unindent does not match any outer indentation level."
"Mixed tabs and spaces in indentation."
"\"extends\" can only be present once per script."
"\"extends\" must be used before anything else."
"\"extends\" constant must be a string."
"Invalid \"extends\" syntax, expected string constant (path) and/or identifier (parent class)."
"\"class_name\" is only valid for the main class namespace."
"\"class_name\" isn't allowed in built-in scripts."
"\"class_name\" syntax: \"class_name <UniqueName>\""
"\"class_name\" can only be present once per script."
"Unique global class \"%CLASS_NAME%\" already exists at path: %PATH%"
"The class \"%CLASS_NAME%\" shadows a native class."
"The class \"%CLASS_NAME%\" conflicts with the AutoLoad singleton of the same name, and is therefore redundant. Remove the class_name declaration to fix this error."
"No class icon found at: %PATH%"
"The optional parameter after \"class_name\" must be a string constant file path to an icon."
"The class icon must be separated by a comma."
"The \"tool\" keyword can only be present once per script."
"\"class\" syntax: \"class <Name>:\" or \"class <Name> extends <BaseClass>:\""
"The class \"%CLASS_NAME%\" shadows a native class."
"Can't override name of the unique global class \"%CLASS_NAME%\". It already exists at: %PATH%"
"Another class named \"%CLASS_NAME%\" already exists in this scope (at line %LINE_NUMBER%)."
"A constant named \"%CONSTANT_NAME%\" already exists in the outer class scope (at line%LINE_NUMBER%)."
"A variable named \"%VARIABLE_NAME%\" already exists in the outer class scope (at line %LINE_NUMBER%)."
"Indented block expected."
"Expected \"func\"."
"Expected an identifier after \"func\" (syntax: \"func <identifier>([arguments]):\")."
"The function \"%FUNCTION_NAME%\" already exists in this class (at line %LINE_NUMBER%)."
"The function \"%FUNCTION_NAME%\" already exists in this class (at line %LINE_NUMBER%)."
"Expected \"(\" after the identifier (syntax: \"func <identifier>([arguments]):\" )."
"Expected an identifier for an argument."
"The argument name \"%ARGUMENT_NAME%\" is defined multiple times."
"Expected a type for an argument."
"Default parameter expected."
"default argument must be constant"
"Expected \",\" or \")\"."
"The constructor cannot be static."
"Expected \"(\" for parent constructor arguments."
"Expected \",\" or \")\"."
"Parent constructor call found for a class without inheritance."
"Expected a return type for the function."
"Indented block expected after declaration of \"%FUNCTION_NAME%\" function."
"Expected an identifier after \"signal\"."
"The signal \"%SIGNAL_NAME%\" already exists in this class (at line: %LINE_NUMBER%)."
"Expected an identifier in a \"signal\" argument."
"Expected \",\" or \")\" after a \"signal\" parameter identifier."
"Can't export null type."
"Can't export raw object type."
"Expected \",\" in the bit flags hint."
"Expected a string constant in the named bit flags hint."
"Expected \")\" or \",\" in the named bit flags hint."
"Expected \")\" in the layers 2D render hint."
"Expected \")\" in the layers 2D physics hint."
"Expected \")\" in the layers 3D render hint."
"Expected \")\" in the layers 3D physics hint."
"Expected a string constant in the enumeration hint."
"Expected \")\" or \",\" in the enumeration hint."
"Expected \")\" in the hint."
"Expected \")\" or \",\" in the exponential range hint."
"Expected a range in the numeric hint."
"Expected \",\" or \")\" in the numeric range hint."
"Expected a number as upper bound in the numeric range hint."
"Expected \",\" or \")\" in the numeric range hint."
"Expected a number as step in the numeric range hint."
"Expected a string constant in the enumeration hint."
"Expected \"GLOBAL\" after comma in the directory hint."
"Global filesystem hints may only be used in tool scripts."
"Expected \")\" or \",\" in the hint."
"Expected string constant with filter."
"Expected \"GLOBAL\" or string constant with filter."
"Color type hint expects RGB or RGBA as hints."
"Type \"%TYPE_NAME%\" can't take hints."
"Expected a constant expression."
"The export hint isn't a resource type."
"Expected \"FLAGS\" after comma."
"Expected type for export."
"Expected \")\" or \",\" after the export hint."
"Expected \"var\", \"onready\", \"remote\", \"master\", \"puppet\", \"sync\", \"remotesync\", \"mastersync\", \"puppetsync\"."
"Expected \"var\"."
"Expected \"var\" or \"func\"."
"Expected an identifier for the member variable name."
"Constant \"%CONSTANT_NAME%\" already exists in this class (at line %LINE_NUMBER%)."
"A constant named \"%CONSTANT_NAME%\" already exists in this class (at line %LINE_NUMBER%)."
"A constant named \"%CONSTANT_NAME%\" already exists in this class (at line: %LINE_NUMBER%)."
"A variable named \"%VARIABLE_NAME%\" already exists in this class (at line %LINE_NUMBER%)."
"Variable \"%VARIABLE_NAME%\" already exists in this class (at line: %LINE_NUMBER%)."
"A class named \"%CLASS_NAME%\" already exists in this class (at line %LINE_NUMBER%)."
"Expected a type for the class variable."
"Invalid export type. Only built-in and native resource types can be exported."
"Use \"onready var %VARIABLE_NAME% = get_node(...)\" instead."
"Type-less export needs a constant expression assigned to infer type."
"Can't accept a null constant expression for inferring export type."
"The exported constant isn't a type or resource."
"Can't convert the provided value to the export type."
"Type-less export needs a constant expression assigned to infer type."
"Expected an identifier for the setter function after \"setget\"."
"Expected an identifier for the getter function after \",\"."
"Expected an identifier for the constant."
"Expected a type for the class constant."
"Constants must be assigned immediately."
"Expected a constant expression."
"Expected \"{\" in the enum declaration."
"Unexpected end of file."
"Unexpected %TOKEN_NAME%, expected an identifier."
"Expected a constant expression."
"Expected an integer value for \"enum\"."
"Unexpected identifier."
"Unexpected constant of type: %TYPE_NAME%"
"Unexpected token: %TOKEN_NAME%:%IDENTIFIER%"
"Couldn't resolve relative path for the parent class: %PATH%"
"Couldn't load the base class: %PATH%"
"Script isn't fully loaded (cyclic preload?): %PATH%"
"Couldn't find the subclass: %SUBCLASS_NAME%"
"Parser bug: undecidable inheritance."
"The class \"%CLASS_NAME%\" couldn't be fully loaded (script error or cyclic dependency)."
"Class '%CLASS_NAME%' could not be fully loaded (script error or cyclic inheritance)."
"Cyclic inheritance."
"Couldn't resolve the constant \"%CONSTANT_NAME%\"."
"Constant isn't a class: %IDENTIFIER%"
"Couldn't find the subclass: %IDENTIFIER%"
"Invalid inheritance (unknown class + subclasses)."
"Unknown class: \"%CLASS_NAME%\""
"Couldn't determine inheritance."
"Unexpected \".\"."
"Unexpected identifier."
"Expected a subclass identifier."
"The class \"%CLASS_NAME%\" couldn't be fully loaded (script error or cyclic dependency)."
"The class \"%CLASS_NAME%\" was found in global scope, but its script couldn't be loaded."
"Class '%CLASS_NAME%' could not be fully loaded (script error or cyclic inheritance)."
"Couldn't fully load singleton script '%SCRIPT_NAME%' (possible cyclic reference or parse error)."
"Parser bug: unresolved constant."
"The identifier \"%IDENTIFIER%\" isn't a valid type (not a script or class), or couldn't be found on base \"%CLASS_NAME%\"."
"Invalid cast. Cannot convert from \"%TYPE_NAME%\" to \"%TYPE_NAME%\"."
"The first argument of \"yield()\" must be an object."
"The second argument of \"yield()\" must be a string."
"Parser bug: binary operation without 2 arguments."
"Invalid \"is\" test: the right operand isn't a type (neither a native type nor a script)."
"A value of type \"%TYPE_NAME%\" will never be an instance of \"%TYPE_NAME%\"."
"A value of type \"%TYPE_NAME%\" will never be of type \"%TYPE_NAME%\"."
"Invalid operand type (\"%ARGUMENT_TYPE%\") to unary operator \"%OPERATOR_NAME%\"."
"Parser bug: binary operation without 2 arguments."
"Invalid operand types (\"%ARGUMENT_TYPE%\" and \"%ARGUMENT_TYPE%\") to operator \"%OPERATOR_NAME%\"."
"Parser bug: ternary operation without 3 arguments."
"Assignment inside an expression isn't allowed (parser bug?)."
"Parser bug: named index with invalid arguments."
"Parser bug: named index without identifier argument."
"Can't get index \"%INDEX_NAME%\" on base \"%TYPE_NAME%\"."
"Invalid index type (%TYPE_NAME%) for base \"%TYPE_NAME%\"."
"Only strings can be used as an index in the base type \"%TYPE_NAME%\"."
"Can't index on a value of type \"%TYPE_NAME%\"."
"Parser bug: unhandled operation."
"Parser bug: function call without enough arguments."
"No constructor of '%TYPE_NAME%' matches the signature '%TYPE_NAME%(%ARGUMENT_TYPE_LIST%)'."
"Parser bug: self method call without enough arguments."
"Parser bug: invalid function call argument."
"The method \"%CALLEE_NAME%\" isn't declared on base \"%TYPE_NAME%\"."
"The method \"%CALLEE_NAME%\" isn't declared in the current class."
"Can't call non-static function from a static function."
"Non-static function \"%CALLEE_NAME%\" can only be called from an instance."
"Too few arguments for \"%CALLEE_NAME%()\" call. Expected at least %ARGUMENT_COUNT%."
"Too many arguments for \"%CALLEE_NAME%()\" call. Expected at most %ARGUMENT_COUNT%."
"At \"%CALLEE_NAME%()\" call, argument %ARGUMENT_NUMBER%. The passed argument's type (%TYPE_NAME%) doesn't match the function's expected argument type (%TYPE_NAME%)."
"Can't access member variable (\"%VARIABLE_NAME%\") from a static function."
"The class \"%CLASS_NAME%\" couldn't be fully loaded (script error or cyclic dependency)."
"The class \"%CLASS_NAME%\" was found in global scope, but its script couldn't be loaded."
"Couldn't fully load the singleton script \"%IDENTIFIER%\" (possible cyclic reference or parse error)."
"The identifier \"%IDENTIFIER%\" isn't declared in the current scope."
"The constant value type (%TYPE_NAME%) isn't compatible with declared type (%TYPE_NAME%)."
"The member \"%IDENTIFIER%\" already exists in a parent class."
"The assigned expression's type (%TYPE_NAME%) doesn't match the variable's type (%TYPE_NAME%)."
"The assigned value doesn't have a set type; the variable type can't be inferred."
"The variable type cannot be inferred because its value is \"null\"."
"The export hint's type (%TYPE_NAME%) doesn't match the variable's type (%TYPE_NAME%)."
"The setter function needs to receive exactly 1 argument. See \"%FUNCTION_NAME%()\" definition at line %LINE_NUMBER%."
"The setter argument's type (%TYPE_NAME%) doesn't match the variable's type (%TYPE_NAME%). See \"%FUNCTION_NAME%()\" definition at line %LINE_NUMBER%."
"The getter function can't receive arguments. See \"%FUNCTION_NAME%()\" definition at line %LINE_NUMBER%."
"The getter return type (%TYPE_NAME%) doesn't match the variable's type (%TYPE_NAME%). See \"%FUNCTION_NAME%()\" definition at line %LINE_NUMBER%."
"The setter can't be a static function. See \"%FUNCTION_NAME%()\" definition at line %LINE_NUMBER%."
"The getter can't be a static function. See \"%FUNCTION_NAME%()\" definition at line %LINE_NUMBER%."
"The setter function isn't defined."
"The getter function isn't defined."
"The signal \"%SIGNAL_NAME%\" already exists in a parent class."
"Parser bug: invalid argument default value."
"Parser bug: invalid argument default value operation."
"Value type (%TYPE_NAME%) doesn't match the type of argument '%ARGUMENT_NAME%' (%TYPE_NAME%)."
"The function signature doesn't match the parent. Parent signature is: \"%FUNCTION_SIGNATURE%\"."
"The constructor can't return a value."
"A non-void function must return a value in all possible paths."
"The assigned value type (%TYPE_NAME%) doesn't match the variable's type (%TYPE_NAME%)."
"The assigned value doesn't have a set type; the variable type can't be inferred."
"The variable type cannot be inferred because its value is \"null\"."
"Parser bug: operation without enough arguments."
"Can't assign a new value to a constant."
"Invalid operand types (\"%TYPE_NAME%\" and \"%TYPE_NAME%\") to assignment operator \"%OPERATOR_NAME%\"."
"The assigned value's type (%TYPE_NAME%) doesn't match the variable's type (%TYPE_NAME%)."
"A void function cannot return a value."
"A non-void function must return a value."
"The returned value type (%TYPE_NAME%) doesn't match the function return type (%TYPE_NAME%)."
"Parse error: %ERROR_TOKEN%"
"%WARNING_MESSAGE% (warning treated as error)"