I am using the local IDE and all used to be fine. Recently however I started getting the above message. Four out of five times I try to compile! This is not making getting things working easy as it is a lottery as to whether the code will actually compile or not.
I am on a good connection so I am pretty sure it is not my network or the computer itself. That leaves you guys, do you have a problem with your system? If not have you go any idea what is causing this to happen?
The compiler issue seems to be completely unrelated to how many lines of code there are in the file. For example, I tried again this morning with a very simple and short 10-line program. It’ still hangs up.
From a user perspective, it seems to be a problem related to communicating with the cloud compile service - not a program file issue.
I can check the logs. Just add a file to your project named 7cc36407-c593-41c3-beb6-6455bcf2c714.cpp so I can find which build is yours. Just build your project until it fails, then stop building and let me know and I’ll check the last build with that file in it.
@jasonpecor, note that Particle.variable() needs to be declared only once in setup() and not called repeatedly in loop(). In the Particle.publish() line, you are missing the TTL argument:
Particle.publish("data-updated", 60, PRIVATE);
You may also want to not block loop() by using a millis() delay, like this:
unsigned long delayIt = 0;
void loop() {
if (millis() - delayIt >= 10000) { // This will start after 10secs from reset
delayIt = millis();
data = random(100, 500);
Particle.publish("data-updated", 60, PRIVATE);
}
}
Interesting. I can’t find the unique file in the build logs, so it appears to be timing out before it gets to the build farm. Are you able to hit other API endpoints from Dev? Like is the Device selector working?