Running build.bat with DoRun=1 without configuring the emulator path in default_config.cmd results in an obscure error message ( was unexpected at this time for newcommers.
This happens because setup_emulator.cmd checks if /I %EmulatorName%==openmsx, but when EmulatorName is empty it is replaced with if /I ==openmsx, hence the ( was unexpected at this time error message.
The script should check if EmulatorName is set beforehand and display a clear error message to the user.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Change DoRun=1 in projects/samples/build.bat
Make sure to have the default set Emulator= configuration in default_config.cmd
Open a command in projects/samples
Run build.bat s_game
The sample does not run and the script leaves you with ( was unexpected at this time
What is the expected behavior?
The script displays a clear error message of what happened.
Please tell us about your environment:
Version: 16d84fc3d55b0b4d4dd8f07ca00fedf0b12a6210
OS: Windows
I'm submitting a ...
What is the current behavior?
Running
build.bat
withDoRun=1
without configuring the emulator path indefault_config.cmd
results in an obscure error message( was unexpected at this time
for newcommers.This happens because
setup_emulator.cmd
checksif /I %EmulatorName%==openmsx
, but whenEmulatorName
is empty it is replaced withif /I ==openmsx
, hence the( was unexpected at this time
error message.The script should check if
EmulatorName
is set beforehand and display a clear error message to the user.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
DoRun=1
inprojects/samples/build.bat
set Emulator=
configuration indefault_config.cmd
projects/samples
build.bat s_game
( was unexpected at this time
What is the expected behavior?
The script displays a clear error message of what happened.
Please tell us about your environment:
Version: 16d84fc3d55b0b4d4dd8f07ca00fedf0b12a6210 OS: Windows