--
You received this message because you are subscribed to the Google Groups "SWI-Prolog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swi-prolog+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/swi-prolog.
For more options, visit https://groups.google.com/d/optout.
<input type="text" id="query" value="mytest:module4(10,20,[test],A,B,C,D)"> <button onclick="query()">Ask</button>
<script type="text/javascript">
var pengine;
function query() {
pengine = new Pengine({
application: 'mytest',
ask: $("#query").val(),
onsuccess: handleSuccess,
onfailure: handleFailure,
onerror: handleError
});
}At the very least, the form of the query and options you are passing to pengine:ask would be useful.Eyal
On Thu, Sep 29, 2016 at 12:39 AM, dagobi <zack...@gmail.com> wrote:
We have a (predicate) query that runs fine and returns correct results when it's run with swipl (command line). However the same query gives the following error when it's run with pengine.ask(query,opts) from a web page. What could be the problem or where should we look into?I know it would be better if I could provide an example but it's really hard to write a test program with the same issue without knowing why we had the issue with the Pengines JavaScript API. Any advices would be greatly appreciated. In the meantime I will try to come up with an example.Output
Error: Arguments are not sufficiently instantiated Reachable from: mytest:module1(20,A,B,C) mytest:module2(20,A,B,C,D) mytest:module3(20,[test],A,B,C) mytest:module4(10,20,[test],A,B,C,D)
--
You received this message because you are subscribed to the Google Groups "SWI-Prolog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swi-prolog+...@googlegroups.com.
SWISH cannot provide unrestricted access to Prolog because Prolog gives unrestricted access to the operating system. Therefore, SWISH examines each goal on safety before execution. This process unfolds the call-tree and verifies all called predicates against a whitelist. It fails on three occasions:
?- read(X), call(X).
Such errors are raised as instantiation errors.
If any of the above happens, the error is printed, along with a chain of intermediate goals that should help finding the culprit. Note that the whitelist is incomplete, i.e., there are many predicates that can be considered safe that are not on the list. Please report such omissions as bugs.
Cheers,
Torbjörn
To unsubscribe from this group and stop receiving emails from it, send an email to swi-prolog+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/swi-prolog.
For more options, visit https://groups.google.com/d/optout.