SublimeText / TrailingSpaces

Highlight trailing spaces and delete them in a flash.
MIT License
896 stars 94 forks source link

view_syntax issue #142

Closed eblot closed 4 years ago

eblot commented 4 years ago

I've been unable to use the trailing spaces highlighting for a while, despite the Delete Trailing space menu always work.

I noticed from the console the following error in trailing_spaces.py@185:

NameError: global name 'view_syntax' is not defined

and indeed, view_syntax does not seem defined

is view_syntax could be something like

view_syntax = view_settings.get('syntax')

?

rchl commented 4 years ago

Wow, indeed. I even get linter shouting at me (I guess I didn't have it before).

rchl commented 4 years ago

BTW. You are getting this error because you have customized syntax_ignore setting. That one is deprecated (but will still work) by new, preferred scope_ignore setting.

rchl commented 4 years ago

Fix released in v1.3.3.

eblot commented 4 years ago

BTW. You are getting this error because you have customized syntax_ignore setting. That one is deprecated (but will still work) by new, preferred scope_ignore setting.

I think it comes from quite an old setting. Before digging into the code, I uninstalled/reinstalled TrailingSpaces, but the old settings have been preserved, and I did not know which one were up to date. I'll update them, thanks for the hint.

rchl commented 4 years ago

Open TrailingSpaces settings from the command palette. Your customized settings should be on the right.