Include concept.cyp in my-rules.adoc?

12 views
Skip to first unread message

Gerd Aschemann

unread,
Mar 1, 2021, 11:57:59 AM3/1/21
to jQAssistant
I would like to maintain my concepts and constraints in .cyp files besides my asciidoctor based files and include them over there, e.g.,

[[my-rules:MyRule1]]
[source,cypher,role=concept]
----
include::my-rule1.cyp[]
-----

However, this leads to an error:

[INFO] Executing group 'default'
[INFO] Applying concept 'my-rules:MyRule1' with severity: 'MINOR'.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16.945 s
[INFO] Finished at: 2021-03-01T17:46:45+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.buschmais.jqassistant:jqassistant-maven-plugin:1.10.0-SNAPSHOT:analyze (cli-default) on project jqa: Analysis failed.: Cannot execute query for rule 'Concept{id='my-rules:MyRule1, description='', ruleSource=.../jqassistant/my-rules.adoc}'. Unexpected end of input: expected whitespace, CYPHER options, EXPLAIN, PROFILE or Query (line 1, column 1 (offset: 0))
[ERROR] ""
[ERROR]  ^

Dirk Mahler

unread,
Mar 2, 2021, 7:27:34 AM3/2/21
to jqass...@googlegroups.com
Hi Gerd,

it looks like "include::my-rule1.cyp[]" had been used as a literal, so
not actually evaluated as an include. Can you raise an issue for
https://github.com/jqassistant/jqa-core-framework?

Cheers

Dirk
> --
> You received this message because you are subscribed to the Google
> Groups "jQAssistant" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jqassistant...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jqassistant/d0941cc3-6dda-470e-817d-52dd33875583n%40googlegroups.com
> [1].
>
>
> Links:
> ------
> [1]
> https://groups.google.com/d/msgid/jqassistant/d0941cc3-6dda-470e-817d-52dd33875583n%40googlegroups.com?utm_medium=email&utm_source=footer

--
Dirk Mahler
Senior Consultant IT
-----------------------------------------------------------------
BUSCHMAIS GbR
Inhaber  Torsten Busch, Frank Schwarz, Dirk Mahler, Tobias Israel
Adresse  Leipziger Straße 93, 01127 Dresden
Telefon  +49 351 320923-0
Mobil    +49 177 3137411
Fax      +49 351 320923-29
E-Mail   dirk....@buschmais.com
Internet www.buschmais.de
-----------------------------------------------------------------

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie diese E-Mail irrtümlich erhalten haben, bitten
wir Sie diese E-Mail umgehend zu löschen. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

This e-mail may contain confidential or privileged information. If you
are not the intended recipient we kindly request you to delete this
e-mail immediately. Any unauthorized copying, disclosure or distribution
of the material in this e-mail is strictly forbidden.

Gerd Aschemann

unread,
Mar 3, 2021, 2:04:29 AM3/3/21
to jQAssistant
Thanks Dirk, have raised a new issue: https://github.com/jQAssistant/jqa-core-framework/issues/55
Reply all
Reply to author
Forward
0 new messages