microsoft / vscode-arduino

Visual Studio Code extension for Arduino
Other
1.17k stars 223 forks source link

#include not working in Arduino_TensorFlowLite examples #1066

Open adiazulay opened 4 years ago

adiazulay commented 4 years ago

I'm running into an error when I try to upload the magic_wand example from the Arduino_TensorFlowLite library.

Whenever I try to upload the example I get the error below:

accelerometer_handler.h:21:10: fatal error: tensorflow/lite/c/c_api_internal.h: No such file or directory

 #include "tensorflow/lite/c/c_api_internal.h"

          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

exit status 1

The error is for one of the additional .h files that is in the same folder as the .ino file.

If I open the example in the Arduino IDE it compiles and uploads without an issue.

Specs: Windows 10 Arduino 1.8.12 VS Code 1.46.1

adiazulay commented 4 years ago

I was able to resolve the problem by deleting all the copies of the generate example. The problem may be with how the extension handles creating multiple copies of the sample example.