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

Random crash when inserting text #6

Open
stcrocco opened this issue Oct 31, 2010 · 1 comment
Open

Random crash when inserting text #6

stcrocco opened this issue Oct 31, 2010 · 1 comment

Comments

@stcrocco
Copy link
Owner

Sometimes, while inserting text, ruby raises a TypeError exception, complaining that the argument is not a KTextEditor::Range.

This seems to be caused by something going wrong in the connection between the textInserted(KTextEditor::Document*, KTextEditor::Range) KTextEditor::Document signal and the associated block in Ruber::Document. Apparently, the second argument provided by the signal is not a KTextEditor::Range

@stcrocco
Copy link
Owner Author

As a workaround, I've put a rescue inside the block, with a message box to warn of the problem. Let's see what happens

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

No branches or pull requests

1 participant