ncuesta / pinocchio

Annotated Source generator for PHP (port of Docco)
http://ncuesta.github.io/pinocchio
MIT License
11 stars 0 forks source link

Unix `.` and `..` files get included among output files #5

Open hijarian opened 11 years ago

hijarian commented 11 years ago

When generating the documentation from a folder on *nix (I'm on Debian, specifically) two additional files gets created in output folder: .html and .html.html.

In the working log it looks like this:

<...>
Processing . into docs/.html... Done
<...maybe some other files...>
Processing . into docs/.html.html... Done
<...>

Don't know whether it happens on Windows.

Apparently it picks up the pseudo-files .. and .

ncuesta commented 11 years ago

@hijarian can you please check again? Sorry for the delay, I've been kind of busy.

hijarian commented 11 years ago

I purged the vendor directory completely and reinstalled the Pinocchio from scratch. I checked the src/Pinocchio/Configuration.php for the presence of new default and it was OK.

Then I ran the Pinocchio and get the same results.

Strangely enough, in log it shows just Processing . (single dot) two times, not . and ...

ncuesta commented 11 years ago

I still can't reproduce this - I'm not using Debian though. I'll try to get a hold of a Debian box and try this. Can you provide me your current specs (OS version, Architecture + PHP Version). Thanks

hijarian commented 11 years ago

I've done all reinstallation again to be absolutely sure I have last possible version.

I'm trying to make annotated docs for YiiBooster project here at GitHub.

Command I'm running is:

$ php vendor/bin/pinocchio --source widgets --output doc

And my specs are:

$ uname -a
Linux hijaria 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux

$ cat /etc/debian_version
7.0 # presumably Wheezy

$ php -v
PHP 5.4.4-12 (cli) (built: Jan 21 2013 10:32:30) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with XCache v2.0.0, Copyright (c) 2005-2012, by mOo
    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

And I still get the same two dotfiles in output.

Hope the info above will help