sym233
November 14, 2022, 6:40am
1
compile error with following information. pulled from rescript-project-template
.compiler.log
:
#Start(228634939)
CreateProcess failed: The system cannot find the file specified.
FAILED: cannot make progress due to previous errors.
#Done(228634940)
it works after deleting chinese characters in path.
rescript version: 10.0.1
os: windows 10
zengyl
November 14, 2022, 4:21pm
2
the same goes for Windows 7
Hongbo
November 16, 2022, 2:07am
3
Do you have a small reproducible example, do you also happen to have white space in the path ?
I will have a look at it later(I am quite busy before the end of this month)
sym233
November 16, 2022, 3:23am
4
it seems space does not matter. It may be caused by non-ascii characters.
PS D:\> git clone https://github.com/rescript-lang/rescript-project-template
Cloning into 'rescript-project-template'...
remote: Enumerating objects: 141, done.
remote: Counting objects: 100% (33/33), done.
remote: Compressing objects: 100% (21/21), done.
Receiving objects: 44% (63/141)eused 14 (delta 12), pack-reused 108
Receiving objects: 100% (141/141), 22.89 KiB | 2.08 MiB/s, done.
Resolving deltas: 100% (67/67), done.
PS D:\> ren .\rescript-project-template\ "中文"
PS D:\> cd .\中文\
PS D:\中文> npm install
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
added 1 package, and audited 2 packages in 7s
found 0 vulnerabilities
PS D:\中文> npm run res:start
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
> rescript-project-template@0.0.1 res:start
> rescript build -w
>>>> Start compiling
rescript: [1/3] src/Demo.ast
FAILED: src/Demo.ast
CreateProcess failed: The system cannot find the file specified.
FAILED: cannot make progress due to previous errors.
>>>> Finish compiling(exit: 1)
终止批处理操作吗(Y/N)? y
PS D:\中文> cd ..
PS D:\> ren .\中文\ "res temp"
PS D:\> cd '.\res temp\'
PS D:\res temp> npm run res:start
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
> rescript-project-template@0.0.1 res:start
> rescript build -w
>>>> Start compiling
rescript: [3/3] src/Demo.cmj
>>>> Finish compiling 198 mseconds
终止批处理操作吗(Y/N)? y
PS D:\res temp> cd ..
PS D:\> ren "res temp" "σ"
PS D:\> cd σ
PS D:\σ> npm run res:start
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
> rescript-project-template@0.0.1 res:start
> rescript build -w
>>>> Start compiling
rescript: [1/3] src/Demo.ast
FAILED: src/Demo.ast
CreateProcess failed: The system cannot find the file specified.
FAILED: cannot make progress due to previous errors.
>>>> Finish compiling(exit: 1)