【问题标题】:Pycharm can't interprete behavePycharm 无法解释行为
【发布时间】:2018-08-25 21:42:36
【问题描述】:

你好,

我正在尝试从https://behave.readthedocs.io/en/latest/tutorial.html做教程

当我在 pycharm 中创建 tutorial.feature 时(通过 gherkin 文件),所有代码都带有下划线并标记为错误...

在这里你可以看到我的设置(我有 pycharm pro)并且在 BDD 中我有行为。

tutorial.feature file settings

【问题讨论】:

  • 但是,pycharm 应该将其识别为正确的吗?当您创建一个 gherking 文件时,您有一个模板,但仍带有下划线。

标签: python pycharm python-behave


【解决方案1】:

问题已解决。

我刚刚删除了 PyCharm Community + 当前 Pro 版本并安装了新的 Pro 而没有导入设置(在我从社区版本导入设置之前)。

【讨论】:

    猜你喜欢
    • 2016-06-15
    • 2020-11-04
    • 1970-01-01
    • 2016-09-06
    • 2020-07-02
    • 2021-11-08
    • 1970-01-01
    • 2013-10-03
    • 2021-12-30
    相关资源
    最近更新 更多