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

NL_ARGS cannot handle spaces when using neu run #279

Open
DizzyHSlightlyVoided opened this issue Sep 3, 2024 · 1 comment
Open

NL_ARGS cannot handle spaces when using neu run #279

DizzyHSlightlyVoided opened this issue Sep 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@DizzyHSlightlyVoided
Copy link

Describe the bug
When using neu run, NL_ARGS does not appear to be able to handle parameters with spaces properly.

To Reproduce
Steps to reproduce the behavior:

Let's say I have a command-line parameter in the form of neu run -- --file="..\my folder\path with spaces.txt".

The outcome, in this case, is four parameters:

[
    /* Other Neutralino parameters */
    "--file=..\my",
    "folder\path",
    "with",
    "spaces.txt"
]

Expected behavior

[
    /* Other Neutralino parameters */
    "--file=..\my folder\path with spaces.txt"
]

It does work properly when directly calling neutralino-win_x64.exe (or the exe produced by neu build).

Specifications

  • OS: Windows 11 x64
  • Neutralinojs version: v5.3.0
  • Neutralinojs client library version: v5.3.0
  • Neutralinojs CLI version: v11.2.2
@DizzyHSlightlyVoided DizzyHSlightlyVoided added the bug Something isn't working label Sep 3, 2024
@DizzyHSlightlyVoided
Copy link
Author

(For the record, I was able to solve this at my own end by changing argsOpt in src/commands/run.js's register() and src/modules/runner.js's runApp() into an array.)

@shalithasuranga shalithasuranga transferred this issue from neutralinojs/neutralinojs Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant