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

mkdir(): File exists #228

Closed
ghost opened this issue Jun 3, 2015 · 8 comments
Closed

mkdir(): File exists #228

ghost opened this issue Jun 3, 2015 · 8 comments
Labels

Comments

@ghost
Copy link

ghost commented Jun 3, 2015

PHP Version: 5.4.16 (Linux)
PHPDox Version: 0.8.0-dev
ErrorException: E_WARNING
Location: /var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/src/generator/engine/AbstractEngine.php (Line 63)

mkdir(): File exists
#0 /var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/src/generator/engine/AbstractEngine.php(63): mkdir()
#1 /var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/src/generator/engine/html/Html.php(278): TheSeer\phpDox\Generator\Engine\AbstractEngine->saveDomDocument()
#2 /var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/src/generator/engine/html/Html.php(236): TheSeer\phpDox\Generator\Engine\Html->genericMethodBuild()
#3 unknown(0): TheSeer\phpDox\Generator\Engine\Html->buildClassMethod()
#4 /var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/src/generator/Generator.php(203): call_user_func()
#5 /var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/src/generator/Generator.php(294): TheSeer\phpDox\Generator\Generator->handleEvent()
#6 /var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/src/generator/Generator.php(249): TheSeer\phpDox\Generator\Generator->processClass()
#7 /var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/src/generator/Generator.php(142): TheSeer\phpDox\Generator\Generator->processWithNamespace()
#8 /var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/src/Application.php(241): TheSeer\phpDox\Generator\Generator->run()
#9 /var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/src/CLI.php(165): TheSeer\phpDox\Application->runGenerator()
#10 /var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/phpdox(68): TheSeer\phpDox\CLI->run()

@theseer
Copy link
Owner

theseer commented Jun 4, 2015

Interesting this pops up again.
It has been reported before (Issue: #178) but vanished according to the original reporter. I still don't understand how this can happen however. The failing mkdir() is only called if the file_exists() check returns false. So how can mkdir() after that claim it exists?

@ghost
Copy link
Author

ghost commented Jun 4, 2015

I think it was my fault I had wrong path set to target.

Kind regards,
Manish Hiran

From: Arne Blankerts [mailto:[email protected]]
Sent: 04 June 2015 02:59
To: theseer/phpdox
Cc: Manish Hiran
Subject: Re: [phpdox] mkdir(): File exists (#228)

Interesting this pops up again.
It has been reported before (Issue: #178#178) but vanished according to the original reporter. I still don't understand how this can happen however. The failing mkdir() is only called if the file_exists() checkhttps://github.com/theseer/phpdox/blob/1e88a45c51f75f31f44f66a131d820423563c93f/src/generator/engine/AbstractEngine.php#L62 returns false. So how can mkdir() after that claim it exists?


Reply to this email directly or view it on GitHubhttps://github.com//issues/228#issuecomment-108679500.

@theseer
Copy link
Owner

theseer commented Jun 4, 2015

Can you elaborate on that a bit more? If by any means possible I'd like to adjust the handling of such a situation so the reported crash does not occur.

@theseer
Copy link
Owner

theseer commented Jun 11, 2015

Ping?

@ghost
Copy link
Author

ghost commented Jun 23, 2015

Hi there,

I am getting following error:

[23.06.2015 - 13:39:23] Generator process completed
[23.06.2015 - 13:39:23] Processing project 'Checkout 2.0' completed.

Oups... phpDox encountered a problem and has terminated!

It most likely means you've found a bug, so please file a report for this
and paste the following details and the stacktrace (if given) along:

PHP Version: 5.4.16 (Linux)
PHPDox Version: 0.8.0-dev
ErrorException: E_COMPILE_ERROR
Location: /var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/src/vendor.php (Line 224)

{closure}(): Failed opening required '/var/www/a1c-mhiran/checkout2/vendor/theseer/phpdox/../../../vendor//phpunit/php-timer/PHP/Timer.php' (include_path='.:/usr/share/pear:/usr/share/php')

No stacktrace available

Kind regards,
Manish Hiran

From: Arne Blankerts [mailto:[email protected]]
Sent: 11 June 2015 21:26
To: theseer/phpdox
Cc: Manish Hiran
Subject: Re: [phpdox] mkdir(): File exists (#228)

Ping?


Reply to this email directly or view it on GitHubhttps://github.com//issues/228#issuecomment-111267580.

@theseer
Copy link
Owner

theseer commented Jun 23, 2015

That's an unrelated issue (see #235).
Please focus on the mkdir() problem.

@theseer theseer added the Bogus label Jun 23, 2015
@ghost ghost closed this as completed Jun 23, 2015
@theseer
Copy link
Owner

theseer commented Jun 23, 2015

Can you provide some more feedback on the previous question?

@ghost
Copy link
Author

ghost commented Jun 23, 2015

I had configured incorrectly in phpdox.xml.dist

output path: I had set to "../www-root/build/", where "www-root" does not exists.

And the following worked.

<?xml version="1.0" encoding="utf-8" ?>

<phpdox xmlns="http://xml.phpdox.net/config">
 <project name="Checkout 2.0" source="../checkout2/" workdir="/build/phpdox">
  <collector publiconly="false" backend="parser">
   <include mask="*.php" />
   <include mask="*.stub" />
   <exclude mask="**vendor**" />
   <inheritance resolve="true"/>
  </collector>

  <generator output="/build/">
  <enrich base="/build/logs">
    <source type="git" />
   </enrich>
   <build engine="html" enabled="true" output="api">
    <file extension="html" />
   </build>
  </generator>
 </project>
</phpdox>

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant