All of a sudden, when I try to build my Arduino project in VS2017, I receive an error (see below). As far as I know, nothing has changed. System.Exception: Build folder disappeared, could not be written or there was an internal problem combining pde/ino files OR Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at System.Collections.Generic.List`1.get_Item(Int32 index) at Visual.Micro.MiroAppAPI.PdePreprocessor.getPrototypes(String sIn) at Visual.Micro.MiroAppAPI.PdePreprocessor.writePrefix(String program, String BuildPath, String SketchName, String[] codeFolderPackages, String morePrefix, Boolean autoGenPrototypes, Boolean alwaysUseRegExToFindIncludes) at Visual.Micro.MiroAppAPI.SketchBuilder.preprocess(String buildPath, PdePreprocessor preprocessor, Boolean PreProcessOnly) --- End of inner exception stack trace --- at Visual.Micro.MiroAppAPI.SketchBuilder.preprocess(String buildPath, PdePreprocessor preprocessor, Boolean PreProcessOnly) at Visual.Micro.MiroAppAPI.SketchBuilder.preprocess(String buildPath, Boolean PreProcessOnly) at Visual.Micro.MiroAppAPI.SketchCompilerArduino.TryRunCTags(Board brd, List`1 includePaths, SketchLibraryListUnSorted knownLibs) at Visual.Micro.MiroAppAPI.SketchCompilerArduino._compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug) at Visual.Micro.MiroAppAPI.SketchCompilerArduino.compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug) at Visual.Micro.Visual.Studio.Arduino.AddInApp._CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable) at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable) at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Object oProject, Boolean IsDebugStartCommand, Boolean IsRebuild, Boolean UseGdbIfAvailable) I will send a full copy of the log via email as there is plenty of sensitive information in that log file. Things I have tried so far: - upgrading VS 2017 to the latest version - uninstalled Visual Micro and reinstalled it - running VS in administrator mode There are no program code errors and as far as I can tell, I can access the output folder in windows explorer. I was about to try VS2019 but before I start installing it, I was hoping someone has seen this before. Thanks in advance.
|