Skip to content

Conversation

@jmwright
Copy link
Member

@jmwright jmwright commented Oct 14, 2025

Spyder has been significantly refactored in version 6, and as long as we are on 5.x the upgrade path to Python 3.13 and beyond is challenging. Rather than refactor CQ-editor to fit Spyder 6, I took a shot at implementing a custom editor. It does not have feature parity yet (breakpoints are not implemented), but it does work for basic tasks, and I think the path to a replacement CQ/Python editor is straight-forward.

Now would be a good time to give feedback about this editor. The idea is to reach feature parity with the Spyder IDE (as we use it, not everything Spyder can do) and then include this editor in the next release.

A few things to note:

  • Breakpoints and most debugging support have not been implemented yet.
  • The syntax highlighter is tuned for a light theme, and is currently a little hard to read with a dark theme.
  • When running this branch you will see some messages in the console about methods that are being called. These are some of the methods I am aware of that have not been implemented yet.

Much of the Qt editor code has been adapted from here.

@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

❌ Patch coverage is 90.12605% with 47 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.37%. Comparing base (63be9c6) to head (982d559).

Files with missing lines Patch % Lines
cq_editor/widgets/code_editor.py 90.35% 24 Missing and 20 partials ⚠️
cq_editor/preferences.py 0.00% 1 Missing ⚠️
cq_editor/widgets/debugger.py 75.00% 1 Missing ⚠️
cq_editor/widgets/editor.py 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #535      +/-   ##
==========================================
+ Coverage   87.63%   88.37%   +0.74%     
==========================================
  Files          20       20              
  Lines        1836     2289     +453     
  Branches      208      261      +53     
==========================================
+ Hits         1609     2023     +414     
- Misses        179      198      +19     
- Partials       48       68      +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

2 participants