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

Different results when code is ran directly vs ran as a task #25620

Open
littletof opened this issue Sep 13, 2024 · 2 comments
Open

Different results when code is ran directly vs ran as a task #25620

littletof opened this issue Sep 13, 2024 · 2 comments
Labels
needs investigation requires further investigation before determining if it is an issue or not windows Related to Windows platform

Comments

@littletof
Copy link
Contributor

littletof commented Sep 13, 2024

Version: Deno 1.46.3

When I run a command as a task, it completes without an issue, but when I run it directly, the same code gives me an access denied error:

deno run x vs deno run -RW=./things example.ts

The issue is the same when I ran it with deno run --prompt -RW=./things example.ts.

⚠️ But also, if I flip the order to deno run -RW=./things --prompt example.ts I get another type of error, it not recognising --prompt. Current docs mention the existence of this flag.

image

@bartlomieju bartlomieju added windows Related to Windows platform needs investigation requires further investigation before determining if it is an issue or not labels Sep 13, 2024
@littletof
Copy link
Contributor Author

Seems like I do not get the Access denied error when running it with CMD.

Also I think --prompt flag does not exist in 1.46.3, so either it will be in 2.0 and the docs are ahead, or its a removed flag and the docs are behind 🙂

@yazan-abdalrahman
Copy link
Contributor

@bartlomieju
What is the proper way to handle this -WR=./things? It can be expressed as -W -R=./things or -W=./things -R=./things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation requires further investigation before determining if it is an issue or not windows Related to Windows platform
Projects
None yet
Development

No branches or pull requests

3 participants