BARON ERROR: can't open nl file

I was trying to use BARON to solve some problems.

JuMP.jl version: 0.21.5
BARON.jl version: 0.6.5

When I run my program, the following error occurs:

C:\Program Files\ampl_mswin64\baron.exe: can't open C:\Users\Lujia\AppData\Local\Temp\jl_1V2Lgu\baron_problem.bar.nl
ERROR: LoadError: failed process: Process(`'C:\Program Files\ampl_mswin64\baron.exe' 'C:\Users\Lujia\AppData\Local\Temp\jl_1V2Lgu\baron_problem.bar'`, ProcessExited(1)) [1]

It seems the baron executable cannot find a .nl file. How can I solve that issue?

I do see C:\Users\Lujia\AppData\Local\Temp\jl_1V2Lgu\baron_problem.bar exists when using debug mode.

It looks like these are different files. One ends in .nl, and the other ends in .bar.

I suggest you open an issue: https://github.com/joehuchette/BARON.jl.