Check that you can reliably format the line with the prologue of the base model (without modules). I have the following code that I thought would work, but not work:
hello(_) :-
write('\nEnter Name: '),
read(Name),
format('\nThe name you entered is: ~s', [Name]).
This throws an error if the user entered Bob., but works if the user entered "Bob".or'Bob'.
ERROR: format/2: Illegal argument to format sequence ~s: _G7118
I also tried replacing the format writeqas follows:
hello(_) :-
write('\nEnter Name: '),
read(Name),
writeq(Name).
Which does not produce an error, but simply finishes printing _L143insteadBob
user4332327
source
share