summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2021-09-17GDScript: Avoid inferred types from giving hard errorsGeorge Marques
2021-09-15Merge pull request #52706 from vnen/gdscript-ternary-operator-crashRémi Verschelde
GDScript: Show error when missing expression after ternary else
2021-09-15Merge pull request #52705 from vnen/gdscript-error-unary-no-argRémi Verschelde
GDScript: Show error on unary operators without argument
2021-09-15GDScript: Show error when missing expression after ternary elseGeorge Marques
2021-09-15Merge pull request #50456 from Blackiris/fix-extends-parent-relativeGeorge Marques
Fix extends with relative path to parent script
2021-09-15GDScript: Show error on unary operators without argumentGeorge Marques
2021-09-15Merge pull request #49765 from ↵George Marques
Blackiris/fix-assignment-with-operator-on-type-member Fix assignment with operator on type member
2021-09-15Merge pull request #52582 from ↵Rémi Verschelde
jmb462/Prevent-non-explicit-inferring-parameter-from-null
2021-09-15GDScript: Allow string keys on Lua-style dictionariesGeorge Marques
Which is useful when the key isn't a valid identifier, such as keys with spaces or numeric keys.
2021-09-15Merge pull request #48029 from Calinou/gdscript-add-integration-testsRémi Verschelde
Add dozens of new integration tests to the GDScript test suite
2021-09-14Merge pull request #51094 from RandomShaper/error_cast_freed_objectRémi Verschelde
Complain if casting a freed object in a debug session
2021-09-14Complain if casting a freed object in a debug sessionPedro J. Estébanez
The idea is to give the user a chance to realize a mistake that will cause a crash in a release build (or with no debugger attached).
2021-09-14Add dozens of new integration tests to the GDScript test suiteHugo Locurcio
This also ignores `.out` files in the file format static checks.
2021-09-13Fix an undefined behaviourThreeRhinosInAnElephantCostume
2021-09-13Merge pull request #52362 from vnen/gdscript-lambda-completion-crashRémi Verschelde
GDScript: Do not complete lambda arguments from parent class
2021-09-13Merge pull request #52632 from vnen/autoload-global-script-class-conflictRémi Verschelde
Disallow class names to be the same as global names
2021-09-13Merge pull request #52323 from vnen/gdscript-singleton-interdependence-fixRémi Verschelde
Fix loading of interdependent autoloads
2021-09-13Fix GDScript test casesGeorge Marques
2021-09-13Merge pull request #52100 from vnen/gdscript-access-outer-constantsRémi Verschelde
GDScript: Allow access to outer constant and enum values
2021-09-13Merge pull request #52068 from ThreeRhinosInAnElephantCostume/fixgdscriptRémi Verschelde
Fix parse error on statement-less files with only newlines, add a warning for empty files.
2021-09-13Disallow class names to be the same as global namesGeorge Marques
Also forbid autoloads to have the same name as global script class.
2021-09-11Prevent non explicit inferring parameter from nulljmb462
2021-09-11Fix error on parsing statement-less GDScript files,ThreeRhinosInAnElephantCostume
add an empty file warning, add relevant tests.
2021-09-10GDScript: Removed spurious UNASSIGNED_VARIABLE warning for localsZuBsPaCe
Variable->assignment needs to be incremented when assigned a value. Also fixed and improved unit test 'variable_declaration.gd'. Fixes #52551
2021-09-10Merge pull request #52063 from KoBeWi/double_comma_of_doomGeorge Marques
Fix crash with consecutive commas in Dictionary
2021-09-10Merge pull request #49897 from Blackiris/fix-dollar-point-crash-on-editorGeorge Marques
Fix crash when writing $. in the editor
2021-09-10Merge pull request #51456 from SaracenOne/super_init_fixGeorge Marques
Call _init on base class if one does not exist.
2021-09-10Fix crash with consecutive commas in Dictionarykobewi
2021-09-10Merge pull request #51593 from KoBeWi/ifGeorge Marques
Prevent crash when awaiting in a getter/setter
2021-09-10Merge pull request #52081 from ThreeRhinosInAnElephantCostume/fixmatchfreezeGeorge Marques
Fix gdscript pattern matching expressions
2021-09-07Merge pull request #52267 from williamd67/lookup-symbol-builtin-functionsMax Hilbrunner
Show help for built-in functions (@GlobalScope)
2021-09-07[Net] Move multiplayer to core subdir, split RPCManager.Fabio Alessandrelli
Move multiplayer classes to "core/multiplayer" subdir. Move the RPCConfig and enums (TransferMode, RPCMode) to a separate file (multiplayer.h), and bind them to the global namespace. Move the RPC handling code to its own class (RPCManager). Renames "get_rpc_sender_id" to "get_remote_sender_id".
2021-09-05Fix extends with relative path to parent scriptJulien Nguyen
2021-09-03Merge pull request #52329 from ↵Max Hilbrunner
ZuBsPaCe/gdscript-unused-private-class-variable-fix GDScript: Fix for UNUSED_PRIVATE_CLASS_VARIABLE
2021-09-03GDScript: Count usages of member variables.ZuBsPaCe
Otherwise private member variables will always lead to UNUSED_PRIVATE_CLASS_VARIABLE.
2021-09-03Added tests for expression matchingThreeRhinosInAnElephantCostume
2021-09-02GDScript: Do not complete lambda arguments from parent classGeorge Marques
Since lambdas are not overriding methods from the parent class, they should not try to check inheritance for signature matching.
2021-09-02Check for GDScript member and class naming conflicts in a variety of conditions.SaracenOne
2021-09-01GDScript: Fix loading of interdependent autoloadsGeorge Marques
Move the autoload resolution to runtime by loading it into the stack with an extra instruction. This allows an autoload to use another autoload singleton independent of load order.
2021-08-30Merge pull request #52240 from Rubonnek/rename-rel-pathJuan Linietsky
Rename `String::is_rel_path` to `String::is_relative_path`
2021-08-30Show help for built-in functions (@GlobalScope)William Deurwaarder
2021-08-29Rename String::is_rel_path to String::is_relative_pathWilson E. Alvarez
2021-08-30[GDScript] [Net] Allow mixing rpc annotation paramters.Fabio Alessandrelli
The strings no longer needs to be in order. The last parameter (channel), still requires all the other parameters to be present.
2021-08-30[Net] Rename RPC "puppet" to "auth" (authority). Drop "master".Fabio Alessandrelli
This commit completely removes the RPC_MODE_MASTER ("master" keyword), and renames the RPC_MODE_PUPPET to RPC_MODE_AUTHORITY ("auth" keyword). This commit also renames the "Node.[get|set]_network_master" methods to "Node.[get|set]_network_authority". This commit also renames the RPC_MODE_REMOTE constant to RPC_MODE_ANY. RPC_MODE_MASTER in Godot 3.x meant that a given RPC would be callable by any puppet peer on the master, while RPC_MODE_PUPPET meant that it would be callable by the master on any puppet. Beside proving to be very confusing to the user (referring to where it could be called instead of who can call it) the RPC_MODE_MASTER is quite useless. It is almost the same as RPC_MODE_REMOTE (anyone can call) with the exception that the network master cannot. While this could be useful to check in some case, in such a function you would anyway need to check in code who is the caller via get_rpc_sender_id(), so adding the check there for those rare cases does not warrants a dedicated mode.
2021-08-28Merge pull request #52085 from williamd67/fix-await-without-argumentHugo Locurcio
Print error message when await is not followed by signal or coroutine
2021-08-28Merge pull request #52164 from mhilbrunner/gd-style-fixupMax Hilbrunner
GDScript test style fix
2021-08-28Print error message when await is not followed by signal or coroutineWilliam Deurwaarder
When await was not followed by a signal or coroutine the GDScript parser would crash. This fix will check if await is followed by a signal or coroutine in case that isn't true (element == nullptr) then an error message is printed.
2021-08-27Merge pull request #52122 from V-Sekai/autoload_listK. S. Ernest (iFire) Lee
Use sorted map for autoloads in ProjectSettings to preserve order.
2021-08-27GDScript test style fixMax Hilbrunner
2021-08-27Merge pull request #52090 from balloonpopper/bug52060Max Hilbrunner
Correct null and boolean values being capitalised by the str command