CloudPebble: #include <pebble.h>, not found!

I have this line at the top of main.c, copied from one of the example projects:

#include <pebble.h>

I get a warning in the CloudPebble IDE (a tooltip when hovering over the line of code):

gabbro, flint: 'pebble.h' file not found

This makes all the lines with pebble.h-specific types highlight red, with a similar “gabbro, flint” tooltip.

Interestingly, this does not affect the build, as I can build and emulate my project on the Gabbro and Flint targets without an issue.

Is there a disconnect between what the compiler is including, and what the IDE thinks exists for these platforms? Having all the pebble-specific lines highlighted red is not ideal.

1 Like

Yes the syntax highlighting and static errors are kinda broken. I’ve also seen it highlight completely blank lines in red :sweat_smile: does restarting Cloudpebble work? Like closing the tab and reopening?

2 Likes

Unfortunately, closing and re-opening the tab did not fix it.

My current workaround is to disable Flint and Gabbro while I’m deep in the weeds developing, and only re-enabling right before building to test on those platforms. Thankfully, it’s only the Round 2 that has anything meaningfully different for my use case (a large, color, round screen), and those differences are easy dealt with by not hard-coding the geometry.

How can I tell the CloudPebble IDE where the <pebble.h> file is? It’s not in the App Source or Resources sections?

1 Like

I don’t think there’s a way to do that in Cloudpebble.

2 Likes