Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-02-06 | GDScript: Don't allow @onready without inheriting Node | George Marques | |
2023-02-05 | Merge pull request #72608 from vnen/gdscript-warning-default-error | Yuri Sizov | |
GDScript: Add warnings that are set to error by default (take 2) | |||
2023-02-02 | GDScript: Add warnings that are set to error by default | George Marques | |
- Adds a list of default levels for all warning so they can be set individually. - Add warnings set by default to error for: - Using `get_node()` without `@onready`. - Using `@onready` together with `@export`. - Inferring a static type with a Variant value. - Overriding a native engine method. - Adjust how annotations to ignore warnings are treated so they also apply to method parameters. - Clean up a bit how ignored warnings are set. There were two sets but only one was actually being used. - Set all warnings to the `WARN` level for tests, so they they can be properly tested. - Fix enum types in native methods signatures being set to `int`. - Fix native enums being treated as Dictionary by mistake. - Make name of native enum types use the class they are defined in, not the direct super class of the script. This ensures they are always equal even when coming from different sources. - Fix error for signature mismatch that was only showing the first default argument as having a default. Now it shows for all. | |||
2023-02-02 | GDScript: Improve usability of setter chains | George Marques | |
- Consider PackedArrays non-shared since they are copied on C++/script boundaries. - Add error messages in the analyzer when assigning to read-only properties. - Add specific error message at runtime when assignment fails because the property is read-only. | |||
2023-02-01 | Revert "GDScript: Add warnings that are set to error by default" | Rémi Verschelde | |
This reverts commit a166833bfa23a21a7bff196a85a20b014e7c1396. This caused multiple regressions. Needs to be redone with more testing before merge. Fixes #72501. | |||
2023-02-01 | GDScript: Add warnings that are set to error by default | George Marques | |
- Adds a list of default levels for all warning so they can be set individually. - Add warnings set by default to error for: - Using `get_node()` without `@onready`. - Using `@onready` together with `@export`. - Inferring a static type with a Variant value. - Overriding a native engine method. - Adjust how annotations to ignore warnings are treated so they also apply to method parameters. - Clean up a bit how ignored warnings are set. There were two sets but only one was actually being used. - Set all warnings to the `WARN` level for tests, so they they can be properly tested. - Fix enum types in native methods signatures being set to `int`. - Fix native enums being treated as Dictionary by mistake. - Make name of native enum types use the class they are defined in, not the direct super class of the script. This ensures they are always equal even when coming from different sources. - Fix error for signature mismatch that was only showing the first default argument as having a default. Now it shows for all. | |||
2023-01-31 | GDScript: Allow void functions to return calls to other void functions | George Marques | |
2023-01-31 | Merge pull request #72444 from reduz/fix-global-class-parsing | Rémi Verschelde | |
Fix global script class parsing. | |||
2023-01-31 | Fix global script class parsing. | Juan Linietsky | |
* Broke with #72226 * Restored previous version of the code, made it even more error tolerant. * Added a warning to **not** change the code. Fixes #72226. | |||
2023-01-31 | Merge pull request #69248 from vonagam/fixing-typed-arrays | Rémi Verschelde | |
GDScript: Fix typed arrays | |||
2023-01-31 | GDScript: Fix issues with typed arrays | Dmitrii Maganov | |
2023-01-31 | Merge pull request #72212 from anvilfolk/gdtestnames | Rémi Verschelde | |
Add option to print filenames in GDScript unit testing | |||
2023-01-30 | Add option to print filenames in GDScript unit testing | ocean (they/them) | |
2023-01-30 | GDScript: Fix vararg method calls with exact arguments | Dmitrii Maganov | |
2023-01-30 | GDScript: Fix `@export_enum` works only with `int` | Danil Alexeev | |
2023-01-29 | Merge pull request #72285 from vnen/gdscript-variable-match | Rémi Verschelde | |
GDScript: Allow variables in match patterns | |||
2023-01-29 | Merge pull request #72286 from vnen/gdscript-native-static-call-crash | Rémi Verschelde | |
GDScript: Avoid calling non-static methods on native classes | |||
2023-01-29 | Merge pull request #71844 from vonagam/fix-constant-conversions | Rémi Verschelde | |
GDScript: Fix constant conversions | |||
2023-01-28 | GDScript: Avoid calling non-static methods on native classes | George Marques | |
2023-01-28 | GDScript: Allow variables in match patterns | George Marques | |
To restore an ability available in 3.x and reduce compatibility changes. | |||
2023-01-29 | GDScript: Fix constant conversions | Dmitrii Maganov | |
2023-01-28 | GDScript: Fix implicit conversions for function returns | Dmitrii Maganov | |
2023-01-28 | GDScript: Fix test from #69163 after annotations change | Rémi Verschelde | |
2023-01-28 | Merge pull request #69163 from vonagam/variant-safe-lines | Rémi Verschelde | |
GDScript: Fix wrong marking of some lines related to Variant as unsafe | |||
2023-01-27 | GDScript: Fix test for read-only state of constants | Dmitrii Maganov | |
2023-01-25 | GDScript: Allow constant expressions in annotations | Danil Alexeev | |
2023-01-25 | Merge pull request #71349 from vonagam/disallow-infer-on-weak | Rémi Verschelde | |
GDScript: Disallow type inference with untyped initializer | |||
2023-01-24 | Clarify error message about script-level annotation | Danil Alexeev | |
2023-01-23 | Merge pull request #71914 from vnen/gdscript-no-continue-match | Rémi Verschelde | |
GDScript: Remove function of `continue` for match statement | |||
2023-01-22 | GDScript: Remove function of `continue` for match statement | George Marques | |
The keyword is confusing and rarely is used in the intended way. It is removed now in favor of a future feature (pattern guards) to avoid breaking compatibility later. | |||
2023-01-21 | Add support for Unicode identifiers in GDScript | George Marques | |
This is using an adapted version of UAX#31 to not rely on the ICU database (which isn't available in builds without TextServerAdvanced). It allows most characters used in diverse scripts but not everything. | |||
2023-01-18 | Fix unnammed enum crash regression | ocean (they/them) | |
2023-01-16 | Merge pull request #71279 from vonagam/fix-iterator-number-type | Rémi Verschelde | |
GDScript: Fix typing of iterator in for loop | |||
2023-01-16 | Merge pull request #67774 from aaronfranke/script-annotations | Rémi Verschelde | |
Make script annotations be placed before `class_name` and `extends` | |||
2023-01-14 | Update all outdated online documentation links | Yuri Sizov | |
2023-01-13 | GDScript: Disallow type inference with untyped initializer | Dmitrii Maganov | |
2023-01-13 | GDScript: Fix typing of iterator in for loop | Dmitrii Maganov | |
2023-01-12 | Merge pull request #70733 from vonagam/fix-assigning-untyped | Rémi Verschelde | |
GDScript: Fix some issues with assignments that involve untyped things | |||
2023-01-12 | Merge pull request #71197 from adamscott/add-default-virtual-path-gdscript | Rémi Verschelde | |
Add default virtual `gdscript://` path to `GDScript` instances | |||
2023-01-12 | Merge pull request #70700 from vonagam/fix-abstract-extends | Rémi Verschelde | |
GDScript: Fix extending abstract classes, forbid their construction | |||
2023-01-12 | GDScript: Fix extending abstract classes, forbid their construction | Dmitrii Maganov | |
2023-01-12 | Add default virtual `gdscript://` path to `GDScript` instances | Adam Scott | |
2023-01-12 | GDScript: Fix wrong marking of some lines related to Variant as unsafe | Dmitrii Maganov | |
2023-01-12 | GDScript: Fix some issues with assignments that involve untyped things | Dmitrii Maganov | |
2023-01-12 | Merge pull request #70899 from adamscott/fix-vector-inf | Rémi Verschelde | |
Fix parse error using Vector{2,3,4}.INF | |||
2023-01-12 | GDScript: Fix getting type from PropertyInfo for Variant arguments | Dmitrii Maganov | |
2023-01-12 | Merge pull request #70987 from vonagam/fix-parameter-conversion-assign | George Marques | |
2023-01-12 | Merge pull request #70713 from vonagam/fix-unnamed-enum-outer-conflicts | George Marques | |
2023-01-11 | GDScript: Fix temp values being written without proper clear | George Marques | |
Temporary values in the stack were not being properly cleared when the return value of calls were discarded, which can cause memory issues especially for reference types like PackedByteArray. | |||
2023-01-11 | Merge pull request #70595 from adamscott/add-gdscript-editorconfig | Rémi Verschelde | |
Add GDScript `.editorconfig` rules |