Sublime Forum

(solved - use Gremlins) Hidden Character Injection Bug?

#1

This is the first “bug” I’ve encountered in Sublime in my 2 years of using it.

I used search and replace to do some refactoring, and found out later (runtime error) that there was some hidden formatting or a hidden character injected.

Here’s the code with the bug:

  •              @if ( ! Region::isEU())
    

and this one’s bug free.

  •              @if ( ! Region::isEU())
    

They look the same here! This text editor and Sublime don’t notice the difference, but the compiler does, and so does Notepad (attached image).

Thanks in advance for any help!

Charlie

0 Likes

#2

There is a plugin called Gremlins which is quite handy in showing these hidden characters (although it shows up for me without it as a square, like your Notepad screenshot - maybe it depends on font?):
https://packagecontrol.io/packages/Gremlins

1 Like

#3

thanks this found my gremlins!

0 Likes