furnace icon indicating copy to clipboard operation
furnace copied to clipboard

[Suggestion] Error feedback for command line usage on Windows

Open aquamarine-axo opened this issue 3 years ago • 5 comments
trafficstars

I believe that users of most software should not have to constantly glance at the source code/documentation to be able to learn how to use it or know what they're doing incorrectly to be able to accomplish a certain task. Furnace, in command line mode, does not do this at the moment (on Windows 10, anyway).


To help remedy this issue, I believe that Furnace should have some sort of error feedback upon a crash or user error (like JSIDPlay2 for example), and some sort of built-in command line documentation for the various command line parameters that Furnace currently has.


Another thing that I think may be needed is to show you when Furnace is running in the background (eg, playing a song in console mode), perhaps how JSIDPlay2 does it (it gives you some song stats and a runtime counter, and you can ctrl+c it in that state as well). This may also solve the issue that you have to do taskkill /f /im furnace.exe (or your operating system's equivalent) to stop the music in command line mode, where it would be a lot easier to let the user kill Furnace by doing ctrl+c.


edit: After a quick glance at the source code, it appears that Furnace does indeed have some printfs lying around for command line feedback, but these do not appear to print at all on Windows.

aquamarine-axo avatar Jun 12 '22 19:06 aquamarine-axo

MessageBox in logE

The reason why is console mode absent on Windows is because Furnace is built in the Windows subsystem, which prevents the appearance of a console when launched from the explorer, but also prevents command-line usage/console attachment.

tildearrow avatar Jun 12 '22 23:06 tildearrow

Is there a way to get these messages to show up on the command line for Windows users as well?

aquamarine-axo avatar Jun 13 '22 01:06 aquamarine-axo

The reason why is console mode absent on Windows is because Furnace is built in the Windows...

Console mode is present and works fine, except for the error/debug info logging into the command prompt.

aquamarine-axo avatar Jun 13 '22 01:06 aquamarine-axo

The reason why is console mode absent on Windows is because Furnace is built in the Windows...

Console mode is present and works fine, except for the error/debug info logging into the command prompt.

I meant console output. Sorry for the lack of clarification.

tildearrow avatar Jun 13 '22 03:06 tildearrow

Partially done! Furnace initialization failures (e.g. UI couldn't start, unable to load file, etc.) are now reported using MessageBox().

tildearrow avatar Jun 29 '22 04:06 tildearrow