summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
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-08Fix null message in assert()kobewi
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
2023-02-04Improve docs for rpc annotationsGeroVeni
2023-02-03Avoid losing references to objects in the native-scripting boundaryPedro J. Estébanez
2023-02-03Merge pull request #65910 from KoBeWi/gdsusRémi Verschelde
Cleanup function state connections when destroying instance
2023-02-02Merge pull request #72398 from vnen/gdscript-setter-chainRémi Verschelde
GDScript: Improve usability of setter chains
2023-02-02GDScript: Add warnings that are set to error by defaultGeorge 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-02GDScript: Improve usability of setter chainsGeorge 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-02Fix crash in gdscript when autocompleting virtual function and signature ↵Eric M
does not match base.
2023-02-02Merge pull request #72557 from vonagam/fix-make-value-protectionRémi Verschelde
GDScript: Fix getting reduced value of incomplete subscript for autocomplete
2023-02-02GDScript: Fix crash in export group annotationsDanil Alexeev
2023-02-02GDScript: Fix getting reduced value of incomplete subscriptDmitrii Maganov
2023-02-01GDScript: Fix type certainty for result of ternary operatorDmitrii Maganov
2023-02-01Merge pull request #72499 from vonagam/fix-typed-array-disassemblyRémi Verschelde
GDScript: Fix disassembly of typed array assignment and construction
2023-02-01Revert "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-01GDScript: Fix disassembly of typed array assignment and constructionDmitrii Maganov