自动完成功能在 Pycharm for Robot Framework 中不起作用 [英] Autocomplete not working in Pycharm for Robot Framework

查看:89
本文介绍了自动完成功能在 Pycharm for Robot Framework 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了带有机器人框架支持插件的 PyCharm..robot 文件被成功识别,我能够创建一个简单的脚本并在 pyCharm 中运行它.

I've installed PyCharm with the robotframework support plugin. The .robot files are identified successfully and I was able to create a simple script and run it in pyCharm.

但是,我的问题是 pycharm 没有识别关键字甚至机器人框架库 (SeleniumLibrary) 以便在键入它们时自动完成.

However, my problem is that no keywords nor even the robotframework libraries (SeleniumLibrary) are recognized by pycharm in order to be autocompleted when typing them.

我还安装了 intellibot@seleniumlibrary 补丁插件.

I also have the intellibot@seleniumlibrary patched plugin installed.

有什么我遗漏的吗?是否有其他配置文件?在此处输入图片描述

Is there something that I'm missing? Is there another configuration file somewhere?enter image description here

推荐答案

问题在于插件本身.TLDR 最后是 2021 年中期的状态.

The issue is with the plugins itself. TLDR at the end, what follows is the state as of mid 2021.

Intellibot 是一个可靠的插件,但在 2016 年放弃了;框架继续发展&变化,最显着的是 SeleniumLibrary 从旧的 Selenium2Library 转换而来.然后intellibot@seleniumlibrary patched"出现了,它确实适用于那个版本(大约在 2017 年左右,如果我没记错的话).然而框架仍在不断变化——我的意思是库插入的方式,这是RobotFramework 支持"的主要问题.和其他一些插件.
但 PyCharm 也在不断发展,最终使 Intellibot &衍生工具不起作用,但对于最简单的库(并以稳定的速度抛出 Java 异常).并且插件继续被废弃,没有开发;导致 PyCharm 中的案例开发是一个混合包(挫折).

Intellibot was a solid plugin, but abandoned 2016; the framework continued to develop & change, most notably with the SeleniumLibrary transforming from the old Selenium2Library. Then the "intellibot@seleniumlibrary patched" appeared, and it did work for that version (somewhere around 2017, if I recall correctly). Yet the framework continued to change - what I mean by that is the way a library plugs in, which is the main trouble for "RobotFramework support" and a few other plugins.
But also PyCharm evolved, eventually making the Intellibot & derivatives not working but for the simplest libraries (and throwing Java exceptions at a steady rate). And the plugins continue to be abandoned,with no development; leading to a state where cases development in PyCharm is a mixed bag (of frustration).

github用户lte2000有一个正在积极开发的fork:

There is a fork by the github user lte2000 that is actively developed:

https://github.com/lte2000/intellibot

那个人已经设法解决了原始图书馆的大部分烦恼;对 SeleniumLibrary (恕我直言是最复杂的其中之一)的覆盖固体支持;并添加了新功能 - 支持新的 IF...ELSE 语法、FOR 循环等.

That person has managed to fix most of the annoyances of the original library; covered solid support for the SeleniumLibrary (which IMHO is one of the most complex out there); and added new features - support for the new IF...ELSE syntax, FOR loops, etc.

截至今天,它不在 JetBrains 市场中 - 例如没有通过在首选项中搜索它来安装,但说明很清楚&该存储库的中心.

As of today it's not in the JetBrains marketplace - e.g. not installed by searching for it in Preferences, but the instructions are clear & central in that repo.

这篇关于自动完成功能在 Pycharm for Robot Framework 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