IL2CPU appears to have missing or invalid Plug Methods. #3061
Replies: 5 comments 1 reply
-
I think those warnings shouldn't cause any issues, i usually get them and it dosen't affect the OS |
Beta Was this translation helpful? Give feedback.
-
those are just warnings, i get those too. they do not affect the OS (well atleast for me) and you can safely ignore them |
Beta Was this translation helpful? Give feedback.
-
Ok perfect. as long as they won't cause problems down the road should be good. |
Beta Was this translation helpful? Give feedback.
-
yes, they are fine. but we should still clean up no longer needed plugs. |
Beta Was this translation helpful? Give feedback.
-
If i remember correctly those two are plugs where the parameter types are different to the ones they are plugging. for the activator one, i guess changing the 'CosmosRuntimeType' to 'Type' and then casting it on the method body would do the trick. i did it like that to avoid the cast since, as far as i know, all 'Type' objects on Cosmos are really 'CosmosRuntimeType'. |
Beta Was this translation helpful? Give feedback.
-
Have you checked Github Issues for similar errors?
Yes, there appears to be missing plugs in IL2CPU
Exception
Post the exception returned by Visual Studio
Warning (active) Invalid plug method! Target method not found. : A0SystemObjectA2CosmosCore_PlugsSystemActivatorImplCreateInstanceA2CosmosCoreCosmosRuntimeTypeA0SystemBooleanA0SystemBoolean Replica C:\Users\aajfr\source\repos\Replica\Replica\IL2CPU 1
Warning (active) Invalid plug method! Target method not found. : A0SystemInt64A3CosmosSystem_PlugsSystemIOOSFileStreamStrategyImplSeekA0SystemInt64A0SystemObject Replica C:\Users\aajfr\source\repos\Replica\Replica\IL2CPU 1
Warning (active) Invalid plug method! Target method not found. : A0SystemVoidA3CosmosSystem_PlugsSystemIOStreamWriterImplWriteFormatHelperA0SystemStringA0A0SystemObjectarrayA0SystemBoolean Replica C:\Users\aajfr\source\repos\Replica\Replica\IL2CPU 1
Visual Studio Output Logs
How To Reproduce
Compile a new Cosmos Kernel
Screenshots
Context
Before posting please confirm that the following are in order
[Y] Both Cosmos VS Extensions are installed
[Y] In the NuGet Package Manager "Include prerelease" is selected
[Y] The Cosmos NuGet package store is selected (NOT nuget.org) in 'Manage NuGet Packages'
[Y] The Cosmos NuGet packages are installed
Add any other context about the problem which might be helpful.
The kernel does compile and seems to run fine in my tests, however, i am unsure if these will be a problem later on as my tests are so far basic (load a canvas with a BMP and rectangle).
Versioning Info: Cosmos Devkit (latest version), C# 10.0 DotNet 6.0 (my system has DotNet 7.0 and 8.0 installed, but appears to just use 6.0), IL2CPU (Latest Version). Testing on VMWare Workstation 17.2. Devkit installed per instructions on https://cosmosos.github.io/articles/Installation/DevKit.html
Beta Was this translation helpful? Give feedback.
All reactions