Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.15k stars 303 forks source link

Code overwrite/random insertion #3924

Open joho1968 opened 3 years ago

joho1968 commented 3 years ago

Short Summary

After marking some text, and copying it (Ctrl+C), then move to another place and paste it (Ctrl+V), I sometimes find the pasted string elsewhere in the current editor buffer.

Steps to Reproduce

I honestly don't know. This sounds like an infamous C/C++ style pointer error to me, but I cannot duplicate this at will.

Expected results

Well, I don't expect KomodoIDE to randomly insert data in my editor buffer :-)

Actual results

Random insertion of copied/pasted string at various places in the current edit buffer.

Platform Information

Komodo IDE, version 12.0.1, build 91869, platform linux-x86_64 Ubuntu 20.04.LTS

Additional Information

Apologies for not having more feedback on this, but it has happened 10-20 times in the past few years.

th3coop commented 3 years ago

My best guess would be that it's a customization you've made to your install. I'm certain this would have been reported by now if this was occurring a vanilla install of Komodo.

Let us know if you find repro steps though.

joho1968 commented 3 years ago

I'm afraid the answer isn't that easy. This has happened to me on previous versions and in different environments. I don't think it ever happened under Windows (I mainly use Linux) though. Every time I've installed Komodo IDE, it's been a plain vanilla installation, albeit "customized" with one of the (stock) themes, etc. I've modified four keybindings, and that's about it.

th3coop commented 3 years ago

I'm afraid the answer isn't that easy

True enough, though I didn't say it was the answer. I have no clue what might be happening and without repro steps there's not much I can do.

joho1968 commented 3 years ago

Is there anything I can do to help track this weird "behavior" down? Like stress testing it somehow, or if there's some way to automate this? I can't find any proper pattern to it either. The files aren't very big (anywhere from a few hundred lines to a few thousand lines), nor are they of a specific type (other than being text / source code).

The only "pattern" I can see is that it always happens, when it happens, after at least one cut 'n' paste or copy 'n' paste.

th3coop commented 3 years ago

You could write a script that performs a bunch of copy and paste actions in a file and see if the file ends up in the state you expect. Should be able to do that pretty easily with the editor sdk https://docs.activestate.com/komodo/12/sdk/api/module-ko_editor.html