Commit Graph

2955 Commits

Author SHA1 Message Date
3bb74adc45 [Doc] Document loading behavior with relative paths
(cherry picked from commit 2508c2e309)
2024-04-08 15:48:31 +02:00
d81e6e951c Update @GDScript documentation
(cherry picked from commit 0c48845247)
2024-04-08 15:48:28 +02:00
4e5b545c04 [GDScript] Prevent running String number functions on invalid literal
Prevents printing excessive errors.

(cherry picked from commit 66d55e62f0)
2024-03-11 23:26:36 +01:00
9f4eac82a2 GDScriptAnalyzer is unaware of properties from other Languages
Co-authored-by: K. S. Ernest (iFire) Lee <fire@users.noreply.github.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
(cherry picked from commit 030aa41a99)
2024-03-11 23:06:00 +01:00
8f0966982d GDScript: Fix POT generator skips some nodes (part 2)
(cherry picked from commit e07ec89bdf)
2024-03-11 16:23:38 +01:00
fc78f766d1 Allow LSP to process multiple messages per poll
(cherry picked from commit e2485044a1)
2024-03-11 15:00:42 +01:00
c17688fa6c Fix running tests in template builds
Also fixes some errors with 3D disabled
2024-02-27 16:03:18 +01:00
c35e05e7b1 GDScript: Fix accessing static function as Callable in static context
(cherry picked from commit 10dcb21d8b)
2024-01-25 18:45:01 +01:00
ee1034d355 GDScript: Fix POT generator skips some nodes
(cherry picked from commit 1aa242f7c4)
2024-01-25 18:32:37 +01:00
b34af3aa5a Speed up GDScript::get_must_clear_dependencies()
get_must_clear_dependencies() has a N^3*log(N) time complexity, and this can very quickly slow down the quitting process as more gdscripts are added in a project.
This change improves it to N^2*log(N).
Instead of using all the inverted dependencies, we do the same with all (non-inverted) dependencies, which is N times faster.

Fixes #85435

(cherry picked from commit 0d77c3e092)
2024-01-25 18:32:36 +01:00
571cb746f9 Improve sorting of enum autocompletion
(cherry picked from commit 76fd7ec394)
2024-01-25 18:08:44 +01:00
89fd2c30e1 Fix the autocomplete function for the 'self' keyword.
(cherry picked from commit c8fc824608)
2024-01-25 17:19:41 +01:00
7c22d5444a Fix regression when autocompleting subscript on get node
(cherry picked from commit 5f72254d4d)
2024-01-25 17:19:41 +01:00
4d4ec47690 GDScript: Lambda hotswap fixes 2024-01-05 17:18:46 -08:00
6f8cc1b8de Improve autocompletion with get_node
(cherry picked from commit c8889a7fe7)
2023-12-07 10:27:08 +01:00
0ba32ac384 Filter groups and categories from autocompletion
(cherry picked from commit e253250814)
2023-12-07 10:27:08 +01:00
2b3a8f060a Update cached singletons when reloading GDScripts
(cherry picked from commit 8cdbec0434)
2023-12-07 10:27:07 +01:00
4564a8513a Correctly check scripts that must inherit EditorPlugin
Also updates some error messages related to this kind of check
across the codebase.

(cherry picked from commit bc1949d797)
2023-12-07 10:27:06 +01:00
cfa7e72057 Fix GDScript thread-exit routine assuming thread-enter was called 2023-11-27 13:01:37 +01:00
bfe66ab7cd Fixup thread-owned lambda bookkeeping on thread exit (take 2) 2023-11-23 18:50:20 +01:00
f26328e9a3 Revert recently added approach to cross-thread lambda survival
Commits reverted:
- 1ed6919148
- 271511726b
2023-11-22 20:07:01 +01:00
c2f8fb3015 Merge pull request #85039 from RandomShaper/mingwthreads
Use mingw-std-threads in MinGW builds
2023-11-21 15:44:18 +01:00
fa259a77cd Codestyle: Fix some comment issues 2023-11-21 15:26:53 +01:00
1ed6919148 Fix leak in the bookkeeping of GDScript lambdas 2023-11-21 12:52:55 +01:00
fe4850c0d0 Use mingw-std-threads in MinGW builds 2023-11-18 11:56:05 +01:00
bc80776618 Merge pull request #84659 from RandomShaper/fix_lambda_cross_thread
Fix lambda cross-thread dynamics
2023-11-12 12:14:42 +01:00
8928b2044b Merge pull request #80281 from KoBeWi/unacceptable
Assign temporary path to preloaded resources
2023-11-12 12:13:55 +01:00
a9c864dc35 Merge pull request #83039 from KoBeWi/it's_always_the_cache
Fix GDScript cache assigning UID as scene path
2023-11-10 10:44:33 +01:00
a3627b6e37 Assign temporary path to preloaded resources 2023-11-10 00:43:30 +01:00
271511726b Fixup thread-owned lambda bookkeeping on thread exit 2023-11-10 00:05:38 +01:00
bfd7a50036 SCons: Fix build with GDScript LSP disabled
Fixes #83947.
2023-10-30 15:28:34 +01:00
adcd16c710 Merge pull request #83569 from vnen/gdscript-no-opt-division-modulo
GDScript: Don't optimize division and modulo on debug
2023-10-26 15:59:44 +02:00
e945a8fbad Fix typo in gdscript_parser.h and gdscript_translation_parser_plugin.cpp 2023-10-23 08:48:36 -05:00
7f4721a941 GDScript: Fix non-static call is allowed in static var lambda body 2023-10-20 20:43:07 +03:00
7270da76ba Merge pull request #83540 from mattbork/get_shallow_script_fix
Fix `GDScriptCache::get_full_script` eating parsing errors because of early exit
2023-10-20 15:09:04 +02:00
2d262c072b Fix GDScriptCache::get_full_script eating parsing errors because of early exit
Fixes #75545.
2023-10-18 18:21:59 -04:00
08e3f30299 GDScript: Don't optimize division and modulo on debug
Since the validated operators don't have checks for division by zero,
use the regular evaluator in debug which has those checks.
2023-10-18 14:12:51 -03:00
9fb8862d73 GDScript: Lambda hot reloading
Co-authored-by: Adam Scott <ascott.ca@gmail.com>
2023-10-17 15:52:52 -04:00
109cb8e697 Merge pull request #83455 from Lunarisnia/fix/gdscript-error-typo
Fix grammar typo in GDScript error message
2023-10-17 16:13:02 +02:00
981c6c94c0 Fix grammar typo in GDScript error message 2023-10-17 01:33:37 +07:00
ddb7969cb6 Merge pull request #83257 from dalexeev/gds-fix-unresolved-type-for-incomplete-expressions
GDScript: Fix unresolved datatype for incomplete expressions
2023-10-16 18:44:27 +02:00
6a0716dedd Merge pull request #83123 from astillich/82998-propagate-base-class-exports
Fix modifying base script exports not propagating to derived scripts
2023-10-16 18:43:39 +02:00
99f8751878 Fix editing exports in a base script not propagating the change to the opened property editor
This patch fixes the user having to navigate away from the selected node which has the derived script attached and back to see the changes of the base script exports reflected in the property editor.
2023-10-16 17:55:19 +02:00
0c2202c56e GDScript: Fix incorrect error message for utility functions 2023-10-16 14:09:57 +03:00
3ac61aadd7 GDScript: Fix unresolved datatype for incomplete expressions 2023-10-13 12:52:14 +03:00
881fe67d94 Code Editor: Fix regression with using doc comments for code regions 2023-10-13 09:38:03 +03:00
2c79bc686e Merge pull request #83150 from dalexeev/gds-autocomplete-static-var-on-class
GDScript: Add autocompletion for static variables accessed via class
2023-10-11 22:44:35 +02:00
25fa5eadd5 Merge pull request #82986 from OmarShehata/fix-external-editor-hot-reload
Fix external editor hot reload for GDScript
2023-10-11 22:38:42 +02:00
496bee3bc7 GDScript: Add autocompletion for static variables accessed via class 2023-10-11 17:10:16 +03:00
53c6c387ef Merge pull request #83050 from k0T0z/fix-unnecessary-include
Deleting unnecessary include in GDScriptParser
2023-10-10 12:33:58 +02:00