b1187b9a2f
GDScript: Revert extra deletion when creating instance
...
Revert part of e4af39cbc0 that was causing
a crash.
2018-09-19 11:17:47 -03:00
825e85ab23
GDScript: Error on empty blocks at the end of file
...
Fix #15415
2018-09-19 11:17:46 -03:00
02acb07d81
GDScript: Fix autocompletion inference after is check
...
Fix #21915
2018-09-19 11:17:46 -03:00
726e836cd9
GDScript: Fix infinite loop in autocomplete
...
It happened when the definition of the variable contained the variable
itself.
2018-09-19 11:17:46 -03:00
e6a6ea65c7
GDScript: Forbid enum values to shadow constants
...
- Don't allow constants to shadow parent members.
- Fix a spelling mistake.
Fix #13175
2018-09-19 11:17:46 -03:00
6c70c4c358
GDScript: Fix autocomplete crash when searching default values
...
Fix #21700
2018-09-19 11:17:46 -03:00
b530031442
GDScript: Allow Object constants to be used with qualifier
...
Fix #15125
2018-09-19 11:17:46 -03:00
4907a1cd28
GDScript: Fix stack address test in compiler
2018-09-19 11:17:45 -03:00
4075c80ea9
Merge pull request #22165 from DualMatrix/atan2_plain_wrong
...
Fixed argument names having wrong order for atan2
2018-09-17 12:33:26 +02:00
4bad2beeed
Fixed argument names being swapped for atan2
...
The arguments of atan2() should be y,x instead of x,y This was just wrong since the internal atan2 already had y,x as parameters, so if you followed the autocomplete the result would just be wrong.
2018-09-16 21:27:54 +02:00
47bf26c40d
test for depreciacion warnings only on debug builds
...
Fix adherence to clang-format rules
2018-09-16 19:37:51 +02:00
c0e4d7efca
Add GDScript slave keyword deprecation warning.
2018-09-15 01:50:34 +02:00
1e9b46d687
Clearly deprecate sync too in favor of remotesync.
...
NOTE: This changes the RPC_MODE_* enum values.
Games should be re-exported. GDNative rebuilt.
2018-09-15 00:06:03 +02:00
d6b31daec6
Rename slave keyword to puppet
...
The slave keyword will still be available as deprecated in 3.1 but will
be dropped from future releases.
2018-09-15 00:06:03 +02:00
1a16dabfb5
Merge pull request #21982 from luzpaz/misc-typos
...
Misc. typos
2018-09-13 10:59:00 +02:00
08bde5b2de
Misc. typos
...
Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
2018-09-12 21:39:17 -04:00
277b24dfb7
Make core/ includes absolute, remove subfolders from include path
...
This allows more consistency in the manner we include core headers,
where previously there would be a mix of absolute, relative and
include path-dependent includes.
2018-09-12 09:52:22 +02:00
0faafa6f4d
Fix crash when extending non-existing GDScript file
...
Fixes #21682 with a partial revert of #21411 .
The ~Ref() destructor (from 'scriptres') already takes care
of freeing the 'script' resource.
2018-09-10 20:46:20 +02:00
f051f5110e
Fixed scientific notaion not highlighting correctly, issue 21435
2018-09-08 13:42:11 +01:00
d227a9ae12
Fixed return type for get_stack() function call
2018-09-05 11:29:06 +01:00
f06b7d40c8
Merge pull request #21449 from vnen/gdscript-builtin-is
...
Allow `is` operator to test built-in types
2018-08-27 17:48:11 +02:00
5b87864385
Merge pull request #21369 from Noshyaar/exportflag
...
Deprecating bit flags export with no hint text
2018-08-27 17:47:21 +02:00
49cf675ef4
Merge pull request #21450 from vnen/gdscript-type-space
...
Remove space before colon on type hints
2018-08-27 10:42:19 +02:00
de45b18ddb
GDScript: Remove space before colon on type hints
2018-08-26 13:43:13 -03:00
4b974a36b7
GDScript: Allow is operator to test built-in types
2018-08-26 13:31:23 -03:00
e4af39cbc0
Fixes several resource leaks in ...
...
- gdscript
- gdscript_compiler
- regex
- android/export
- gles3/rasterizer (scene and storage)
2018-08-26 09:19:02 +08:00
cee6d5620a
Deprecating bit flags export with no hint text
2018-08-24 20:46:04 +07:00
52466d57e9
Make some debug prints verbose-only, remove others
2018-08-24 14:59:01 +02:00
94d662ad55
GDScript: Ignore unused arguments/local vars that start with _
...
Makes it simple to ignore particular arguments without adding special
comments, especially in engine-defined functions.
2018-08-21 20:29:43 -03:00
4d2b9a4b35
GDScript: Show warning messages only on debugger
...
Don't show on console/output anymore.
2018-08-21 20:29:33 -03:00
fdf18a4198
GDScript: Fix undefined behavior on GDScriptTokenizerBuffer
2018-08-21 13:54:52 -03:00
abbdb9d951
GDScript: Forbid invalid identifiers in match bindings
...
Also forbid shadowing a variable from an upper scope.
2018-08-21 13:38:18 -03:00
d97624e295
GDSCript: Fix cyclic class dependency detection
2018-08-21 13:14:11 -03:00
649c3bee3b
Highlight multiline strings as strings instead of comments
...
Since multiline comments are not officially supported in GDScript, it is
more common to see multiline strings being used as strings rather than
as comments (which are actually standalone expressions here).
This closes #21142 .
2018-08-19 13:47:57 +02:00
3ed9231117
Fix error spam from loading script class icons
2018-08-15 10:17:28 -05:00
6d9cc032e7
Add custom icons to script classes.
2018-08-14 14:18:05 -05:00
b4f579b5ba
Merge pull request #20583 from neikeq/issue-15371
...
Fix case where exported properties value is lost
2018-08-14 21:08:56 +02:00
179e15f876
Remove usage console spam
2018-08-13 16:51:17 +03:00
eb48119821
Added system for GDScript warnings
...
- Count and panel per script.
- Ability to disable warnings per script using special comments.
- Ability to disable warnings globally using Project Settings.
- Option to treat enabled warnings as errors.
2018-08-10 16:00:47 -03:00
ba974b8d1e
Allow some non-integer built-in constants in gdscript
2018-07-31 17:56:48 +02:00
f3c7527225
Fix case where exported properties value is lost
...
Fixes exported property modified values lost when creating a placeholder script instance with a failed script compilation
- Object set/get will call PlaceHolderScriptInstance's new fallback set/get methods as a last resort. This way, placeholder script instances can keep the values for storage or until the script is compiled successfuly.
- Script::can_instance() will only return true if a real script instance can be created. Otherwise, in the case of placeholder script instances, it will return false.
- Object::set_script(script) is now in charge of requesting the creation of placeholder script instances. It's no longer Script::instance_create(owner)'s duty.
- PlaceHolderScriptInstance has a new method set_build_failed(bool) to determine whether it should call into its script methods or not.
- Fixed a few problems during reloading of C# scripts.
2018-07-29 22:40:12 +02:00
e8da2a60b3
GDScript: Fix parse error in string formatting
2018-07-26 10:52:11 -03:00
0b78e4f9e3
GDScript: Add type inference syntax for function arguments
2018-07-25 21:06:35 -03:00
7db7b43cb0
GDScript: Fix type detection for String formatting operator
2018-07-25 20:50:13 -03:00
aeb0b3114d
GDScript: Fix type detection on Object typed assign
...
Also make typed assigns a debug-only thing, so release builds are more
lenient on errors.
2018-07-25 20:50:12 -03:00
a3ae4a9510
GDScript: Allow accessing constants of outer classes
2018-07-25 20:50:12 -03:00
a62f4af7ba
GDScript: Enable built-in function introspection in non-tools
...
Only for debug builds. Fix problems in non-tools targets.
2018-07-25 20:50:12 -03:00
3d6609303b
GDScript: Fix bogus error when a cursor token is found on class
2018-07-25 20:50:12 -03:00
1ac9c0fe3a
GDScript: Allow strict conversion when assigning typed variables
2018-07-25 20:50:12 -03:00
96ee93e8c7
GDScript: Fix mismatching between export hint and type hint
2018-07-25 20:50:12 -03:00