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

Debug Working filesystem but VMware filesystem Error occurs #2852

Closed RafCodes-del closed 11 months ago

RafCodes-del commented 11 months ago

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

Filesystem Folders.

Expected Behaviour - What do you think that should happen?

Normal os filesystem - will make folder

Actual Behaviour - What unexpectedly happens?

image

Reproduction - How did you get this error to appear?

using System.IO; using System;

namespace LortOS.Commands { public static class SetupCommand { public static void Execute(ref string currentDirectory) { Console.WriteLine("Setting up the LortOS...");

        string prgrmsPath = System.IO.Path.Combine(currentDirectory, "prgrms");
        if (!System.IO.Directory.Exists(prgrmsPath))
        {
            System.IO.Directory.CreateDirectory("prgrms");
            Console.WriteLine("Created 'prgrms' folder. Setup Complete!");
        }
    }
}

} my code. seperate from kernel.cs trying to make a folder

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

i.. do not know what version i was running.

Edit: Debug Version works but when i run Debug .iso without VS it shows that error.

zarlo commented 11 months ago

System.IO.Directory.CreateDirectory("prgrms"); you need to use the full path

RafCodes-del commented 11 months ago

It works but when i try running the .iso file on VMware it shows that error.

RafCodes-del commented 11 months ago

Debug - With VS Launching or Visual Basic Running VMware *The VMware Session that runs after Building the solution image Debug - Manual Launch - Without VS Launching VMware: image Debug - Manual Launch - Without VS Launching VMware - Setup Command being ran - This time with Error Message: image image

Now with edited code: using System.IO; using System;

namespace LortOS.Commands { public static class SetupCommand { public static void Execute(ref string currentDirectory) { Console.WriteLine("Setting up LortOS...");

        string prgrmsPath = System.IO.Path.Combine(currentDirectory, "prgrms");
        if (!System.IO.Directory.Exists("0:\\prgrms"))
        {
            System.IO.Directory.CreateDirectory("0:\\prgrms");
            Console.WriteLine("Created 'prgrms' folder. Setup Complete!");
        }
    }
}

} Still. shows that error

VMware Machine Specs: image

But the code is working with VS launching the Debug ISO file! 1 Question: Is the problem with The Code or the Virtual Machine Specifications?