Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code overwrite/random insertion #3924

Open
joho1968 opened this issue Feb 23, 2021 · 5 comments
Open

Code overwrite/random insertion #3924

joho1968 opened this issue Feb 23, 2021 · 5 comments
Milestone

Comments

@joho1968
Copy link

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
Copy link
Member

th3coop commented Feb 23, 2021

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.

@th3coop th3coop added this to the Perpetual milestone Feb 23, 2021
@joho1968
Copy link
Author

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
Copy link
Member

th3coop commented Feb 24, 2021

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
Copy link
Author

joho1968 commented Feb 25, 2021

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
Copy link
Member

th3coop commented Mar 1, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants