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

phpDocumentor fails searching for the config file in Windows #3247

Closed
dejudicibus opened this issue Jul 5, 2022 · 2 comments
Closed

phpDocumentor fails searching for the config file in Windows #3247

dejudicibus opened this issue Jul 5, 2022 · 2 comments

Comments

@dejudicibus
Copy link

Expected behavior

Configuration file is read and documentation is generated

Actual behavior

There is an error looking for the config file

Steps to reproduce the problem

I move to folder
D:\Docs\#MyCompany\Sites\MyProject
and run
phpdoc -c phpdoc.xml

I get

phpDocumentor v3.3.1

10:50:59 CRITICAL  [console] Error thrown while running command "-c "phpdoc.xml". 
Message: "File file:///D:/Docs/%23MyCompany/Sites/MyProject/phpdoc.xml could not be found" 
["exception" => phpDocumentor\Configuration\Exception\InvalidConfigPathException^ { …},
"command" => "-c "phpdoc.xml"",
"message" => "File file:///D:/Docs/%23MyCompany/Sites/MyProject/phpdoc.xml could not be found"]

In ConfigurationFactory.php line 96:

  File file:///D:/Docs/%23MyCompany/Sites/MyProject/phpdoc.xml could not be found

project:run [-t|--target [TARGET]] [--cache-folder [CACHE-FOLDER]] [-f|--filename [FILENAME]] [-d|--directory [DIRECTORY]] [--encoding [ENCODING]] [--extensions [EXTENSIONS]] [-i|--ignore [IGNORE]] [--ignore-tags [IGNORE-TAGS]] [--hidden] [--ignore-symlinks] [-m|--markers [MARKERS]] [--title [TITLE]] [--force] [--validate] [--visibility [VISIBILITY]] [--defaultpackagename [DEFAULTPACKAGENAME]] [--sourcecode] [--template [TEMPLATE]] [--examples-dir [EXAMPLES-DIR]] [-s|--setting [SETTING]] [--list-settings] [--parseprivate]

Your environment

Windows 10 Pro
PHP 7.4.9
phpDocuumentor 3.3.1

@mvriel
Copy link
Member

mvriel commented Jul 9, 2022

I have come across several issues with a similar pattern, I am going to merge duplicates into #3184.

This means that even though I am closing this issue, please know that we are working on it and using issue #3184 as reference

@mvriel mvriel closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2022
phpDoc issue triage board automation moved this from Needs triage to Closed Jul 9, 2022
@dejudicibus
Copy link
Author

dejudicibus commented Jul 9, 2022 via email

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

No branches or pull requests

2 participants