dwm icon indicating copy to clipboard operation
dwm copied to clipboard

Program doesn't run when compiled with `--no-terminal` on Windows

Open steveRoll-git opened this issue 10 months ago • 5 comments

I was bothered by the fact that when you compile a program with deno compile on Windows, the resulting executable opens with a cmd window behind dwm's window. After some searching, I found that a flag was added to compile the executable with the "GUI" subsystem that should prevent a cmd window from showing.

However, when running an executable compiled with this option, the program doesn't seem to run at all and exits with code 0.

steveRoll-git avatar Apr 23 '24 20:04 steveRoll-git

@steveRoll-git have you heard any answers for this?

I'm new to Deno and this is happening to me, too.

sensiblearts avatar Jun 11 '24 17:06 sensiblearts

Seems to be an issue on Deno's end

load1n9 avatar Jun 15 '24 20:06 load1n9

It's very strange, because ... the program starts (as checked by SysInternals ProcessMonitor) ... and exits with status 101.

This is on Deno 1.45.2.

But not even the first line of the program seems to execute. (Not even a Deno.exit(2) works.)

image

PAStheLoD avatar Jul 15 '24 03:07 PAStheLoD

with plain deno projects right?

load1n9 avatar Aug 04 '24 02:08 load1n9

Sorry, what does plain deno project mean?

PAStheLoD avatar Aug 04 '24 19:08 PAStheLoD

This is a deno issue, not dwm. You can prove this for yourself with these reproduction steps.

https://github.com/denoland/deno/issues/21091#issuecomment-2401082661

cspotcode avatar Oct 09 '24 01:10 cspotcode

i have the same issue. Tested with an application that uses WebUI and one that uses Webview

Application exits immediately when compiled with --no-terminal deno 2.0.2

svefro avatar Nov 06 '24 08:11 svefro