Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should ignore bad symlinks #7

Open
hexmode opened this issue Dec 29, 2015 · 0 comments
Open

should ignore bad symlinks #7

hexmode opened this issue Dec 29, 2015 · 0 comments

Comments

@hexmode
Copy link

hexmode commented Dec 29, 2015

I'm running this on a project that I've edited in emacs and it is crashing on the symlinks that emacs creates as lock files. Example

$ phptags index
...
  [1283 files, 34598 tags, 55%]PHP Warning:  file_get_contents(includes/db/.
#DatabaseMysqli.php): failed to open stream: No such file or directory in .../src/Parser.php on line 115                                                                             
PHP Fatal error:  Uncaught exception 'Exception' with message 'Error reading the contents of 'includes/db/.#DatabaseMysqli.php'' in .../src/Parser.php:117
Stack trace:
#0 .../phptags/src/Parser.php(52): PhpTags\Parser->getContents('...')
#1 .../src/IndexCommand.php(93): PhpTags\Parser->getTags('...')
#2 .../bin/phptags.php(135): PhpTags\IndexCommand->execute(Object(Closure))
#3 {main}
  thrown in .../src/Parser.php on line 117
$ ls -l includes/db/.#DatabaseMysqli.php 
lrwxrwxrwx 1 mah mah 40 Dec 26 16:14 includes/db/.#DatabaseMysqli.php -> [email protected]:1450395219                                                           
hexmode added a commit to hexmode/phptags that referenced this issue Dec 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant