You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nlpcraft.apache.org by "Sergey Kamov (Jira)" <ji...@apache.org> on 2021/02/18 11:29:00 UTC

[jira] [Commented] (NLPCRAFT-230) Kotlin example failure.

    [ https://issues.apache.org/jira/browse/NLPCRAFT-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286420#comment-17286420 ] 

Sergey Kamov commented on NLPCRAFT-230:
---------------------------------------

Ready for review in NLPCRAFT-230

Look at the diff, Kotlin annotation processing requires an additional branch for some reasons.

> Kotlin example failure.
> -----------------------
>
>                 Key: NLPCRAFT-230
>                 URL: https://issues.apache.org/jira/browse/NLPCRAFT-230
>             Project: NLPCraft
>          Issue Type: Bug
>          Components: examples
>            Reporter: Aaron Radzinski
>            Assignee: Sergey Kamov
>            Priority: Major
>             Fix For: 0.7.5
>
>
> I also ran my groovy-data-science example which interacts with the light
> switch example model.
> After blowing away my ".nlpcraft" folder, it ran fine against the Java,
> Scala and Groovy example models.
> Against the Kotlin model it error with:
>      [java] Jan-28|15:11:33|ERR| Failed to start probe:
>      [java] Jan-28|15:11:33|ERR|   +-+ Failed to instantiate model:
> org.apache.nlpcraft.examples.lightswitch.LightSwitchKotlinModel ->
> (NCDeployManager.scala:522)
>      [java] Jan-28|15:11:33|ERR|     |
> o.a.n.probe.mgrs.deploy.NCDeployManager$.makeModelWrapper ->
> (NCDeployManager.scala:522)
>      [java] Jan-28|15:11:33|ERR|     |
> o.a.n.probe.mgrs.deploy.NCDeployManager$.start ->
> (NCDeployManager.scala:618)
>      [java] Jan-28|15:11:33|ERR|     |
> o.a.n.probe.NCProbeBoot$.startManagers -> (NCProbeBoot.scala:479)
>      [java] Jan-28|15:11:33|ERR|     | o.a.n.probe.NCProbeBoot$$anon$4.run
> -> (NCProbeBoot.scala:357)
>      [java] Jan-28|15:11:33|ERR|     +-+ Unexpected generic type for
> @NCIntentTerm annotated argument [mdlId=nlpcraft.lightswitch.ex, type=?
> extends org.apache.nlpcraft.model.NCToken, arg=#1 of
> LightSwitchKotlinModel#onMatch(NCToken, List)] ->
> (NCDeployManager.scala:1327)
>      [java] Jan-28|15:11:33|ERR|       |
> o.a.n.probe.mgrs.deploy.NCDeployManager$.checkTypes ->
> (NCDeployManager.scala:1278)
> Not sure if this is related to calling from Groovy into that model?
> Cheers, Paul.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)