The editor's autocomplete has inconsistencies for new languages based on the LSP protocol
Problem Description
The first letter of the word 'partial' is concatenated with the keyword suggested by the autocomplete.
For example, if I'm typing imp for import, when I ask to autocomplete, the keyword becomes iimport.
I noticed that adding or removing the +1 in the function below is related to the problem ((Lib\site-packages\spyder\widgets\mixins.py):
What steps reproduce the problem?
This happens when I use the editor's autocomplete.
## Versions
* Spyder version: 5.5.5
* Python version: 3.11.9
* Qt version:
* PyQt version: 5.15.10
* Operating System name/version: Windows 10
Hi @dan123456-eng thank you for the feedback! Are you using a custom language server or do you have any specific configuration related with the LSP over your setup? What language are you trying to use inside Spyder? I think I have experienced some similar completion issues with custom language servers/external completions plugins depending on the EOL chracter selected. Sometimes changing the default selection to always use LF helps. For that you can go to Source > Convert end-of-line characters and select from that menu the LF (Unix)
Any other info that you could provide us in order to better understand the issue you are experiencing is greatly appreciated. Also, let us know if the info above helps!
Hello! I appreciate your response. I'm using a custom language server for the F language, which we use in our software lab. Additionally, we have an external plug-in that implements these functionalities. The entire structure is built around the LSP. I'll gather more information to share here.