Closed KernelFox0 closed 1 year ago
do you know what previous version it work in
Sadly I don't know the exact version. But I remember that the last time I updated before it broke with the newest was in November back in 2022
Do it like this instead:
Console.InputEncoding = Cosmos.System.ExtendedASCII.CosmosEncodingProvider.Instance.GetEncoding(437);
Console.OutputEncoding = Cosmos.System.ExtendedASCII.CosmosEncodingProvider.Instance.GetEncoding(437);
The same problem happens.
I found a version where it still works: It's commit 189f4e1
https://github.com/CosmosOS/Cosmos/tree/189f4e1d9698db4062635a05b9a0eb820ff9a814
Is it broken with any newer commit?
Just pulled the devkit last night, and I'm getting a different error. The code
Encoding ExtendedEncoding = Cosmos.System.ExtendedASCII.CosmosEncodingProvider.Instance.GetEncoding(437);
Console.OutputEncoding = ExtendedEncoding;
gives
bin/cosmos/Debug/net6.0/MyOS.asm:188956: error: undefined symbol `SystemVoidSystemStringarrayctorSystemInt32SystemInt32' (first use)
bin/cosmos/Debug/net6.0/MyOS.asm:188956: error: (Each undefined symbol is reported only once.)
This, unfortunately, is wildly beyond my skill level. Do any of you with a better understanding have any ideas of how to resolve this?
im working on a fix rn, InputEncoding and OutputEncoding only has a getter and not a setter because of a refactoring pr ( #2631 )
Area of Cosmos - What area of Cosmos are we dealing with?
Cosmos ExtendedASCII failing to compile
Expected Behaviour - What do you think that should happen?
Adding the ExtendedASCII namespace and setting the encoding should allow us to display characters like █. It was working in a previous version.
Actual Behaviour - What unexpectedly happens?
Trying to make it work results in System.Exception without any details.
Reproduction - How did you get this error to appear?
Adding these lines of code to a project:
Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?
Latest possible devkit. (Commit 6802c4e)
This is the output log:
I reported this as a bug because it was working in a previous version.