gepd / Deviot

Sublime Text plugin for IoT development based in PlatformIO ecosystem (Arduino IDE)
Apache License 2.0
307 stars 56 forks source link

Sketch won't compile if current buffer is a header (.h) #202

Closed John-Titor closed 6 years ago

John-Titor commented 6 years ago

If you have a sketch containing a .h file, and you ask Deviot to build your sketch while that file is current, building fails with:

[ Deviot 2.1.6 ] Starting... 20:52:57 filename.h is not an IoT File

It works correctly if any .cpp or .ino file in the sketch is selected.

m-chichikalov commented 6 years ago

I saw some strange behavior when .cpp file of library was chosen (was an active in ST). It starts create the pio folder structure inside 'lib' folder.

gepd commented 6 years ago

I've added the h extension to the list of accepted files, you shouldn't have problem now

John-Titor commented 6 years ago

Seems to work, thanks!