You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: