Yuescript icon indicating copy to clipboard operation
Yuescript copied to clipboard

target not accepting paths with spaces

Open dt192 opened this issue 2 years ago • 2 comments

-t path Specify where to place compiled files

I tried single quotes, double quotes and no quotes. None resulted in the files being compiled in the right place.

Microsoft Windows [Version 10.0.19045.2965]
(c) Microsoft Corporation. All rights reserved.

D:\user\projects\lua\yue\another_project>..\yue --target=5.1 -s -t 'D:\path with spaces\Yue\' yue\

D:\user\projects\lua\yue\another_project>..\yue --target=5.1 -s -t "D:\path with spaces\Yue\" yue\
no input files

D:\user\projects\lua\yue\another_project>..\yue --target=5.1 -s -t D:\user\path with spaces\Yue\ yue\
Built yue\main.yue
Failed to read file: path
Failed to read file: with
Failed to read file: spaces\Yue\

dt192 avatar Jun 01 '23 21:06 dt192

Just did some tests, the correct command can be with double quotes.

yue --target=5.1 -s -t "D:\path with spaces\Yue" yue\

pigpigyyy avatar Jun 05 '23 02:06 pigpigyyy

OK, tested again, seems that the issue is the trailing backslash rather than the spaces.

2023-06-05_10-48

dt192 avatar Jun 05 '23 09:06 dt192