-
-
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
Error in display of tabulator in editor #7432
Comments
Please post a screenshot because I don't understand what you mean by |
Mixing spaces and tabs is a very bad idea, so I'd be in favor of closing this one. Realistically we also don't have time to invest in fixing this one. What do you say @bcolsen? |
This is not really a case of mixing spaces and tabs. The bug is there when you just use tabs (also a bad idea) The current way tabs are drawn would make it quite difficult to use the editor. The spacing can be off by 1.5 spaces depending on the font and size(Monospace 12) : The two sections should be identical. Notice how the guides don't work either. This is a rendering bug that could impact code readability if you use tabs.
This is true, but this bug should be kept as reference to the issue. I don't use tabs so it's low on my priorities |
The point is, that a program editor has to use a monospace font and render it correctly in order to make things line up. But in Spyder editor this does not work when using tabs. So in my opinion this is a SEVERE bug. I mean, this is a text editor. If this was a MINOR bug, what are your SEVERE bugs that you have to fix first??? Not being able to load a text file? @bcolsen: Did you find a combination of font and font size so that the editor is usable again? |
You're welcome to fix it. I consider this low priority because you're the first person to report it. |
OK, I will give it a try. Can you give me a hint where to start? Which file is responsible for rendering the editor window content? |
For the record, I can reproduce it on Spyder 3.3.0 on Win8.1/Python 3.6.6/Qt 5.6 as well. I'm not as familiar with the details of the underpinnings as some, but the Editor widget would be one place to start. Since this is a bug, if it ends up being straightforward you could probably justify fixing this on |
@feichtinger, the fix for this will be available in our 3.3.1 version. |
Thanks for investigating this bug. Unfortunately the issue is still not fixed on my system. I pulled the latest 3.x branch from github (commit: a2c60d7) and used the bootstrap.py script. |
This should fix it: |
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
The Spyder editor does not display tabulators right.
What steps reproduce the problem?
open Spyder with default settings
load the attached file into Spyder editor
temp.txt
see it?
What is the expected output? What do you see instead?
A Tab should be EXACTLY 4 spaces wide, as configured in the settings. But in appears more like ~4.5 spaces making lines not aligned
Versions
Dependencies
The text was updated successfully, but these errors were encountered: