Cosmos is an operating system "construction kit", built from the ground up around the IL2CPU compiler in C# and our home-brewed language called X#.
I get an IL2CPU System.ArgumentException Interference Maps for generic interfaces cannot be retrieved.
The strangest part is that the code was working fine, and even If I remove the newest code added, it still does not work. It was booting fine just now
if (debug) { Console.WriteLine(cmdarr); }
switch (cmdarr[0])
{
case "cd":
try
{
``` Directory.SetCurrentDirectory(cmdarr[1]);
}catch(DirectoryNotFoundException)
{
Console.WriteLine("OS cannot find the needed dir.");
};
break;
case "md":
if(cmdarr[1].Contains(":")){
System.IO.Directory.CreateDirectory(cmdarr[1]);
}
else {
System.IO.Directory.CreateDirectory(System.IO.Directory.GetCurrentDirectory()+ cmdarr[1]);
}
Console.WriteLine($"Created Directory {cmdarr[1]}");
break;
case "prt":
foreach (var file in Directory.GetFiles(cmdarr[1]))
{
var content = File.ReadAllText(file);
Console.WriteLine("File name: " + file);
Console.WriteLine("File size: " + content.Length);
Console.WriteLine("Content: " + content);
}
break;
}```
This is where I think the code error comes
0
I have recently made a C# Cosmos system. It is very simple, with a few commands. I can run this on VMware without any problems, but when I flash the ISO onto a USB stick with RUFUS and then boot it from my HP-Pavillion-360-Convertable with 4GB of RAM, this is the error I get:
The Error
Here is the error in text:
Finding PCI Devicesd
Starting ACPI
Searching Ethernet Controllers...
Found Unknown device on PCI 2:0:0
No supported network card found!!
Exception occurred while running kernel:
Exception: No disks found!
is there any way I can fix this? If so, how?
Thanks!
Enum.HasFlag
, which isn't supported; it's simply not implemented into the Cosmos runtime. You can use the classic bitwise operators to check if the value of an Enum
instance has a given flag. But, it's recommended you join the Discord, as it's much more active: https://discord.gg/JDd9usuUgS