Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pchomik opened this issue May 8, 2014 · 24 comments
Closed
Assignees
Labels
Milestone

Comments

@pchomik
Copy link

pchomik commented May 8, 2014

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
Copy link
Owner

AmailP commented May 8, 2014

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?

@AmailP AmailP added the bug label May 8, 2014
@AmailP AmailP added this to the 0.9.1 milestone May 8, 2014
@AmailP AmailP self-assigned this May 8, 2014
@pchomik
Copy link
Author

pchomik commented May 9, 2014

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

@pchomik
Copy link
Author

pchomik commented May 12, 2014

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
Copy link
Owner

AmailP commented May 12, 2014

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//issues/4#issuecomment-42799919
.

@AmailP
Copy link
Owner

AmailP commented May 12, 2014

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//issues/4#issuecomment-42799919
.

@pchomik
Copy link
Author

pchomik commented May 12, 2014

Please use this example:

*** Settings ***
Library     String

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

Get line keyword is not working.

@AmailP
Copy link
Owner

AmailP commented May 12, 2014

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//issues/4#issuecomment-42801179
.

@AmailP
Copy link
Owner

AmailP commented May 12, 2014

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//issues/4#issuecomment-42801179
.

@pchomik
Copy link
Author

pchomik commented May 12, 2014

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
Copy link
Owner

AmailP commented May 12, 2014

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?

@AmailP AmailP changed the title Add auto-completion for python libraries for pycharm Add auto-completion for Robot libraries for pycharm and python plugin May 12, 2014
@AmailP AmailP modified the milestones: 0.9.1, 0.9.2 May 12, 2014
@AmailP AmailP closed this as completed May 12, 2014
@oferprat
Copy link

oferprat commented Jan 4, 2016

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
Copy link
Owner

AmailP commented Jan 4, 2016

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
#4 (comment).

@oferprat
Copy link

oferprat commented Jan 5, 2016

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
Copy link
Owner

AmailP commented Jan 5, 2016

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
#4 (comment).

@robco
Copy link

robco commented Mar 10, 2017

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
Copy link

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
Copy link

hasapian commented Mar 5, 2018

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

@Srihari88
Copy link

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
Copy link

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

@sakonachhoeurng
Copy link

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

@RajavardhaniK
Copy link

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

@rajmenonr
Copy link

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

@denizbabayaka
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests