Fail in finding a pattern
Posted: Mon Feb 01, 2010 6:51 am
Hi, Eran & all
I would like to know how CodeLite implement the function "Search | Find In Files".
I use CL in windows XP platform. It fails at time in finding a pattern.
The project directory hierarchy is like this:
src/a.c
src/b.c
sub/suba.c
sub/subb.c
When using "Find In Files">"Look in: Current File's Project", the result shows that the pattern are matched in files `b.c', `suba.c', `subb.c', but not `a.c'. Actually, I copy the pattern from file `a.c' and indeed I want to see all occurrences of the pattern in file `a.c'.
The file `a.c' has non-ascii characters '\223' and '\224'. I donot know how they are inserted in an ascii source file. They do not exist in linux platform of the same file, at least I can't see them in emacs/vim/less. (Yes, I use version control system to sync code into linux and windows.)
I create a new project, add new blank file `newfile.c', copy the content of `a.c' and paste into `newfile.c', and try "Find In Files" again. This time, it works fine.
How to trace this issue in order to provide more infomation or to debug by myself?
Can you give some advices?
Thanks!
I would like to know how CodeLite implement the function "Search | Find In Files".
I use CL in windows XP platform. It fails at time in finding a pattern.
The project directory hierarchy is like this:
src/a.c
src/b.c
sub/suba.c
sub/subb.c
When using "Find In Files">"Look in: Current File's Project", the result shows that the pattern are matched in files `b.c', `suba.c', `subb.c', but not `a.c'. Actually, I copy the pattern from file `a.c' and indeed I want to see all occurrences of the pattern in file `a.c'.
The file `a.c' has non-ascii characters '\223' and '\224'. I donot know how they are inserted in an ascii source file. They do not exist in linux platform of the same file, at least I can't see them in emacs/vim/less. (Yes, I use version control system to sync code into linux and windows.)
I create a new project, add new blank file `newfile.c', copy the content of `a.c' and paste into `newfile.c', and try "Find In Files" again. This time, it works fine.
How to trace this issue in order to provide more infomation or to debug by myself?
Can you give some advices?
Thanks!