You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
step-2 variant-1) accept autocomplete with TAB --> ${DUMMY_VAR2} is deleted!
step-2 variant-2) accept autocomplete with ENTER --> ${DUMMY_VAR2} is garbled
scenario-2 two variables on the same line (partially matching variable name)
step-1) start editing
step-2 variant-1) accept autocomplete with TAB --> ${DUMMY_VAR2} is deleted!
step-2 variant-2) accept autocomplete with ENTER --> ${DUMMY_VAR2} is garbled
scenario-3 last variable on the line (before ``*** Keywords ***` section
step-1) start editing
step-2 variant-1) accept autocomplete with TAB --> the *** Keywords *** section & 1st KW definition is deleted!
step-2 variant-2) accept autocomplete with ENTER --> Works as expected
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)
The text was updated successfully, but these errors were encountered:
Describe the bug
Variable autocomplete deletes code when updating existing code
To Reproduce
Assume this
scenario-1 two variables on the same line
step-1) start editing
step-2 variant-1) accept autocomplete with TAB --> ${DUMMY_VAR2} is deleted!
step-2 variant-2) accept autocomplete with ENTER --> ${DUMMY_VAR2} is garbled
scenario-2 two variables on the same line (partially matching variable name)
step-1) start editing
step-2 variant-1) accept autocomplete with TAB --> ${DUMMY_VAR2} is deleted!
step-2 variant-2) accept autocomplete with ENTER --> ${DUMMY_VAR2} is garbled
scenario-3 last variable on the line (before ``*** Keywords ***` section
step-1) start editing
step-2 variant-1) accept autocomplete with TAB --> the
*** Keywords ***
section & 1st KW definition is deleted!step-2 variant-2) accept autocomplete with ENTER --> Works as expected
Expected behavior
Autocomplete does not destroy the code :-)
Versions:
The text was updated successfully, but these errors were encountered: