CosmosOS / Cosmos

Cosmos is an operating system "construction kit". Build your own OS using managed languages such as C#, VB.NET, and more!
https://www.goCosmos.org
BSD 3-Clause "New" or "Revised" License
2.94k stars 552 forks source link

FileNotFoundException FileSystem Error #2778

Closed JonJon565 closed 1 year ago

JonJon565 commented 1 year ago

Area of Cosmos - What area of Cosmos are we dealing with?

Exception occurred while running kernel: FileNotFoundException

image

image

Expected Behaviour - What do you think that should happen?

i think it should work duh

Actual Behaviour - What unexpectedly happens?

It shows FileNotFoundException

Reproduction - How did you get this error to appear?

`using System; using System.Collections.Generic; using System.Text; using Sys = Cosmos.System; using Cosmos.System.FileSystem; using System.IO;

namespace TestKernOS { public class Kernel : Sys.Kernel { Sys.FileSystem.CosmosVFS fs = new Cosmos.System.FileSystem.CosmosVFS(); protected override void BeforeRun() { Console.WriteLine("Cosmos booted successfully. Type a line of text to get it echoed back."); Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs); }

    protected override void Run()
    {
        var available_space = fs.GetAvailableFreeSpace(@"0:\");
        Console.WriteLine("Available Free Space: " + available_space);
    }
}

} `

Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?

Latest...

9xbt commented 1 year ago

weird

9xbt commented 1 year ago

devkit or userkit btw

JonJon565 commented 1 year ago

userkit but i have inno installed and SDK 6.0.414

JonJon565 commented 1 year ago

and i dont know which one i have dont know how too tell

zarlo commented 1 year ago

and i dont know which one i have dont know how too tell

how did you install cosmos was it with a .exe or did you run a .bat