【问题标题】:Using experimental feature 'transaction'. use '--experimental' flag to enable the experimental features使用实验功能“交易”。使用“--experimental”标志启用实验功能
【发布时间】:2019-08-06 09:34:59
【问题描述】:

https://ballerina.io/learn/by-guide/managing-database-transactions/ 中所述,我在我的项目中使用了数据库事务。我的代码正在运行,但它显示错误 using experimental feature 'transaction'. use '--experimental' flag to enable the experimental features

transaction with retries = 0{
}committed{
}aborted{
}

块在 VS 代码编辑器中带有红色下划线。

如何修复错误还是 VS Code 插件中的问题?

【问题讨论】:

    标签: ballerina


    【解决方案1】:

    默认情况下禁用 VSCode 插件中对实验性功能的支持,这就是您看到这些红色波浪线的原因。您可以通过转到 VSCode 设置来启用实验性功能,在 [ballerina] 下,应该有一个复选框说“允许实验性”选中它,你应该很高兴。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-06
      • 2016-09-30
      • 2020-05-27
      • 1970-01-01
      相关资源
      最近更新 更多