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

PyCharm: Variable autocomplete deletes code #484

Closed
yahman72 opened this issue Oct 27, 2021 · 0 comments
Closed

PyCharm: Variable autocomplete deletes code #484

yahman72 opened this issue Oct 27, 2021 · 0 comments
Labels
bug Something isn't working intellij

Comments

@yahman72
Copy link

Describe the bug
Variable autocomplete deletes code when updating existing code

To Reproduce
Assume this

dummy test case
    ${DUMMY_VAR1}       Set Variable        dummy
    ${DUMMY_VAR2}       Set Variable        dummy
    ${DUMMY_VAR3}       Set Variable        dummy
    ${FOOBAR}           Set Variable        dummy
    Should Be Equal     ${DUMMY_VAR1}   ${DUMMY_VAR2}

*** Keywords ***
Dummy Keyword
    [Arguments]     ${foo}  ${bar}
    No Operation

scenario-1 two variables on the same line

step-1) start editing
image

step-2 variant-1) accept autocomplete with TAB --> ${DUMMY_VAR2} is deleted!
image

step-2 variant-2) accept autocomplete with ENTER --> ${DUMMY_VAR2} is garbled
image

scenario-2 two variables on the same line (partially matching variable name)

step-1) start editing
image

step-2 variant-1) accept autocomplete with TAB --> ${DUMMY_VAR2} is deleted!
image

step-2 variant-2) accept autocomplete with ENTER --> ${DUMMY_VAR2} is garbled
image

scenario-3 last variable on the line (before ``*** Keywords ***` section

step-1) start editing
image

step-2 variant-1) accept autocomplete with TAB --> the *** Keywords *** section & 1st KW definition is deleted!
image

step-2 variant-2) accept autocomplete with ENTER --> Works as expected
image

Expected behavior
Autocomplete does not destroy the code :-)

Versions:

  • OS: Windows 10
  • Robot Framework Version 3.2.1
  • Robot Framework Language Server Version 0.25
  • Client Version PyCharm 2021.2 (Community Edition)
@yahman72 yahman72 added bug Something isn't working robocorp-code labels Oct 27, 2021
@fabioz fabioz closed this as completed in 6e99545 Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working intellij
Projects
None yet
Development

No branches or pull requests

2 participants