-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyder crashes when replacing text #14176
Comments
Hi @pj1989, I could reproduce this error, we will work in this for our next release. Thanks for reporting! |
I'll also note that Spyder's replace seems much slower than Notepad++'s (noticeable delay even on small text). |
@OverLordGoldDragon, I think that problem was caused because we were highlighting all occurrences in the document. But that was fixed in 4.2.0 |
@ccordoba12 Spyder didn't yell for not upgrading; maybe it's to do with not being on -c anaconda (which is also where I looked). Upgraded - the delay's still there, and it's in "replace in selection"; it's small, but clearly noticeable unlike in Npp (also seems to get slower with selection size or match count). |
Just to update, this error is still present in 5.2.2 |
We have looked into this issue and think that it’s an issue in Qt:
A possible fix is the inclusion of pull request #16988, at the very least the changes affecting Note: The reproduction steps provided @LucaAmerio work only if the text does not fit in the screen, i.e. scrollbars must be visible. The error occurs when a wrap-around¹ of the search is performed. With a sufficiently small font (no scrollbars) the error does not occur. ¹ Wrap-around of search: Editor scrolls the content to jump from the end of the file to the start of the file. |
Problem Description
I have the (poorly written) python script below. I want to replace all instances of "particles" with "self.particles". To do so, I do [Search] > [Replace text] and try to replace "particles" with "self.particles". Spyder crashes immediately. I was having the issue with Spyder 4.1.2 inside Anaconda. I installed Spyder 4.2.0 using the stand-alone installer, but the error still exists.
What steps reproduce the problem?
Note: I tried several times to reduce the code to nail down the error. The extremely weird thing is that it's enough to replace one method's content with
pass
or deleting one of the rows at the beginning of the file containing those variables to prevent the error to occur.However, with this EXACT content, I can reproduce the error systematically.
Versions
Dependencies
The text was updated successfully, but these errors were encountered: