Closed
Description
Recent versions of Arduino with the new builder support recursive building, where subfolders are scanned and all files found are compiled. Perhaps this was meant only for libraries, but it's also being done for sketches.
However, the IDE editor does not support files in subfolders. If you create a subfolder in a sketch folder, and place code within it, this code will be built as part of the sketch. But the user can't edit it, or even see any visual indication Arduino is building other code.
This can be problem for examples, written before the new builder, which placed PC-based example code in subfolders. Because there's no visual indication other code is being compiled, this leads to very confusing errors.