Exception: System.Exception
See original GitHub issueArea of Cosmos - What area of Cosmos are we dealing with?
Editing the kernel.cs file, using functions like DateTime.Now.ToString()
, et cetera.
Expected Behaviour - What do you think that should happen?
Console should print the date and time
Actual Behaviour - What unexpectedly happens?
Exception: System Exception
Reproduction - How did you get this error to appear?
By using DateTime.Now.ToString()
and Math.Pow()
Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?
Devkit commit 2c14f60
Error Log:
1>------ Build started: Project: Apokalipse, Configuration: Debug Any CPU ------ 1>Apokalipse -> C:\Users\Chandra\source\repos\Apokalipse\Apokalipse\bin\Debug\netcoreapp2.0\cosmos\Apokalipse.dll 1>Message: Executing IL2CPU on assembly 1>Message: Kernel Base: Cosmos.System.Kernel 1>Message: Checking target assembly: C:\Users\Chandra\source\repos\Apokalipse\Apokalipse\bin\Debug\netcoreapp2.0\cosmos\Apokalipse.dll 1>IL2CPU : error : Exception: System.Exception: 1>Native code encountered, plug required. 1> DO NOT REPORT THIS AS A BUG. 1> Please see http://www.gocosmos.org/docs/plugs/missing/ 1> Need plug for: System.Void System.Threading.Interlocked._CompareExchange(System.TypedReference, System.TypedReference, System.Object). 1> Called from : 1>System.Threading.Interlocked::System.Globalization.NumberFormatInfo CompareExchange[NumberFormatInfo](System.Globalization.NumberFormatInfo ByRef, System.Globalization.NumberFormatInfo, System.Globalization.NumberFormatInfo) 1>System.Globalization.CultureInfo::System.Globalization.NumberFormatInfo get_NumberFormat() 1>System.Globalization.CultureInfo::System.Object GetFormat(System.Type) 1>System.Globalization.DateTimeFormatInfo::System.Globalization.DateTimeFormatInfo get_CurrentInfo() 1>System.DateTime::System.String ToString(System.String) 1>Apokalipse.Kernel::Void Run() 1>Cosmos.System.Kernel::Void Run() 1> 1> 1> at Cosmos.IL2CPU.ILScanner.ScanMethod(MethodBase aMethod, Boolean aIsPlug, String sourceItem) in E:\Cosmos\IL2CPU\source\Cosmos.IL2CPU\ILScanner.cs:line 616 1> at Cosmos.IL2CPU.ILScanner.ScanQueue() in E:\Cosmos\IL2CPU\source\Cosmos.IL2CPU\ILScanner.cs:line 769 1> at Cosmos.IL2CPU.ILScanner.Execute(MethodBase aStartMethod, IEnumerable 1 plugsAssemblies) in E:\Cosmos\IL2CPU\source\Cosmos.IL2CPU\ILScanner.cs:line 260 1> at Cosmos.IL2CPU.CompilerEngine.Execute() in E:\Cosmos\IL2CPU\source\Cosmos.IL2CPU\CompilerEngine.cs:line 176 1>IL2CPU task took 00:00:03.1690537 1>Done building project "Apokalipse.csproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top GitHub Comments
@zarlo Math.Pow() is already plugged with - I think - the most efficient way to do it in software mode: https://github.com/CosmosOS/Cosmos/blob/master/source/Cosmos.System2_Plugs/System/MathImpl.cs#855
my Math.Pow() is the best