1
0
Fork 0
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
utility_function_wrong_arg.out GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00