Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule Definer: Error on new rule #142

Closed
Kingloko opened this issue May 15, 2019 · 2 comments · Fixed by #295
Closed

Rule Definer: Error on new rule #142

Kingloko opened this issue May 15, 2019 · 2 comments · Fixed by #295

Comments

@Kingloko
Copy link

Description

Adding a rule from workbase causes an error, while adding the exact same rule via the console is fine.

Environment

  1. Grakn version: Grakn Core 1.5.2
  2. OS of Grakn server: Ubuntu 16.4
  3. Workbase version: 1.2.1
  4. OS of Workbase: Ubuntu 18.04
  5. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:
It seems I cant upload screen shots, but one is available in slack.
The following is the text I supplied to the form:
name: gp_rule2
when:

(parent: $a, child: $b) isa parentOf;
(parent: $b, child: $c) isa parentOf;

then:

(gprnt: $a, gc: $c) isa grandparentOf;

Expected Output

rule added without a problem

Actual Output

no viable alternative at input '{(parent: $a, child: $b) isa parentOf;\n(parent: $b, child: $c) isa parentOf;\n}'
syntax error at line 3:
}
 ^

Additional information

I tried creating this exact same rule via the console and had no problem:

define
------

person sub entity,
    plays gc,
    plays gprnt,
    plays child,
    plays parent;

parentOf sub relation,
    relates child,
    relates parent;

grandparentOf sub relation,
    relates gprnt,
    relates gc;

gp sub rule,
when{
(parent: $a, child: $b) isa parentOf;
(parent: $b, child: $c) isa parentOf;
}, then {
(gprnt: $a, gc: $c) isa grandparentOf;
};
@Kingloko Kingloko changed the title Rule Definer: Rule Definer: Error on new rule May 15, 2019
@kasper-piskorski kasper-piskorski added this to the 1.2.2 milestone May 15, 2019
@Irtazaraza
Copy link
Contributor

Is a nodejs-client bug: refer to vaticle/typedb-driver-nodejs#42

@sorsaffari
Copy link

@Irtazaraza we need to follow up with the issue you have referred the author to.

@sorsaffari sorsaffari reopened this Aug 3, 2019
@Irtazaraza Irtazaraza modified the milestones: 1.2.2, 1.2.3 Aug 5, 2019
@Irtazaraza Irtazaraza removed their assignment Aug 8, 2019
@sorsaffari sorsaffari modified the milestones: 1.2.3, 1.2.4 Sep 13, 2019
@sorsaffari sorsaffari modified the milestones: 1.2.4, 1.2.5 Sep 25, 2019
@sorsaffari sorsaffari modified the milestones: 1.2.5, 1.2.6 Oct 11, 2019
@sorsaffari sorsaffari modified the milestones: 1.2.6, 1.2.7 Oct 29, 2019
@sorsaffari sorsaffari modified the milestones: 1.2.7, 1.2.8 Dec 12, 2019
@sorsaffari sorsaffari modified the milestones: 1.2.8, 1.2.9 May 7, 2020
@sorsaffari sorsaffari self-assigned this Jun 5, 2020
@sorsaffari sorsaffari modified the milestones: 1.2.9, 1.2.10 Jun 9, 2020
@sorsaffari sorsaffari linked a pull request Jun 12, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants