AmailP / robot-plugin

Robot Framework support plugin for IntelliJ Idea
Other
72 stars 38 forks source link

Add auto-completion for Robot libraries for pycharm and python plugin #4

Closed pchomik closed 10 years ago

pchomik commented 10 years ago

I'd be great to get the auto-completion for pycharm to see what kind of keywords are available in the test. The help message with signature and documentation will be useful as well.

AmailP commented 10 years ago

Hey, I have just released a 0.9.1 version that should enable autocompletion in PyCharm. Could you confirm that it is working for you?

pchomik commented 10 years ago

I will check new version. I'm waiting to be approved by JetBrains.

pchomik commented 10 years ago

Auto-complete is working only for Robot Framework Builtin library. I cannot get keywords from e.g. String library or user library. Please let me know if you need more information or debug the problem.

AmailP commented 10 years ago

Robot Libraries (e.g. String, Collections) should be working. Did you put the library import in the Settings section? User libraries are still not supported. Soon I will implement support for Static user libraries. Dynamic and Hybrid libraries will need more time, since they would require an effective runtime Robotframework environment.

On 12 May 2014 08:33, Pawel Chomicki notifications@github.com wrote:

Auto-complete is working only for Robot Framework Builtin library. I cannot get keywords from e.g. String library or user library. Please let me know if you need more information or debug the problem.

— Reply to this email directly or view it on GitHubhttps://github.com/AmailP/robot-plugin/issues/4#issuecomment-42799919 .

AmailP commented 10 years ago

In case Robot Libraries are still not working could you please send me a .robot example to reproduce the bug?

On 12 May 2014 08:40, Valerio amailp@gmail.com wrote:

Robot Libraries (e.g. String, Collections) should be working. Did you put the library import in the Settings section? User libraries are still not supported. Soon I will implement support for Static user libraries. Dynamic and Hybrid libraries will need more time, since they would require an effective runtime Robotframework environment.

On 12 May 2014 08:33, Pawel Chomicki notifications@github.com wrote:

Auto-complete is working only for Robot Framework Builtin library. I cannot get keywords from e.g. String library or user library. Please let me know if you need more information or debug the problem.

— Reply to this email directly or view it on GitHubhttps://github.com/AmailP/robot-plugin/issues/4#issuecomment-42799919 .

pchomik commented 10 years ago

Please use this example:

*** Settings ***
Library     String

*** Test Cases ***
Test
    Get line
    Log    Hello World    WARN

Get line keyword is not working.

AmailP commented 10 years ago

Argh... :-/ they are working only if they come from imported resources at the moment. Since that is actually enough for all my project's tests, I did not catch the bug before... I will submit a patched version probably later today or tomorrow. Thanks a lot for your feedback.

Valerio

On 12 May 2014 08:59, Pawel Chomicki notifications@github.com wrote:

Please use this example:

* Settings * Library String

* Test Cases * Test Get line Log Hello World WARN

Get line keyword is not working.

— Reply to this email directly or view it on GitHubhttps://github.com/AmailP/robot-plugin/issues/4#issuecomment-42801179 .

AmailP commented 10 years ago

New version submitted for review (0.9.2). It's fixing the issue for me.

On 12 May 2014 09:07, Valerio amailp@gmail.com wrote:

Argh... :-/ they are working only if they come from imported resources at the moment. Since that is actually enough for all my project's tests, I did not catch the bug before... I will submit a patched version probably later today or tomorrow. Thanks a lot for your feedback.

Valerio

On 12 May 2014 08:59, Pawel Chomicki notifications@github.com wrote:

Please use this example:

* Settings * Library String

* Test Cases * Test Get line Log Hello World WARN

Get line keyword is not working.

— Reply to this email directly or view it on GitHubhttps://github.com/AmailP/robot-plugin/issues/4#issuecomment-42801179 .

pchomik commented 10 years ago

For Robot Framework libraries is working. Is not working for user libraries. Is it a valid for this issue or should I report new one?

One remark regarding auto-complete pop-up window. If someone type "Get line" the prompt is "get line". After enter the line is changing to "get line" what is annoying. Is it valid case for you?

