Skip to content

You MUST use spaces! error: Syntax tests do not work properly with tabs as indentation. #177

@evandrocoan

Description

@evandrocoan

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 name gotolasteditenhanced.

image

I would happen to accidentally hit a syntax file which uses tabs as indentation:

File: Data/Packages/PackageDev/plugins_/syntaxtest_dev.py
29: def _show_tab_warning():
30:     sublime.error_message("Syntax tests do not work properly with tabs as indentation."
31:                           "\n\nYou MUST use spaces!")
32: 

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 a sublime.status_message instead of sublime.error_message or sublime.message_dialog?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions