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

Replace all is not efficient #16975

Closed
10 tasks
impact27 opened this issue Dec 7, 2021 · 1 comment
Closed
10 tasks

Replace all is not efficient #16975

impact27 opened this issue Dec 7, 2021 · 1 comment

Comments

@impact27
Copy link
Contributor

impact27 commented Dec 7, 2021

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

What steps reproduce the problem?

  1. Create a file containing 10000 lines with:
with open("test.py", "w") as f:
    for i in range(10000):
        f.write("aaaaaa\n")
  1. Replace aaa by bbb
  2. Click All
  3. Spyder freezes for several minutes

What is the expected output? What do you see instead?

Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

Versions

  • Spyder version:
  • Python version:
  • Qt version:
  • PyQt version:
  • Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE
@steff456
Copy link
Member

steff456 commented Dec 7, 2021

Hi @impact27,

Thanks for adding a reproducible case for this issue, we need to find a way to fix it!

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

3 participants