编译器扩展程序在包 ‘ballerina:graphql:1.8.0’ 中未能完成。null

huangapple go评论62阅读模式
英文:

The compiler extension in package 'ballerina:graphql:1.8.0' failed to complete. null

问题

我在版本2201.5.0中编译我的Ballerina代码时遇到了错误。有任何想法发生了什么?

错误:
“错误:编译失败:包中的编译器扩展'ballerina:graphql:1.8.0'未能完成。null”

英文:

I am getting an error when compiling my Ballerina code in version 2201.5.0. Any idea what is happening?

Error:
error: compilation failed: The compiler extension in package 'ballerina:graphql:1.8.0' failed to complete. null

答案1

得分: 2

Ballerina GraphQL 服务不允许返回 Ballerina 元组类型。然而,在发生上述错误的代码中,使用了 Ballerina Time 模块中的 time:Utc 类型作为返回类型,这是一个元组。因此,它应该返回一个编译错误。由于 GraphQL 编译器插件中存在的问题,导致无法返回此错误。该问题将在 GraphQL 的下一个补丁版本中修复。

英文:

Ballerina GraphQL services do not allow the return of Ballerina tuple types. However, in the code where the mentioned error occurred, a time:Utc type from the Ballerina Time module was used as a return type, which is a tuple. Therefore it should return a compilation error. Due to an existing issue with the GraphQL compiler plugin that prevents returning this error. The issue will be fixed with the GraphQL next patch version.

huangapple
  • 本文由 发表于 2023年6月13日 16:47:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/76463172.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定