Closed BlueMystical closed 7 years ago
The problem seems to be with the "Comment Sintax" Regular Expresion. I had to tweak till i managed it to work:
Prefix: (?:// @)( Sufix: ):? (.?) ?(?=\/|\r\n|\n|$)
This works for both JS and PHP files, couldnt make it work with HTML files tough.
What's file need to tweak?
What's file need to tweak?
Open the Plugin settings, a window should pop, set the Prefix and Sufix fields as mentioned above.
A window dosen't pop :(
Press CTRL+ALT+T to open the TODO window. There is also an option in the 'View' menu. Press the Configuration Gear Button on the right. set the Prefix and Sufix fields as mentioned above.
I have been pressing CTRL+ALT+T and TODO button to open the TODO window but the window is not opening. :-(
do you have the latest version of both brackets and TODO? Try Re-installing the TODO plugin.
do you have the latest version of both brackets and TODO? Yes
Try Re-installing the TODO plugin I have try it but the TODO window is not opening.
Sorry, if nothing of before fixed the problem, i'm out of ideas.
Commit 018a020 is the culprit. The issue is that the backslashes are not escaped in modules/components/Defaults.js
line 10. The line:
suffix: '):? *(.*?) ?(?=\/\*|-->|\*\/|\r\n|\n|\r|$)'
should be:
suffix: '):? *(.*?) ?(?=\\/\\*|-->|\\*\\/|\\r\\n|\\n|\\r|$)'
You should be able to edit your copy of this file (on macOS it's at /Users/yourname/Library/Application Support/Brackets/extensions/user/mikaeljolt.brackets-todo/modules/components/Defaults.js
), remove any current "bracketsTodo" settings in your config, and restart Brackets to get things to work.
Can someone make a pull request?
Works!, and under Windows the file is located in: %AppData%\Brackets\extensions\user\mikaeljorhult.brackets-todo\modules
.
@alvint I created a pull request
This worked wonder for me! The TODO Window never opened up.
On Windows, I did the change @alvint suggested but referencing @Jhollman for location in Windows. Good work guys!
Currently Using: Windows 10 64bit - i5 Brackets (Release 1.10 build 1.10.0-17483)
A fix for this is in the just released version 0.9.5. Resetting the settings from the settings dialog uses the new defaults.
Does not work on the latets Brackets 1.9 version. Not a single TODO comment, not inj JS, PHP or HMTL files.