ijavascript icon indicating copy to clipboard operation
ijavascript copied to clipboard

Bad code completion in cells with multiple occurances of the text to match

Open rgbkrk opened this issue 9 years ago • 4 comments

Rather than the position reported from the frontend. This leads to interesting behavior:

Totally valid: ✅

screen shot 2016-09-17 at 2 32 34 pm

Also valid, deeper in: ✅

screen shot 2016-09-17 at 2 32 20 pm

My cursor is at the bottom, yet it's "completing" on a prior occurence of console: ❌

screen shot 2016-09-17 at 2 32 43 pm

rgbkrk avatar Sep 17 '16 21:09 rgbkrk

It looks to me like a frontend issue. I can't reproduce it with IPython 1.2.1. What frontend version are you using?

n-riesco avatar Sep 27 '16 11:09 n-riesco

This is in nteract.

rgbkrk avatar Sep 27 '16 14:09 rgbkrk

Sorry @rgbkrk , now that I've read your issue again, I get it. Definitely, a bug in ijavascript.

n-riesco avatar Nov 21 '21 01:11 n-riesco

$$.html works around the issue https://github.com/n-riesco/nel/blob/9dfd47f15d8be83ee1e313d512a34180c99003c9/lib/nel.js#L932-L1055 https://github.com/n-riesco/nel/blob/9dfd47f15d8be83ee1e313d512a34180c99003c9/lib/nel.js#L1311-L1387

n-riesco avatar Nov 21 '21 02:11 n-riesco