AmailP commented 10 years ago

I have created a new issue for the first point.

Regarding the second one I was thinking to implement it as a plugin configuration. It could be a checkbox named something like: "Captilalise keywords coming from python"

What do you think about it?

oferprat commented 8 years ago

Hi there! I am working with pycharm 5.0.3 and the plugin version 0.13 and do not have suggestions and auto-complete. What is the current status? Thanks!

AmailP commented 8 years ago

Hi, Thanks for the feedback.

Was the plugin working for you in previous versions of PyCharm? Can you please send me a minimal example of a PyCharm project where you expect completion?

Kind regards Valerio

On 4 January 2016 at 09:37, oferprat <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Hi there! I am working with pycharm 5.0.3 and the plugin version 0.13 and do not have suggestions and auto-complete. What is the current status? Thanks!

— Reply to this email directly or view it on GitHub https://github.com/AmailP/robot-plugin/issues/4#issuecomment-168611526.

oferprat commented 8 years ago

Hi Valerio! I downgraded pycharm to 4.5.4 today and will see how it goes. I'll let you know. BTW, to make things more complicated, I got this response from a colleague today: "I installed Pycharm 5.0.3 yesterday with intellibot and didn’t see the problem"

AmailP commented 8 years ago

Ok, let me know. Anyway Intellibot is a different plugin, pretty much unrelated to mine.

Valerio

On Tuesday, 5 January 2016, oferprat notifications@github.com wrote:

Hi Valerio! I downgraded pycharm to 4.5.4 today and will see how it goes. I'll let you know. BTW, to make things more complicated, I got this response from a colleague today: "I installed Pycharm 5.0.3 yesterday with intellibot and didn’t see the problem"

— Reply to this email directly or view it on GitHub https://github.com/AmailP/robot-plugin/issues/4#issuecomment-168923406.

robco commented 7 years ago

Hello,

Starting with the Robot Framework plugin for PyCharm, getting some difficulties for Robot libraries keywords auto-completion to work. From the above comments I got impression it should work. Any clue how to set it properly up?

My example: using Selenium2Library (http://robotframework.org/Selenium2Library/Selenium2Library.html)

"Open browser" keyword is coming from Selenium2Library, but I can't get auto-completion for it. Can't get inline hints for any of Selenium2Library keywords at all.

Please note, that Selenium2Library seems to be loaded properly to PyCharm, because I can navigate into it by the click and see its implementation.

Auto-completion for user defined keywords work just fine.

My code:

Settings Library Selenium2Library

Variables ${BROWSER}. CHROME

 Test Cases

Open google and search Launch browser with chrome opened Search for something

Keywords

Launch browser with chrome opened Open browser ${GOOGLE_URL} ${BROWSER} Maximize browser window ...

bawiecek commented 6 years ago

Hello, I have the same issue with SeleniumLibrary, as described by @robco. Is there any way to get auto-completion work for this lib?

hasapian commented 6 years ago

Hello, I have the same issue with the last 2 comments... Please, let me know if this is fixed

Srihari88 commented 5 years ago

Hello,

The issue will be fixed by installing the IntelliBot @SeleniumLibrary Patched in pycharm.

You can install it by going the -->Preferences-->Plugins-->IntelliBot @SeleniumLibrary Patched

Once installed the above plugin the issue gone away.

upendragongada commented 5 years ago

Hello...i installee intellibot@selenium librrary patched but i am getting error message, wjat is the solution?

sakonachhoeurng commented 5 years ago

I get problem the same, it does not have auto-completed. please help

RajavardhaniK commented 4 years ago

Still I got the same issue can anyone give the solution for this

rajmenonr commented 4 years ago

It works with SeleniumLibrary 3.0.0 but make sure that you should select the same version in IDE also

denizbabayaka commented 3 years ago

Hello, I have the same issue with SeleniumLibrary, as described by @robco. Is there any way to get auto-completion work for this lib?

use Selenium2Library

kilicemre commented 2 years ago

@RajavardhaniK Were you able to resolve it? Still got a problem while using Appium library.