-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
You MUST use spaces! error: Syntax tests do not work properly with tabs as indentation. #177
Comments
tests do not work properly with tabs as indentation.
Well, I specifically wanted this to get in the way of user experience so the user can fix their faulty indentation settings for syntax test files, so a print message on the console is a no-go. There is no easy way for me to find out whether a view has been opened transiently from the Go To Anything panel and delay the message until it was really opened. I guess I could try to see whether Edit: I know it's not really your syntax test file, but if it annoys enough people, someone might actually submit a PR to fix that. For the record, the current file does indeed use tabs for indentation, although in a way that it works. It's not recommended regardless and should be changed because of how fragile this can turn out to be if you end up with mixed indentation between code and test lines. |
Would be a lot easier if I could just check whether a quick panel is visible :/ Suggestions welcome, otherwise I'm inclined to not fix this (and rather fix sublimehq/Packages#1361 instead). |
I think we check whether there is a quick panel open, if it is with focused. If not, we could wait Sublime Text allow to check whether the quick panel is open. |
I just mentioned that we can't, though, unless you know of some very hacky way that I'm not sure I'd want to rely on. |
So, I press
Ctrl+P
and start typing a file I would like to open, then BAM! You do not even let me complete type the file namegotolasteditenhanced
.I would happen to accidentally hit a syntax file which uses
tabs as indentation
:Your warning seem too aggressive popping up on a error message dialog. Also, very frustrating while using the
Ctrl+P
/Go To Anything... feature.Why not just using
print
on the user console, perhaps also asublime.status_message
instead ofsublime.error_message
orsublime.message_dialog
?The text was updated successfully, but these errors were encountered: