summaryrefslogtreecommitdiff
path: root/modules/mono
AgeCommit message (Collapse)Author
2020-10-23C#: Make editor create NuGet fallback folder for Godot packagesIgnacio Etcheverry
Main benefits: - Projects can be built offline. Previously you needed internet access the first time building to download the packages. - Changes to packages like Godot.NET.Sdk can be easily tested before publishing. This was already possible but required too many manual steps. - First time builds are a bit faster, as the Sdk package doesn't need to be downloaded. In practice, the package is very small so it makes little difference. Bumped Godot.NET.Sdk to 4.0.0-dev3 in order to enable the recent changes regarding '.mono/' -> '.godot/mono/'.
2020-10-23C#: Re-work solution build output panelIgnacio Etcheverry
- Removed item list that displayed multiple build configurations launched. Now we only display the last build that was launched. - Display build output next to the issues list. Its visibility can be toggled off/on. This build output is obtained from the MSBuild process rather than the MSBuild logger. As such it displays some MSBuild fatal errors that previously couldn't be displayed. - Added a context menu to the issues list with the option to copy the issue text. - Replaced the 'Build Project' button in the panel with a popup menu with the options: - Build Solution - Rebuild Solution - Clean Solution - The bottom panel button was renamed from 'Mono' to 'MSBuild' and now display an error/warning icon if the last build had issues.
2020-10-18Refactor MethodBind to use variadic templatesreduz
Removed make_binders and the old style generated binders.
2020-10-17Add GetStringFromUTF8 and GetStringFromASCIIAaron Franke
2020-10-13Fix code duplication in CSharpScriptopl-
Removes code duplication between `CSharpScript::reload()` and `CSharpScript::initialize_for_managed_type()`. Removes a redundant `CSharpScript::update_exports()` call in `CSharpLanguage::reload_assemblies()` as `CSharpScript::reload()` already calls it when appropriate. Fixes missing update of RPC information in `CSharpScript::initialize_for_managed_type()`.
2020-10-09Mono: Fix typo in Godot.NET.Sdk.nuspecRémi Verschelde
Fixes #42666.
2020-10-08Adressed ReviewLorenz Junglas
Identifier "macOS" => "MacOS" Platform/SDK name reverted to "osx"
2020-10-08C# GodotTools: Replace platform Identifier "OSX" with "macOS"Lorenz Junglas
Because `Strings OS_OSX::get_name() const` now returns "macOS" (15a9f94346c211b7afe96af500cb3405aabcf6b8) The C# GodotTools were still using "OSX" as identifier a few things were borken (e.g. dotnet/msbuild detection).
2020-10-06Improve the Vector2 rotated code in C#Aaron Franke
2020-10-02iOS: RefactoringSergey Minakov
Enabled ARC for iOS. Weakify/Strongify macros for objc blocks. Removed old version checks. Specific types for ObjC++ modules to exclude unneeded bridging. Separate DeviceMetrics class for device specific data. Replaced old/deprecated functionality.
2020-09-29Fix error message when exporting a write-only property without a setterEduardo Rodrigues
2020-09-28Merge pull request #38704 from aaronfranke/mono-dotgodotRémi Verschelde
Rename the ".mono" folder to ".godot/mono"
2020-09-25Style: Fix black formatting after #42332Rémi Verschelde
Somehow it did not run CI checks so we missed that one. Also pin `black` version to latest upstream release.
2020-09-25Enable the `copy_mono_root` SCons option by defaultHugo Locurcio
This closes #41652.
2020-09-24Merge pull request #42293 from ricardoalcantara/fix_basis_csharpRémi Verschelde
Basis RotationQuat should be public.
2020-09-24Basis RotationQuat should be public.Ricardo Alcantara
2020-09-23Rename the ".mono" folder to ".godot/mono"Aaron Franke
2020-09-23Fix C# string.IsAbsPath()Zae
2020-09-18Fix typos with codespellRémi Verschelde
Using codespell 1.17.1. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick fave findn leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
2020-09-16Fix ExprMatch stackoverflowRaul Santos
2020-09-13Add mono log message to error for fatal errorsTom Daffin
2020-09-13Merge pull request #42000 from aaronfranke/cs-arr-concatRémi Verschelde
Add concatenation support and a new constructor to Godot.Collections.Array
2020-09-13C#: Fix csproj not synced on file move/removal from FS dockIgnacio Etcheverry
When NormalizePath was called with an absolute path (with drive letter) on Windows, it would prepend a file path separator to the path, e.g.: '\C:\Program Files\'. Apparently this was still accepted as a valid path by DotNetGlob and it stopped working when we switched to MSBuildGlob.
2020-09-12Add concatenation support and a new ctor to Godot.Collections.ArrayAaron Franke
2020-09-11Remove unused Python local variables.Marcel Admiraal
2020-09-10Remove unused Python imports.Marcel Admiraal
2020-09-08Change inequality comparison operators to use exact equalityAaron Franke
2020-09-08Merge pull request #41888 from neikeq/sln-bomRémi Verschelde
C#: Use BOM when creating a solution
2020-09-08C#: Use BOM when creating a solutionIgnacio Etcheverry
At least on Windows there seems to be issues if the solution has no BOM and contains a project with cyrillic chars.
2020-09-08C#: Fix endless reload loop if project has unicode charsIgnacio Etcheverry
The assembly modified time wasn't picked properly as the path was treated as latin-1, so the file watcher was constantly firing the event.
2020-09-06Fix header guards in modules:Marcel Admiraal
- Add missing header guards to various modules' register_types.h - Add header guard to basis_universal/texture_basisu.h. - Ensure header guard encloses entire header in webrtc/webrtc_data_channel_js.h.
2020-09-06Handle csproj "Remove" globsAlex de la Mare
MSBuild Item returns empty strings if an attribute isn't set (which caused an IndexOutOfRangeException in NormalizePath). We were treating Excludes incorrectly, Remove directives provide the intended behaviour in the auto-including csproj format.
2020-09-04Fix Mono path utils char types.bruvzg
2020-09-04Merge pull request #41753 from neikeq/csharp-hide-build-button-if-no-projRémi Verschelde
C#: Hide Build button if there's no solution to build
2020-09-04Merge pull request #41747 from neikeq/issue-41446Rémi Verschelde
Fix parsing of C# files with spaces in the path
2020-09-04Merge pull request #41750 from neikeq/issue-41745Rémi Verschelde
C#: Fix Godot failing to find class namespace
2020-09-04Merge pull request #41748 from neikeq/issue-41712Rémi Verschelde
Fix 'Parameter "assembly" is null' error
2020-09-04C#: Hide Build button if there's no solution to buildIgnacio Etcheverry
Same as we do with the bottom panel. Mainly to avoid bothering if the project is not using C#.
2020-09-04C#: Fix Godot failing to find class namespaceIgnacio Etcheverry
2020-09-04Fix 'Parameter "assembly" is null' errorIgnacio Etcheverry
This error was normally being printed when trying to open the project assembly while the project was not yet built. The error should not be printed. It's the job of this method's caller to decide whether to print an error or not if loading failed.
2020-09-04Fix parsing of C# files with spaces in the pathIgnacio Etcheverry
2020-09-03[Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg
2020-09-03C#: Fix Windows detection for copying MSBuild stubIgnacio Etcheverry
Previous condition checked only the host platform. This was a problem as our official builds are from Linux.
2020-09-02Merge python EnvironmentError, IOError and WindowsError into OSError.Marcel Admiraal
2020-09-01Simplify html_is_valid and allow it to work with 3 and 4 hex digitsAaron Franke
2020-09-01Change Color HTML conversion from ARGB to RGBAAaron Franke
Also add support for 3 and 4 digit values in C#. Now it actually matches the HTML/CSS spec.
2020-08-31Add link titles for all links in the class referenceHugo Locurcio
This makes them display in a nicer way in the editor help. (The title will display instead of the full URL.)
2020-08-30Merge pull request #41613 from neikeq/possiblyRémi Verschelde
Fix clang-tidy warnings due to semicolon after mono module macros
2020-08-30Merge pull request #41611 from neikeq/issue-41444Rémi Verschelde
C#: Fix crash on export when incorrectly freeing MonoAssemblyName
2020-08-30Fix clang-tidy warnings due to semicolon after mono module macrosIgnacio Etcheverry
This also enforces them to end with a semicolon.