summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2023-02-18Merge pull request #73501 from anvilfolk/oopsiedaisyYuri Sizov
Fix inability to assign null regression
2023-02-17Merge pull request #73448 from RandomShaper/fix_sticky_stackYuri Sizov
Avoid GDScript bookkeeping from referencing objects longer than necessary
2023-02-17Avoid GDScript bookkeeping from referencing objects longer than necessaryPedro J. Estébanez
2023-02-17Fix inability to assign null regressionocean (they/them)
Co-authored-by: Dmitry Maganov <vonagam@gmail.com>
2023-02-17Merge pull request #72867 from vnen/gdscript-limit-call-depthYuri Sizov
GDScript: Add limit to call depth
2023-02-17Merge pull request #72925 from vonagam/fix-enum-typed-array-errorYuri Sizov
GDScript: Fix error about enum typed arrays
2023-02-17Merge pull request #73398 from anvilfolk/fix-getterRémi Verschelde
Fix unset getter return types resulting in strange behavior
2023-02-17Merge pull request #73364 from anvilfolk/fix-freedRémi Verschelde
Fix crash by freed object assign to typed variable
2023-02-16Fix crash by freed object assign to typed variableocean (they/them)
2023-02-16GDScript: Fix infer on read-only propertyDmitrii Maganov
2023-02-15Add return type for GDScript gettersocean (they/them)
2023-02-14GDScript: Fix default value of exported enum variableDanil Alexeev
2023-02-14Tweak `@GlobalScope` & `GDScript`'s documentationMicky
2023-02-13GDScript: Fix usage of ints with typed array of floatsDmitrii Maganov
2023-02-13Revert "Fixed the jumping to function definition using 'Ctrl+LMB'."Rémi Verschelde
This reverts commit 7eb6367d5cb62fb48563ad940423198f792e3fe8. Fixes #73058. Fixes #73167. This caused regressions, we'll retry with fixes for 4.1.
2023-02-12Improve GDScript error for method call on null/previously freed instancepkowal
Fixes #53878.
2023-02-11Merge pull request #73033 from akien-mga/gdscript-fix-gd4-renames-buildRémi Verschelde
Clean up ProjectConverter3To4 architecture, move renames map to separate file
2023-02-11Merge pull request #72654 from RandomShaper/ptrcall_ret_raw_objRémi Verschelde
Avoid losing references to objects in the native-scripting boundary
2023-02-10Clean up ProjectConverter3To4 architecture, move renames map to separate fileRémi Verschelde
This allows properly limiting what features depend on the RegEx module (doing the actual conversion) and what features only require the renames data (GDScript suggestions). Also better excludes the conversion command line options when actually disabling deprecated code. Fixes #73029.
2023-02-10GDScript: Remove `treat_warnings_as_errors` project settingDanil Alexeev
2023-02-09Merge pull request #72971 from vnen/gdscript-multiline-commentRémi Verschelde
GDScript: Allow strings as multiline comments
2023-02-09Merge pull request #72975 from vnen/gdscript-no-ascii-spoof-checkRémi Verschelde
GDScript: Be more lenient with identifiers
2023-02-09GDScript: Be more lenient with identifiersGeorge Marques
- Allow identifiers similar to keywords if they are in ASCII range. - Allow constants to be treated as regular identifiers. - Allow keywords that can be used as identifiers in expressions.
2023-02-09GDScript: Allow strings as multiline commentsGeorge Marques
Bring back the behavior in 3.x that was left out by oversight.
2023-02-09Merge pull request #69550 from Rindbee/fix-script-editor-not-reload-via-lspRémi Verschelde
Fix internal editor not updating when using external editor via LSP
2023-02-09GDScript: Fix error about enum typed arraysDmitrii Maganov
2023-02-08Fix null message in assert()kobewi
2023-02-07GDScript: Add limit to call depthGeorge Marques
The hard limit is set at 2048 depth which seems sensible between legitimate recursive calls while still avoiding a crash because of a stack overflow in most of the cases. Note that it is still possible to reach the stack limit and get an overflow before reaching a call depth. This is intended as a half-way measure to stop crashing in most cases, since there's no reliable nor portable way to check the amount of stack memory left.
2023-02-07Merge pull request #72493 from dalexeev/gds-export-flagsRémi Verschelde
GDScript: Improve validation and documentation of `@export_flags`
2023-02-07Merge pull request #72789 from Vilcrow/fix-jump-to-definitionRémi Verschelde
Fixed the jumping to function definition using 'Ctrl+LMB'.
2023-02-07GDScript: Improve validation and documentation of `@export_flags`Danil Alexeev
2023-02-07Some code simplificationsMarkus Sauermann
1. `number_width` isn't used later 2. `return_type` is used only once 3. AudioServer::get_singleton()->get_channel_count() always returns a channel_count of 1 or larger 4. negative `aa->backward` conditional 5. `current_canvas` == `find_world_2d()->get_canvas()` 6. identical if `render_shadows`
2023-02-07Fixed the jumping to function definition using 'Ctrl+LMB'.S.V.I. Vilcrow
2023-02-06Merge pull request #72546 from vonagam/fix-typed-array-can-referenceYuri Sizov
GDScript: Fix can_reference check for typed arrays
2023-02-06Merge pull request #72677 from dalexeev/gds-await-infer-typeYuri Sizov
GDScript: Fix `await` type inference
2023-02-06Merge pull request #72804 from vnen/gdscript-no-onready-without-nodeYuri Sizov
GDScript: Fix inheritance check of @onready for inner classes
2023-02-06GDScript: Fix `await` type inferenceDanil Alexeev
2023-02-06Merge pull request #70002 from poohcom1/fix/static-subscript-autocompleteYuri Sizov
Fix code-completion suggesting non-static members for custom classes
2023-02-06Merge pull request #72708 from KoBeWi/PackedMultilineStringArrayYuri Sizov
Fix @export_multiline for PackedStringArray
2023-02-06GDScript: Fix can_reference check for typed arraysDmitrii Maganov
2023-02-06GDScript: Fix inheritance check of @onready for inner classesGeorge Marques
2023-02-06GDScript: Fix recently merged test not ignoring warningsRémi Verschelde
2023-02-06Merge pull request #72330 from MinusKube/unreachable_code_bugRémi Verschelde
Fix unreachable code warning for elif block
2023-02-06Merge pull request #72512 from vonagam/fix-ternary-type-sourceYuri Sizov
GDScript: Fix type certainty for result of ternary operator
2023-02-06Merge pull request #72794 from vnen/gdscript-no-onready-without-nodeRémi Verschelde
GDScript: Don't allow @onready without inheriting Node
2023-02-06GDScript: Don't allow @onready without inheriting NodeGeorge Marques
2023-02-05GDScript: Better handling of `@rpc` annotation and autocompletionDanil Alexeev
2023-02-05Merge pull request #72608 from vnen/gdscript-warning-default-errorYuri Sizov
GDScript: Add warnings that are set to error by default (take 2)
2023-02-04Fix @export_multiline for PackedStringArraykobewi
2023-02-04Merge pull request #71860 from GeroVeni/masterYuri Sizov
Improve docs for rpc annotations