-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bug found in: document generator(?) #10
Comments
How would you want this to be handled when you don't have permissions on the directory? Would you like to specify and export path? |
I think this would solve a lot of ear scratching yes. I think being able to specify an export path would enable users without permission to still use the documentor and people who end up having this error (still unknown as to why to me), even though with permission, would be able to set a path themselves. |
This error happens when the program cannot create the directories or files that it's generating, usually because of file permissions. The program gets its file permissions from the user that executes the php interpreter. I'll add an export path option. |
Hey, so I pushed changes that should fix this. In reality, Roster wasn't handling Windows paths correctly, which I think was the core issue. I don't have a Windows setup to actually test it with though. If you could checkout the |
The error remains when I try to generate it via git-bash (the above principle was applied). How I tried to generate the docs Additional information: I have checked, I have the permission to modify, create, delete etc. files and directories. |
Alright, I don't think I'll be able to solve this without creating a Windows test-bed with git-bash, so it'll take a bit longer. |
Describe the bug
Whenever I try to use the command-line to generate docs for my project it throws the following error: [ERROR] Could not create export path
I run it like this: php vendor/bin/roster C:\xampp\htdocs\framework\classes
To Reproduce
Steps to reproduce the behavior:
framework
, so I open git-bash inframework
.php vendor/bin/roster C:\xampp\htdocs\framework\classes
(classes is basically thesrc
folder most people use for their classes etc.)[ERROR] Could not create export path
Expected behavior
It will throw the following error:
[ERROR] Could not create export path
PHP Version
8.0
Additional context
I do have permission within the directory.
I open my git-bash in the
framework
directory (which would be the root).The text was updated successfully, but these errors were encountered: