Sketch source move to build folder bug: file extension changing #1699
Labels
conclusion: duplicate
Has already been submitted
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Brief
The problem consists of wrong Arduino CLI builder behaviour. When executing Arduino builder it creates a folder build/sketch/ and copies the source files into it. If we change the file extension the builder doesn't remove the old version of the file and still trying to build your application with the old file.
Steps to reproduce
test.ino
,myLib.h
,myLib.c
myLib.c
to creating the build errormyLib.c
tomyLib.cpp
and fix the build errorCurrent behaviour
Arduino builder tries to build the project with
myLib.c
thoughmyLib.cpp
is in build/sketch/Expected behaviour
Arduino CLI's builder must detect changing file extension and remove old file myLib.c and use new myLib.cpp
Command
Environment
The text was updated successfully, but these errors were encountered: