arnis icon indicating copy to clipboard operation
arnis copied to clipboard

[BUG] Command line interface suppressed

Open louis-e opened this issue 1 year ago • 4 comments

Due to the recently added cfg_attr used by Tauri, the command line gets suppressed. https://github.com/louis-e/arnis/blob/278c7a2cdaa449f732d3d3bf5de55c20ac790b62/src/main.rs#L1

If there is still a demand for the CLI, we need to find a way to let the user choose between using the GUI or the CLI.

louis-e avatar Dec 29 '24 22:12 louis-e

we can also keep it suppressed, and still log stuff for debugging or bug reports by making a function that appends the current datetime + a message to a file

amir16yp avatar Jan 03 '25 13:01 amir16yp

That also sounds good! Do you think there is a need for keeping the command line available at all? I mean as of now we provide pretty much every feature in the GUI too and there will be no user without a desktop environment who will want to generate a Minecraft world :D

louis-e avatar Jan 03 '25 15:01 louis-e

That also sounds good! Do you think there is a need for keeping the command line available at all? I mean as of now we provide pretty much every feature in the GUI too and there will be no user without a desktop environment who will want to generate a Minecraft world :D

on a second thought you're right, people running this in a headless linux server might want to run the cli only

amir16yp avatar Jan 03 '25 17:01 amir16yp

The bug title should say it's a Windows bug (because other platforms don't have an equivalent of the subsystem flag and its special behavior)

The reason for the bug is that Windows doesn't try to attach/open a console with the Windows subsystem (if you use the console subsystem, then it does get attached but there might be a flash of a console window when opening the program in GUI)

Luckily some people discovered a workaround by calling AttachConsole(ATTACH_PARENT_PROCESS); before doing any console output (but that might have some issues)

TheComputerGuy96 avatar Jan 14 '25 19:01 TheComputerGuy96