summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2019-09-25Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde
Added some obvious errors explanations
2019-09-25Added some obvious errors explanationsqarmin
2019-09-24GDScript: Fix type resolution not being return in some casesGeorge Marques
Some situations caused the parser node type to not being update when trying to resolve the type, returning invalid data and breaking the parsing when it shouldn't. This patch fix the behavior.
2019-09-24doc: Sync classref with current sourceRémi Verschelde
Fix a few missing bindings or unspecified argument names and default values.
2019-09-23Fix `line` being assigned to twice in the GDScript language serverHugo Locurcio
This closes #32090.
2019-09-22Changed some code found by Clang Tidy and Coverityqarmin
2019-09-20Merge pull request #32210 from Calinou/editor-log-distinguish-messagesRémi Verschelde
Distinguish editor-originating messages in the editor log
2019-09-20Merge pull request #32150 from luzpaz/typosRémi Verschelde
Fix misc. source comment typos
2019-09-20Distinguish editor-originating messages in the editor logHugo Locurcio
This fades out messages originating from the editor to make messages printed by the project stand out more. This also tweaks wording in some editor messages for consistency.
2019-09-19Fix misc. source comment typosluz.paz
Found using `codespell -q 3 -S ./thirdparty,*.po -L ang,ba,cas,dof,doubleclick,fave,hist,leapyear,lod,nd,numer,ois,paket,seeked,sinc,switchs,te,uint -D ~/Projects/codespell/codespell_lib/data/dictionary.txt `
2019-09-19Merge pull request #31921 from bojidar-bg/28978-uninitialized-array-valueRémi Verschelde
Fix uninitialized arrays and dictionaries retaining value
2019-09-19Merge pull request #32100 from SaracenOne/gdscript_parent_const_typesRémi Verschelde
Fix const deceleration for inherited scripts above immediate parent
2019-09-19Merge pull request #31934 from mitchcurtis/28187Rémi Verschelde
Produce an error when a class has the same name as a Singleton
2019-09-19Merge pull request #31142 from mitchcurtis/assert-messageRémi Verschelde
GDScript: add an optional message parameter to assert()
2019-09-11GDScript: add an optional message parameter to assert()Mitch Curtis
Before this patch, assert() only took the condition to assert on: assert(item_data) Now, it can optionally take a string that will be printed upon failure: assert(item_data, item_name + " has no item data in ItemDatabase") This makes it easier to immediately see what the issue is by being able to write informative failure messages. Thanks to @wiped1 for sharing their patch, upon which this is based. Closes #17082
2019-09-11Allow for constant deceleration to be detected inherited scripts above the ↵Saracen
immediate parent.
2019-09-06Produce an error when a class has the same name as a SingletonMitch Curtis
If you somehow end up with a Singleton.gd that looks like this: extends Node class_name Singleton func foo(): pass You will get an error when using it in another file: extends Node2D func _init(): # Parser Error: Non-static function "foo" can only be called from an instance. Singleton.foo() This error is confusing. This patch ensures that an error on the class_name line will be produced: Parse Error: The class "Singleton" conflicts with the AutoLoad singleton of the same name, and is therefore redundant. Remove the class_name declaration to fix this error. Fixes #28187.
2019-09-03Adds skip-breakpoints featureiwek7
2019-09-03Try and show all the properties added with _get_property_list() when ↵MrCdK
triggering completion. Closes https://github.com/godotengine/godot/issues/25097
2019-09-03Fix uninitialized arrays and dictionaries retaining valueBojidar Marinov
Fixes #28978
2019-09-02Merge pull request #31893 from bojidar-bg/25081-gdscript-index-selfRémi Verschelde
Re-allow indexing on objects and other non-builtin types
2019-09-02Merge pull request #31843 from 2shady4u/parserCtrlClickRémi Verschelde
Solves ctrl+click on functions by ignoring the cursor
2019-09-02Re-allow indexing on "self" and object types in GDScriptBojidar Marinov
Fixes #25081
2019-09-02gdscript: Fix build after #24925Rémi Verschelde
The PR did not use the ScriptCodeCompletionOption system introduced later on, and somehow this did not generate a merge conflict even though neighboring code was changed.
2019-09-02Merge pull request #24925 from Mr-Slurpy/typed-autoloadRémi Verschelde
Added autoloads as a potential type.
2019-09-02Merge pull request #21443 from deepmax/ord_functionRémi Verschelde
Add ord() function to return Unicode code point of a string of length one
2019-09-02Solves ctrl+click on functions by ignoring the cursorshaderbeast
Obeyed CLANG format rules Obeying CLANG format rules attempt 2 Obeying CLANG format rules attempt 3 Clean up Fixed runaway while loop Removed int initialization
2019-08-29doc: Sync classref with current sourceRémi Verschelde
2019-08-29Updated description for "stepify"Thomas Karcher
Mentioned the possibility to use stepify as a rounding function; +code examples
2019-08-29Merge pull request #31741 from akien-mga/lsp-requires-websocket-jsonrpcRémi Verschelde
GDScript: Disable LSP if either jsonrpc or websocket are disabled
2019-08-29Merge pull request #31738 from bojidar-bg/31056-class_name-extendsRémi Verschelde
Remove check for class_name and extends order
2019-08-28Add ord() function to return Unicode code point of a string of length oneMasoud Montazeri
2019-08-28Merge pull request #31737 from bojidar-bg/31455-stack-underflowRémi Verschelde
Fix yield check in GDScriptFunction
2019-08-28GDScript: Disable LSP if either jsonrpc or websocket are disabledRémi Verschelde
Follow-up to #29780.
2019-08-28Merge pull request #29780 from GodotExplorer/gdscript-lspRémi Verschelde
Add Language Server Protocol for GDScript
2019-08-28Remove check for class_name and extends orderBojidar Marinov
Closes #31056
2019-08-28Fix yield check in GDScriptFunctionBojidar Marinov
Fixes #31455
2019-08-28Merge pull request #31606 from toasteater/fix/nativescript-new-json-return-typeRémi Verschelde
Fix the return type of NativeScript::new in API json
2019-08-27Make 'break' and 'continue' be marked as safeMichael Alexsander Silva Dias
2019-08-26Make VarArg methods return types show up as Variant in API jsontoasteater
VarArg methods have the return type Object in the API json for GDNative. This can cause undefined behavior in some language bindings due to lack of documentation on VarArg methods' behavior. This changes the MethodInfo of: - CSharpScript::_new - GDScript::_new - PluginScript::_new
2019-08-23Improve writing style in GDScript error/warning messagesHugo Locurcio
This uses double quotes everywhere for consistency.
2019-08-17Replace last occurrences of 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG'Rémi Verschelde
The last remaining ERR_EXPLAIN call is in FreeType code and makes sense as is (conditionally defines the error message). There are a few ERR_EXPLAINC calls for C-strings where String is not included which can stay as is to avoid adding additional _MSGC macros just for that. Part of #31244.
2019-08-12Export: Remove temp files from cache after exportRémi Verschelde
So far we left most temporary files lying around, so this attempts to fix that. I added a helper method to DirAccess to factor out the boilerplate of creating a DirAccess, checking if the file exists, remove it or print an error on failure.
2019-08-11Improve code compeletion for virtual methods with signaturesgeequlim
2019-08-11Add optional goto definition support for native symbolsgeequlim
This action will show help for target symbol in godot editor and bring the godot editor window to foreground Improved markdown documentation for symbols.
2019-08-11Add generate script api to dictionary supportGeequlim
Expose GDScriptLanguageProtocol singleton and classes for editor plugins (Not visiable in class tree) Fix minor bug in symbol resolve
2019-08-11Check client workspace directory is validGeequlim
Drop test initialize message sent to client Remove unused code property for the parser class
2019-08-11Improve symbol resolve for inner classesGeequlim
Only level one inner classes would be resolved currently but it sould cover most real world use case Improve documation parseing for const values Improve documation format for native symbols
2019-08-11Improved performance for completion and symbol resolvation.Geequlim
Improved uri and workspace path translatation on windows platform. The smart resolvation is much faster than builtin's in the server side. The smart resolve mode is still disabled as default as the clients might be slow with a planty of completion items.
2019-08-11Add optional smart resolve sulotiongeequlim
The smart resolvaion can guess most symbols but it might be slow so disabled by default users can turn on it in the editor setting