Hello!
I have a project with some ".cpp" & ".h" files in the same project folder.
I closed the project and renamed one pair of them from "aaaa.cpp" & "aaaa.h" to "bbbb.cpp" & "bbbb.h".
Then when I opened IDE I saw "bbbb" pair in file tabs as expected.
But when I try now to compile the project IDE somehow give me an error about "aaaa" and even about variables in it that I already renamed as well.
I guess the correct way to rename was through IDE itself. But that's not really my question.
I'm curious where does IDE get from that information about former files and their structure?
Nope. I checked that. I corrected include instruction to #include "v_net.h" (initially was "v_bluetooth.h")
Moreover one of compiler errors says: v_bluetooth.cpp: In member function 'bool v_bluetooth::Check()': v_bluetooth.cpp:7:63: error: 'BT_BUFF_LEN' was not declared in this scope
Tho I edited v_bluetooth::Check() member function to v_net::Check()
as well as BT_BUFF_LEN to NET_BUFF_LEN
"aaaa" and "bbbb" are just simplified aliases for real file names.
Yes. I closed IDE and renamed files via Windows Explorer. Then I opened IDE, corrected code to fit new names. And then I tried to compile the project.
I already tried to close and open IDE for few times.
At this moment there are no files named v_bluetooth in my project folder. Neither there are no text matches for v_bluetooth in the code of any of those.
But compiler still mentions "v_bluetooth".
It seems this problem is related to Arduino IDE cache. And some people are looking for the way to clear it in order to rid of the "old stuff". And there is no convenient way to do that as for now
Yeah. So the weak solution I found as they mentioned in one of those themes is to change target Tools->Board to any other, try to compile and then return back to your initial Board.
It worked for me.