I’m not trying to compile the INO directly, I’m trying to excluding it from the compilation
The description of src_filter say:
This option allows to specify which source files should be included/excluded from build process.
So, the file will continue in the src folder but as the flag is set to -<file1.ino> it should be totally excluded from the build process, or I’m misunderstanding something?
We have some problem here. Users see file1.ino but PIO Build System sees file1.ino.cpp. Before you start a build process, we convert INO -> CPP on-the-fly. On the end of a process, we remove this temporary file. Maybe, we should add some note to docs?
This issue related just to INO files. You have to use -<file1.ino.cpp> or -<file1.ino*> in this case.