GitHub-Source-Indexer
GitHub-Source-Indexer copied to clipboard
Indexing failure on limits header file
I tried indexing some VS 2015 built code and hit this error:
Script error. The source path (c:\program files (x86)\microsoft visual studio 14.0\vc\include\limits) was invalid At C:\github\GitHub-Source-Indexer\github-sourceindexer.ps1:299 char:9
-
throw "Script error. The source path ($src) was invalid"; -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : OperationStopped: (Script error. T...ts) was invalid:String) [], RuntimeException
- FullyQualifiedErrorId : Script error. The source path (c:\program files (x86)\microsoft visual studio 14.0\vc\include\limits) was invalid
I'm not sure what the problem is. Is the script expecting that all of the source files will be found on github? 'cause that's not gonna happen.
Oh wait - I found the -ignoreUnknown option. That really needs to be on by default, or get mentioned when unindexable files are found, cause there are always gonna be unindexable files.
Thanks, I haven't looked at this script for quite a while now, happy to accept any pull requests however if you have anything ?
Okay, I'll think about it. I ended up having to make one change in order to use it for UIforETW, so I made add an option for that and fix a few things. Or, I might copy the concept and make a simpler script for my own particular needs.
Thanks for the script - very handy.