godot/modules/gdscript/tests/scripts/runtime/errors
George Marques 81c7cae567
GDScript: Don't get invalid dictionary key during completion
We try to get the value out of a dictionary in order to establish its
type for completion purposes. However, if the dictionary or the key
is not a constant, we cannot safely get the actual value, so we skip
this and just try to infer from static typing.

Getting the value directly with `Variant::get()` generate errors if the
base is a Dictionary and the key is of an invalid type. So before trying
to get it we use the Dictionary validator to make sure it we can safely
try to get the key.
2025-07-24 15:02:40 -03:00
..
assign_freed_instance.gd GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
assign_freed_instance.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
assign_to_read_only_property.gd GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
assign_to_read_only_property.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
bad_conversion_for_default_parameter.gd GDScript: Fix missing conversion for default argument values 2023-01-06 11:49:06 +02:00
bad_conversion_for_default_parameter.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
callable_call_after_free_object.gd GDScript: Allow tests to run on release builds 2022-02-03 13:32:33 -03:00
callable_call_after_free_object.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
callable_call_invalid_arg_type.gd GDScript: Fix Callable call error text 2025-05-02 18:30:35 +03:00
callable_call_invalid_arg_type.out GDScript: Fix Callable call error text 2025-05-02 18:30:35 +03:00
cast_freed_object.gd GDScript: Fix UNSAFE_CAST warning 2023-10-27 12:42:00 +03:00
cast_freed_object.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
cast_int_to_array.gd GDScript: Fix UNSAFE_CAST warning 2023-10-27 12:42:00 +03:00
cast_int_to_array.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
cast_int_to_object.gd GDScript: Fix UNSAFE_CAST warning 2023-10-27 12:42:00 +03:00
cast_int_to_object.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
cast_object_to_int.gd GDScript: Fix UNSAFE_CAST warning 2023-10-27 12:42:00 +03:00
cast_object_to_int.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
constant_array_is_deep.gd GDScript: Begin making constants deep, not shallow or flat 2023-01-08 07:29:10 +02:00
constant_array_is_deep.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
constant_dictionary_is_deep.gd GDScript: Begin making constants deep, not shallow or flat 2023-01-08 07:29:10 +02:00
constant_dictionary_is_deep.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
division_by_zero.gd Fix crash when division by zero/modulo by zero happen on vectors 2024-11-21 20:24:43 +03:00
division_by_zero.out GDScript: Fix failing tests due to collision with #99490 formatting change 2024-11-29 23:10:02 +01:00
for_loop_iterator_type_not_match_specified.gd GDScript: Add static typing for for loop variable 2023-08-17 20:54:34 +03:00
for_loop_iterator_type_not_match_specified.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
gd_utility_function_wrong_arg.gd GDScript: Fix incorrect error message for utility functions 2023-10-16 14:09:57 +03:00
gd_utility_function_wrong_arg.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
invalid_property_assignment.gd [Core] Fix Variant::construct of Object 2024-07-25 12:25:29 +02:00
invalid_property_assignment.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
modulo_by_zero.gd Fix crash when division by zero/modulo by zero happen on vectors 2024-11-21 20:24:43 +03:00
modulo_by_zero.out GDScript: Fix failing tests due to collision with #99490 formatting change 2024-11-29 23:10:02 +01:00
non_static_method_call_on_native_class.gd GDScript: Avoid calling non-static methods on native classes 2023-01-28 20:33:01 -03:00
non_static_method_call_on_native_class.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
outer_class_constants.gd GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
outer_class_constants.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
read_only_dictionary.gd [Core] Fix property access on read-only Dictionary 2024-04-22 13:57:34 +02:00
read_only_dictionary.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
reload_suspended_function.notest.gd GDScript: Cancel suspended functions when reloading a script 2025-03-06 11:34:40 +01:00
reload_suspended_function.out GDScript: Cancel suspended functions when reloading a script 2025-03-06 11:34:40 +01:00
reload_suspended_function_helper.notest.gd GDScript: Cancel suspended functions when reloading a script 2025-03-06 11:34:40 +01:00
typed_array_assign_basic_to_typed.gd GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_array_assign_basic_to_typed.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_array_assign_differently_typed.gd GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_array_assign_differently_typed.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_array_assign_wrong_to_typed.gd GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_array_assign_wrong_to_typed.out GDScript: Don't get invalid dictionary key during completion 2025-07-24 15:02:40 -03:00
typed_array_pass_basic_to_typed.gd GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
typed_array_pass_basic_to_typed.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_array_pass_differently_to_typed.gd GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
typed_array_pass_differently_to_typed.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_dictionary_assign_basic_to_typed.gd GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_dictionary_assign_basic_to_typed.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_dictionary_assign_differently_typed.gd GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_dictionary_assign_differently_typed.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_dictionary_assign_differently_typed_key.gd Core: Fix operator[] for typed dictionaries 2024-09-12 11:10:17 -05:00
typed_dictionary_assign_differently_typed_key.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_dictionary_assign_differently_typed_value.gd Core: Fix operator[] for typed dictionaries 2024-09-12 11:10:17 -05:00
typed_dictionary_assign_differently_typed_value.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_dictionary_assign_wrong_to_typed.gd GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_dictionary_assign_wrong_to_typed.out GDScript: Don't get invalid dictionary key during completion 2025-07-24 15:02:40 -03:00
typed_dictionary_pass_basic_to_typed.gd Implement typed dictionaries 2024-09-04 10:27:26 -05:00
typed_dictionary_pass_basic_to_typed.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
typed_dictionary_pass_differently_to_typed.gd Implement typed dictionaries 2024-09-04 10:27:26 -05:00
typed_dictionary_pass_differently_to_typed.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
use_return_value_of_free_call.gd GDScript: Error when assigning return value of void function 2022-12-30 12:08:58 -03:00
use_return_value_of_free_call.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
use_return_value_of_void_builtin_method_call.gd GDScript: Error when assigning return value of void function 2022-12-30 12:08:58 -03:00
use_return_value_of_void_builtin_method_call.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
use_return_value_of_void_native_method_call.gd GDScript: Error when assigning return value of void function 2022-12-30 12:08:58 -03:00
use_return_value_of_void_native_method_call.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
utility_function_wrong_arg.gd GDScript: Fix incorrect error message for utility functions 2023-10-16 14:09:57 +03:00
utility_function_wrong_arg.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00