#7 Grep warning if error in .grep regex

closed
nobody
5
2009-03-18
2008-10-03
Anonymous
No

If there is an error in the regular expression specified in a .grep file, a warning is generated:
[E_WARNING] [ M:\projects\yasca\plugins\Grep.php:129 ] preg_grep(): Compilation failed: missing ) at offset 26
[E_WARNING] [ M:\projects\yasca\plugins\Grep.php:131 ] Invalid argument supplied for foreach()
[E_WARNING] [ M:\projects\yasca\plugins\Grep.php:129 ] preg_grep(): Compilation failed: missing ) at offset 31
[E_WARNING] [ M:\projects\yasca\plugins\Grep.php:131 ] Invalid argument supplied for foreach()

A nicer error should be made.

Discussion

  • Michael Scovetta

    Fixed in v1.3, but displays the error message each time the plugin runs. I committed a change in svn that just shows it once.

     
  • Michael Scovetta

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks