Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
steveRoll-git opened this issue Apr 23, 2024 · 7 comments
Open

Comments

@steveRoll-git
Copy link

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 steveRoll-git changed the title Program doesn't run when compiled with --no-terminal Program doesn't run when compiled with --no-terminal on Windows Apr 23, 2024
@sensiblearts
Copy link

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

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

@load1n9
Copy link
Member

load1n9 commented Jun 15, 2024

Seems to be an issue on Deno's end

@PAStheLoD
Copy link

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 added a commit to PAStheLoD/crowdsec-let-meme-in that referenced this issue Jul 15, 2024
@load1n9
Copy link
Member

load1n9 commented Aug 4, 2024

with plain deno projects right?

@PAStheLoD
Copy link

Sorry, what does plain deno project mean?

@cspotcode
Copy link

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

denoland/deno#21091 (comment)

@svefro
Copy link

svefro commented Nov 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants