# The incorrect auto-editing behaviour for Wing Pro when enabing all of the options for auto-editing.

Hi,

In wingide pro, I enabled all of the options for auto-editing. But I meet the incorrect behavior given by wingide for the auto-editing, see following for detailed info:

 from aiida.orm.querybuilder import QueryBuilder
qb = QueryBuilder()
qb


When I input the qb for the second time in above snippets, the cursor will skipped to the location of the first appearance of qb. As a result, the auto-editing will edit the things there and give a error results.

How to solve this problem?

Regards

edit retag close merge delete

I don't see this problem here, but it may have to do with additional context in the file triggering a bug. Is there a file that reproduces this that you can send to support@wingware.com?

( 2020-03-26 21:43:14 -0500 )edit

Very tricky thing, this bug sometimes appear and sometimes not. So I cannot make a reproducible minimal working example for it.

And I also found that the problem will appear with the following simliar steps:

Input the following line, use the enter key for switching to newline and then input a to intrigue the completion:

   a = []
a


Then sometimes you will find the cursor skipped to the first occurrence of the instance name for doing the completion.

Regards

( 2020-03-27 18:17:49 -0500 )edit