There is no other part of the log from the screenshot, below the make:
message the output ends. I based the initial version on the output of the scenario tests, maybe the correct dialogue state would be the closest command that’s after/before $yes
/ $No
.
Edit:
After trying the changes, I think the problem is somehow the first context part, not the user target after that. For some reason it doesn’t want to accept C: $dialogue @org.thingpedia.dialogue.transaction.execute;
and will mark the ;
as an error. We tried removing that one but it then raises an error because the next line C: @org.itspersonal.newsfilter.training_news_article(topic=enum sports)
, is also a command. We then tried removing the $dialogue
command entirely, but it then searches for a ;
and wouldn’t let the training_news_article
command not have it. So the problem seems to not be something specific about our device but rather an error in reading the $dialogue
command which should be the same for all devices.
We fixed the dialogue entry as follows (added ;
where needed and fixed the $yes
and $no
part):
====
# online/9
U: I want to start training for sports topic
UT: $dialogue @org.thingpedia.dialogue.transaction.execute;
UT: @org.itspersonal.newsfilter.training_news_article(topic=enum sports);
C: $dialogue @org.thingpedia.dialogue.transaction.execute;
C: @org.itspersonal.newsfilter.training_news_article(topic=enum sports)
C: #[results=[
C: { id="Australia is shaping up to be the villain of COP26 climate talks\\sports"^^org.itspersonal.newsfilter:training_news_article, title="Australia is shaping up to be the villain of COP26 climate talks", description="If Australia's allies were worried that the country might cause them problems at upcoming climate talks in Glasgow, the events of the past week should leave little doubt in their minds. It will.", link="https://www.cnn.com/2021/09/12/australia/australia-climate-cop26-cmd-intl/index.html"^^tt:url, topic=enum sports }
C: ]];
A: Here is a random article. Would you like to label it?
AT: @org.thingpedia.dialogue.transaction.sys_recommend_one;
AT: @org.itspersonal.newsfilter.mark_training_news_article(id="Australia is shaping up to be the villain of COP26 climate talks\\sports"^^org.itspersonal.newsfilter:training_news_article)
AT: #[confirm=enum proposed];
U: Yes
UT: $dialogue @org.thingpedia.dialogue.transaction.execute;
UT: @org.itspersonal.newsfilter.mark_training_news_article(id="Australia is shaping up to be the villain of COP26 climate talks\\sports"^^org.itspersonal.newsfilter:training_news_article);
C: $dialogue @org.thingpedia.dialogue.transaction.execute;
C: @org.itspersonal.newsfilter.training_news_article(topic=enum sports)
C: #[results=[
C: { id="Australia is shaping up to be the villain of COP26 climate talks\\sports"^^org.itspersonal.newsfilter:training_news_article, title="Australia is shaping up to be the villain of COP26 climate talks", description="If Australia's allies were worried that the country might cause them problems at upcoming climate talks in Glasgow, the events of the past week should leave little doubt in their minds. It will.", link="https://www.cnn.com/2021/09/12/australia/australia-climate-cop26-cmd-intl/index.html"^^tt:url, topic=enum sports }
C: ]];
C: @org.itspersonal.newsfilter.mark_training_news_article(id="Australia is shaping up to be the villain of COP26 climate talks\\sports"^^org.itspersonal.newsfilter:training_news_article);
A: Is this article relevant to the topic?
AT: $dialogue @org.thingpedia.dialogue.transaction.execute;
AT: @org.itspersonal.newsfilter.mark_training_news_article(id="Australia is shaping up to be the villain of COP26 climate talks\\sports"^^org.itspersonal.newsfilter:training_news_article);
U: No
UT: $dialogue @org.thingpedia.dialogue.transaction.execute;
UT: @org.itspersonal.newsfilter.mark_training_news_article(id="Australia is shaping up to be the villain of COP26 climate talks\\sports"^^org.itspersonal.newsfilter:training_news_article, relevant=false);
Here is the complete terminal output that shows there is no log after make:
error:
From the location with the start and end points, it seems to refer to the first line which is the
C: $dialogue
command and the column/offset refers to the
;
at that command. We checked using the changes we mentioned to see if it correctly refers to the commands we mentioned and it does change the line/column/offset as we expected.