sublime-to-done icon indicating copy to clipboard operation
sublime-to-done copied to clipboard

Syntax highlighting not working

Open jcamachott opened this issue 9 years ago • 8 comments

Hi,

Somehow syntax highlighting is not working for me anymore. I am using a file called .todo and it is set to the ToDone syntax. I have tried uninstalling and reinstalling (and restarting sublime in between). Same problem.

Thanks in advance for any help you have. John

jcamachott avatar Aug 25 '15 23:08 jcamachott

Hi,

Not working for me either on 2.0.2 build 2221, Windows 8.1 x64. Tried reinstalling but... nope. Even the readme isn't getting properly highlighted:

sshot-10

Best regards!

biohzrdmx avatar Aug 26 '15 22:08 biohzrdmx

Have the same issue. =( How info do you need, for diagnosis?

tecma avatar Sep 09 '15 07:09 tecma

Thanks for filing the bug.

Build info is useful. @tecma, @jcamachott can you provide platform and build info?

Can you also confirm ToDone is not listed in the "ignored_packages" section of your user settings?

Also, does the ToDone readme end up looking pretty much like @biohzrdmx screenshot?

@biohzrdmx, can you place a cursor in front of one of the green characters (for instance, line 3, to the left the leading # character) and press ctrl + shift + p (on a Mac, hopefully it's the same on Windows). This should update the status bar at the bottom of sublime to show the syntax highlighting information. What does it show? It will likely be a space separated list of items. It should say something like: text.todone entity.name.class.todone

I'm kind of wondering if maybe ToDone is working but the color scheme is being clobbered.

Thanks.

tiffon avatar Sep 09 '15 23:09 tiffon

Hi @tiffon I did what you suggested, here's the screenshot:

sshot-11

And, about the color scheme, I think you're right: if I change the scheme all other files refresh and show the new one, but the ones with ToDone syntax remain with the old, broken one.

Hope you sort it out soon!

biohzrdmx avatar Sep 11 '15 17:09 biohzrdmx

I am having exact same issue with build # 3126

dvdnhm avatar Nov 02 '16 21:11 dvdnhm

Me too :)

HideoKun avatar Dec 05 '16 12:12 HideoKun

@wojciechmorawski, @dvdnhm — ~~I'm not able to reproduce the issue. I tried uninstalling and reinstalling, but no dice. Any suggestions?~~

Edit: please see the comment below.

tiffon avatar Jan 27 '17 12:01 tiffon

Actually, I was just able to reproduce the issue, oddly enough.

Restarting did not fix it. But, when I created a new file, set the syntax to ToDone and then copied the incorrectly highlighted content into the new doc it was fine.

I went back to the original, incorrectly highlighted file, and set the syntax to plain text, then back to ToDone, still wasn't right.

Finally, I saved the file to disk and reopened it and it was fine.

I'm just guessing here, but the issue might be with files that are open at the time of installation.

@wojciechmorawski, @dvdnhm — can either of you confirm reopening files resolved the issue? Thanks

tiffon avatar Jan 27 '17 13:01 tiffon