vscode-MongoSnippets-NodeJS icon indicating copy to clipboard operation
vscode-MongoSnippets-NodeJS copied to clipboard

Suggestions list cursor jumping to top of the list

Open Ram-vo opened this issue 3 years ago • 8 comments

Issue Type: Bug

Start typing until the suggestion list appears. Then try to navigate with the list with the arrow key down, after a few seconds or instantly the list selection jumps to top unexpectedly.

Extension version: 1.3.6 VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:32.912Z) OS version: Darwin x64 20.4.0 Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz (8 x 2900)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 11, 11, 8
Memory (System) 16.00GB (0.60GB free)
Process Argv --crash-reporter-id 5c3a1631-2393-4df6-abde-5a89995ea760
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30311713
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255cf:30323309
vscorehovct:30309550
vscod805cf:30301675
pythonvspyt200cf:30331938
binariesv615:30325510
aatestflight:30331711

Ram-vo avatar Jul 02 '21 11:07 Ram-vo

Can confirm this bug.

Here's an image of the stack trace:

image

Every couple seconds, while scrolling on the suggestion list (wherever it is - I've seen it trying to fetch as a suggestion of html classes or as a suggestion of document autocomplete), it tries to fetch the suggestions from mongoose and this error pops.

Unfortunately this bug is extremely annoying I don't see another way other than disabling the extension for now.

glaubernespoli avatar Aug 06 '21 09:08 glaubernespoli

Hey @glaubernespoli @MrRaymondVO,

Thank you for reporting the bug. I made this extension long ago and has not been maintained well for quite some time, I'm looking for devs who can help me maintain it. I'll try to figure out the cause of this bug and push a fix within this week, sorry for the inconvenience!

Question: Does this happen after approximately 10 seconds after you start scrolling through the autocomplete suggestions list? Then it might be because of this: https://github.com/roerohan/vscode-MongoSnippets-NodeJS/blob/91ca37137e3514e01620fc9df91a78dc74469dab/src/extension.ts#L52-L60

roerohan avatar Aug 06 '21 10:08 roerohan

I will look into this, can u assign this to me?

Mannan-Goyal avatar Aug 19 '21 07:08 Mannan-Goyal

Sure @Mannan-Goyal

roerohan avatar Aug 19 '21 07:08 roerohan

@Mannan-Goyal any updates on this?

roerohan avatar Feb 27 '22 09:02 roerohan

@roerohan indeed the issue is at line 55 providers.forEach((provider) => provider.dispose());. By commenting it out the issue goes away.

Can you give us some context for using setInterval? I'm not an extension dev but would like to help if I can.

thegiantbeast avatar Mar 28 '22 14:03 thegiantbeast

@thegiantbeast sorry for the extremely delayed response :sweat_smile:

Feel free to take a look at this extension. I've been working on other things so I haven't had time to maintain this. Which setInterval are you referring to, can you add a link for the same?

roerohan avatar Sep 27 '23 05:09 roerohan

also see https://github.com/microsoft/vscode/issues/224607#issuecomment-2276609457

jrieken avatar Aug 09 '24 14:08 jrieken