Strange Compiler Behaviors

I am getting a strange compiler behavior that doesn't make any sense to me. The compiler is showing errors (see attached image) that say it cannot open the highlighted files (Arduino.h, Config.h, ConfigValidator.h). As a consequence, COMMAND_BUFFER_SIZE appears to be undefined. The strange part is that these errors are not being reported in the output stream (verbose output attached).

This is causing all sorts of havoc with my code. And this error comes and goes. In the past, I did something that made it go away, but I cannot determine exactly what it was.

Has anybody seen this type of behavior before and to you have any ideas how to make it stop.

All my code is in github: https://github.com/rhj4/NanoBots

Compiler Output.txt (149 KB)

Compiler Output.txt (149 KB)

(see attached image)

No thanks, you could post the error message as text.
That would save me a ton of my data allowance.

First, the error messages I was referring to only show up in the Visual Studio IDE. It is not possible to compile my code in the Arduino IDE because the libraries refer to Config.h which must be in the same folder as the sketch. Visual Studio has an "Extra Flags:" option that I set to -I"{sketch_path}" to get around this problem and I have no idea how to accomplish this in the Arduino IDE.

Second, I found that the problem is that the library (NanoBots) must be added as a shared project reference in Visual Studio. Once I found this, the bogus compiler messages go away.

(deleted)

I kept nothing secret in my first post. I discovered the answer AFTER I made the post.

rhj4:
All my code is in github: https://github.com/rhj4/NanoBots

Yes, but which example sketch are you trying to compile?!? I tried "NanoBotsTester01" but (after I made a copy of "Config.h" in 'src') it tries to include a file I can't find anywhere in your sources:

In file included from /Users/john/Documents/Arduino/libraries/NanoBots/src/BJMaster.cpp:1:0:
/Users/john/Documents/Arduino/libraries/NanoBots/src/BJMaster.h:60:29: fatal error: ConfigValidator.h: No such file or directory
 #include "ConfigValidator.h"

(deleted)

OK, sorry about the omission. I was hoping that isn't the problem. I have tried posting this question on the Virtual Micro forum, but they direct me to this forum, so now I am caught in the finger pointing.

As for the configValidator.h question, it isn't an important piece. Its only purpose was to check the code in Config.h.

Thanks for the feedback.