Home Download Buy Blog Forum Support

Toggle comment not working [Solved]

Toggle comment not working [Solved]

Postby nevermind on Fri Mar 08, 2013 1:53 am

[Solved update]
[Problem]
Can't toggle comment, can't search functions in the search box start with "@", but syntax highlight works fine.
[Solution]
http://www.sublimetext.com/docs/2/revert.html
Revert to the clean state, and don't forget to backup your current packages.

[origin posts]
My Sublime Text 2's toggle comment feature is not working, also in line and in block.

I'm pretty sure it's not because of the key binding overwriting, and I also disabled all packages not installed by default.

I can't comment my code even by type the command "Toggle comment" directly, any help?

My environment is under Window 7 32 bit, with Sublime Text 2 2.0.1 Build 2217.

I'll really appreciate for any help, thanks.
Last edited by nevermind on Tue Mar 12, 2013 6:27 am, edited 2 times in total.
nevermind
 
Posts: 6
Joined: Fri Mar 08, 2013 1:40 am

Re: Toggle comment not working

Postby myunlessor on Fri Mar 08, 2013 3:20 am

Did you ignore to specify the file syntax that you want to toggle commet?
myunlessor
 
Posts: 19
Joined: Thu Mar 07, 2013 3:07 am

Re: Toggle comment not working

Postby nevermind on Fri Mar 08, 2013 6:15 am

No, I didn't, the syntax highlight works well.

And I also noticed that I can't search function names by pressing ctrl+shift+P and type starts with "@", seems like I'm missing the syntax cache or something.

Someone just executed a batch file on this computer to clean the system temporary files few says ago, I think these all happens since then.

Is there anyway to made sublime rebuild the cache?
nevermind
 
Posts: 6
Joined: Fri Mar 08, 2013 1:40 am

Re: Toggle comment not working

Postby robertcollier4 on Fri Mar 08, 2013 6:43 am

Delete <exepath>\Data\Cache folder.
robertcollier4
 
Posts: 133
Joined: Sun Feb 24, 2013 5:37 pm

Re: Toggle comment not working

Postby nevermind on Fri Mar 08, 2013 7:06 am

Excuse me, what does <exepath> mean? The installation path?
My sublime_text.exe locates at D:\Program Files\Sublime Text 2, but I can't find the directory "Data" under it.
nevermind
 
Posts: 6
Joined: Fri Mar 08, 2013 1:40 am

Re: Toggle comment not working

Postby robertcollier4 on Fri Mar 08, 2013 4:43 pm

nevermind wrote:Excuse me, what does <exepath> mean? The installation path?
My sublime_text.exe locates at D:\Program Files\Sublime Text 2, but I can't find the directory "Data" under it.

For non-portable install, look in %APPDATA% and find a Sublime Text cache folder (Go to Start - Run - type in %APPDATA%)
robertcollier4
 
Posts: 133
Joined: Sun Feb 24, 2013 5:37 pm

Re: Toggle comment not working

Postby nevermind on Mon Mar 11, 2013 1:44 am

Hi, thanks for your response, here's my directory content at the path you described.
2013-03-11_091329.jpg
list in %APPDATA%/Sublime Text 2
2013-03-11_091329.jpg (41.27 KiB) Viewed 1196 times

As you can see, there's no cache directory.
How can I fix it now?
nevermind
 
Posts: 6
Joined: Fri Mar 08, 2013 1:40 am

Re: Toggle comment not working

Postby skuroda on Mon Mar 11, 2013 7:19 am

Did it just suddenly stop working (after whatever clean up process was run) or is it the first time you have opened a file of a particular type (you should probably specify that in this post also). I only ask this because the symbol list, as well as the comments I believe, are based on having the proper entries in the syntax file.
skuroda
 
Posts: 390
Joined: Fri Oct 05, 2012 8:11 am

Re: Toggle comment not working

Postby nevermind on Mon Mar 11, 2013 10:30 am

Hi, skuroda.

If "suddenly stop working" means the Sublime Text shutdown unexpectedly, the answer is YES.
Sorry about not mentioning this, I supposed that Sublime Text will take care of it.

And I'm not open this particular file for the first time, the syntax highlight also works fine, I believes that means I got the right syntax file.
nevermind
 
Posts: 6
Joined: Fri Mar 08, 2013 1:40 am

Re: Toggle comment not working

Postby skuroda on Mon Mar 11, 2013 6:37 pm

Are there any errors in the console? You could also try reverting (http://www.sublimetext.com/docs/2/revert.html), if you haven't already. You can do this first, just to make sure things are working properly, then move your custom stuff (plugins and user folder) back in). Of course, if you are using package control, you don't really have to move plugins back either though right :). Unless you manually installed them of course.
skuroda
 
Posts: 390
Joined: Fri Oct 05, 2012 8:11 am

Next

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 15 guests