英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论