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

relative path for files not normalized #25

Open
tommyhurleycom opened this issue Oct 17, 2015 · 0 comments
Open

relative path for files not normalized #25

tommyhurleycom opened this issue Oct 17, 2015 · 0 comments

Comments

@tommyhurleycom
Copy link

I spent some time debugging APIGEN on my windows system and found a couple problems with documentation or the code. I never could get the -s option to pick my directory it always went back to ./src. When I put the source into apigen.neon I had to put it into an array construct [./tlhExcel] the - on multiple lines didn't work. I will say I don't use neon files a lot so there may be another way to create the array I just don't know. I also discovered that if you don't give the option exclude an array, even an empty array, than apigen throws an error saying exlude must be an array. Finally when APIgen is relativizing the actual file list, on windows system, it won't work because windows returns "" in the path and the code is comparing that to a directory with "/". Most of the times apigen cleans up the path by doing a str_replace in the normalize function but not int the class RelativePathResolver method getRelativePath. I simply added $filename = str_replace('', '/', $fileName) and it is going to completion. A lot of debugging to figure out how it works but the output was worth it.

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