Author |
Topic |
|
samaursa
Senior Member
Canada
47 Posts |
Posted - Oct 27 2014 : 11:04:39 AM
|
One of the reasons I like VA is its aggressive auto-complete. But sometimes the autocomplete shows up without any reason. This one is difficult to reproduce for some reason although it happens all the time (which is why I took a gif movie of it).
In the attached gif, you can see that VA list pops up quite a bit. Now most of the time that is expected and helps me write code faster. Towards the very end end, you can see me putting a bunch of tabs and then a backspace to align the core_cs namespace. The VA list here is unexpected. Why does the VA listbox show up when I didn't type anything other than a backspace?
During my normal workflow, I usually press Enter for one reason or another and VA either replaces the symbol on my cursor with whatever got selected in the list box, or it simply adds it. I then have to think about what happened, back out (undo) and then start again.
I like the selection with Enter key. The problem is the aggressive list behavior when I am not typing anything, just navigating through the words/lines.
My guess is that it has something to do with VSVim. I will try to confirm this if I can. |
Edited by - samaursa on Oct 27 2014 11:06:27 AM |
|
feline
Whole Tomato Software
United Kingdom
19004 Posts |
Posted - Oct 27 2014 : 5:08:13 PM
|
I would not expect a listbox to appear when you press backspace like this. If this remains a location where you can reproduce this on demand, please do try disabling VSVim and see if this makes a difference. Simply disabling VSVim in the IDE Extensions and Updates or Extension Manager dialog, depending on your IDE, followed by an IDE restart should tell you.
Are you in editing mode the entire time, or are you changing Vim modes?
You are seeing listboxes when simply *moving* through files? Not actually editing at all? Is the file marked with a *, to indicate that it has been modified? You should not see listboxes when moving through a file unless you specifically trigger one with CTRL-SPACE. What keys are you using to navigate through the file? Cursor and page up / page down, or Vim movement keys? |
zen is the art of being at one with the two'ness |
|
|
samaursa
Senior Member
Canada
47 Posts |
Posted - Nov 05 2014 : 09:30:47 AM
|
I will try it with VSVim disabled. It may take me some time as my normal workflow is slowed down considerably without VSVim, thus I will try this in my spare time.
quote: you are seeing listboxes when simply *moving* through files? Not actually editing at all?
I haven't noticed it when moving through files but I have definitely noticed that it happens pretty often when I press the W, E, 0 etc. keys in edit mode. Most of the time, quickness of the key presses causes VisualAssist to replace a symbol I didn't want replaced or insert something I didn't want to insert.
|
Edited by - samaursa on Nov 05 2014 09:31:15 AM |
|
|
feline
Whole Tomato Software
United Kingdom
19004 Posts |
Posted - Nov 05 2014 : 2:48:21 PM
|
Listboxes when editing is expected behaviour, at least some of the time. Interestingly though, from memory, W, E and 0 all map to movement when not in edit mode, if I remember correctly. I have not spent serious time in Vim for a few years now though.
As an alternative test, does turning Off:
VA Options -> Suggestions -> Include suggestions in listboxes
make much difference? Turning off suggestions may well slow you down, since a lot of our users find suggestions very helpful, but it would be interesting, maybe even useful, to know if turning them off makes any difference here. |
zen is the art of being at one with the two'ness |
|
|
samaursa
Senior Member
Canada
47 Posts |
Posted - Nov 23 2014 : 11:38:31 AM
|
Okay, I have been at it for a while and it seems like it only happens with VSVIM in command mode. Not sure if people with ViEmu also have the same issues in command mode? I used to have ViEmu until VS 2010 and I never encountered such issues.
Turning off Include suggestions in listboxes does seem to help but that is one of main reasons I like VA. When in edit mode, I would like the listbox to appear when I start typing to predict what I am going to be typing. I say seem to help because it still popped up a few times in command mode. |
|
|
feline
Whole Tomato Software
United Kingdom
19004 Posts |
Posted - Nov 24 2014 : 2:46:22 PM
|
Do you have any other extensions or addin's installed? We have several users who work with ViEmu, it comes up fairly often, and I don't recall anyone else reporting anything like this, at least not recently.
If command mode was prompting listboxes for most people we should be hearing about it, since if you are not using command mode as well as edit mode then why install ViEmu? So I am wondering if there is another factor at work here, something that is encouraging this to happen.
When you have Include suggestions in listboxes turned on, how often do you get this problem? Every few seconds? Every couple of hours? Every few days? I am wondering how easy this would be to reproduce here, assuming I can reproduce it at all. |
zen is the art of being at one with the two'ness |
|
|
samaursa
Senior Member
Canada
47 Posts |
Posted - Nov 24 2014 : 7:25:56 PM
|
I am definitely using <b>command mode</b> a lot. I am used to VIM which is why I used ViEmu. My license for it did not cover VS2012/VS2013 and thus I use VSVIM. Perhaps it is an issue people are ignoring and simply working around?
The 'gif' that I attached in the post is what happens when I start typing. So, I would say in a span of 2 minutes of continuous typing this would happen perhaps 10 times. I am quite used to it now - muscle memory developing to the point where I automatically press U in command mode, D$ or DW and then I for insert. |
|
|
feline
Whole Tomato Software
United Kingdom
19004 Posts |
Posted - Nov 26 2014 : 11:48:24 PM
|
Which IDE and version of VA are you using here?
Using VS2012 and VA 2052 with C++ code, I have just spent around 30 minutes bouncing around several different files, mostly in command mode, with some editing, triggering insert via o, s and i and no sign of any problems here. No stray listboxes in command mode.
So what ever is going on here, it's not that easy to trigger in general. |
zen is the art of being at one with the two'ness |
|
|
samaursa
Senior Member
Canada
47 Posts |
Posted - Dec 02 2014 : 12:36:12 PM
|
VA Details: VA_X.dll file version 10.8.2043.0 built 2014.07.10 Visual Studio 2013
I'll make another gif of a longer session. That may give you a better idea of when and how frequently it happens. |
|
|
feline
Whole Tomato Software
United Kingdom
19004 Posts |
Posted - Dec 03 2014 : 01:07:39 AM
|
Can you please export your VA and IDE settings and send them to me:
VA Options -> Performance -> Export Settings IDE tools menu -> Import and Export Settings -> Export selected environment settings
I can then import them here and see if I can reproduce the problem.
Please submit the files via the form:
http://www.wholetomato.com/support/contact.asp
including this thread ID or URL in the description, so we can match it up.
Since VsVim adds a node to the IDE options dialog in VS2013 I am hoping that a full export of the IDE settings will include all of the VsVim settings, so that I can try and test the same settings that you are using. |
zen is the art of being at one with the two'ness |
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Jan 02 2015 : 2:40:19 PM
|
Thank you for sending in the files.
I was able to reproduce a problem that might be connected with yours, since it involves an unexpected listbox:
case=87163
Sometimes when I move the caret after the last character of a function's parameter and enter to insert mode via pressing i, deleting the last two character so the listbox appears, pressing ESC so the listbox disappears and finally move the caret via w, the listbox appears in command mode... |
|
|
samaursa
Senior Member
Canada
47 Posts |
Posted - Jan 04 2015 : 5:33:59 PM
|
I am glad that you were able to reproduce it. While coding I kept an eye out for an easily reproduceable example which I have attached below:
Note that in this case I have VA option "Selections committed with tab" checked. Unchecking that solves the issue of the listbox suggestion being selected when aligning the lines in the code. Although the issue of listboxes appearing without typing anything still remains (and is problematic when the enter key is used).
Hopefully this helps you some more when solving this particular issue.
|
Edited by - samaursa on Jan 04 2015 5:37:27 PM |
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Jan 07 2015 : 11:22:15 AM
|
I wasn't able to reproduce this particular issue. It seems you're doing something like this when the problem happens: 1. insert tabs 2. enter command mode 3. move up by one (up arrow?) 4. pressing b to go to the beginning of the word "return". 5. entering insert mode (i or insert?)
The problem seems to be happening after step 4 (but not for me). The same with the first gif anim: the listbox appears in command mode there as well.
Despite I have used a different pattern to reproduce (case=87163), I hope that fixing that problem will take care of your variants as well, since my steps are similar and the problem happens in command mode for me as well.
One thing we can do is to wait for the fix and then try to reproduce the problem, again. |
|
|
samaursa
Senior Member
Canada
47 Posts |
Posted - Jan 07 2015 : 11:57:54 AM
|
I am not pressing the up arrow. Instead, I use 'j/k' keys to move up and down in command mode.
The problem occurs in command mode when I press the 'k' key to move up. The listbox popups immediately after. These are the steps:
- 'b' or 'w' (to go back or forward one word in command mode) - 'i' (insert mode) - insert tab(s) => if a listbox has popped up, tab selects the first suggestion - escape (command mode) - 'k' (to go up one line) => listbox popsup here - repeat |
Edited by - samaursa on Jan 07 2015 11:59:09 AM |
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Jan 12 2015 : 5:15:26 PM
|
I wasn't able to reproduce the problem using your steps, your settings and a similar sample code.
Are you able to reproduce the problem if you disable Visual Assist temporarily?
VASSISTX -> Enable/Disable Visual Assist |
|
|
samaursa
Senior Member
Canada
47 Posts |
Posted - Jan 25 2015 : 4:55:43 PM
|
I am unable to reproduce the problem with VA disabled. I am quite perplexed as to how this is not being reproduced as I am constantly correcting mistakes with accidental autocomplete selections. I'll give it one last shot with a toy project and see if I can replicate the behavior there. If yes, I'll post a copy of that project and hopefully you will be able to reproduce it then. |
|
|
feline
Whole Tomato Software
United Kingdom
19004 Posts |
Posted - Jan 27 2015 : 1:18:37 PM
|
Thank you for trying this. I realise this is very unhelpful, but accord and I have both tried, and failed, to reproduce this problem. This suggests it is either solution specific, or there is some other factor we have not yet discovered that helps to trigger the problems. Hopefully your testing will produce some clues. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|