GitHub-Source-Indexer icon indicating copy to clipboard operation
GitHub-Source-Indexer copied to clipboard

Indexing failure on limits header file

Open randomascii opened this issue 9 years ago • 3 comments

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.

randomascii avatar Sep 07 '16 05:09 randomascii

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.

randomascii avatar Sep 07 '16 05:09 randomascii

Thanks, I haven't looked at this script for quite a while now, happy to accept any pull requests however if you have anything ?

Haemoglobin avatar Sep 16 '16 22:09 Haemoglobin

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.

randomascii avatar Sep 16 '16 22:09 randomascii