A simple code syntax error can cause a "compiler timed out or encountered an error" in the bottom status bar and if you click on that the top display shows "There were no compile errors."
This can be reproduced only if:
You have a .ino source file
You have a project.properties file
You are targeting system firmware 0.6.0 or later
You have a syntax error
I used this source for the test:
void setup() {
}
void loop() {
int junk
}
The int junk is obviously missing a semi-colon at the end of the line.
If I remove the project.properties file I get the correct error message:
I can also put the project.properties back file and rename the file testdev.cpp and I get the correct error message. The project.properties file was empty.
The src directory doesn't make a difference; it works the same way if all of the source is in a single directory.
I was building for a Photon and 0.6.2 when I ran this test. It seems to happen for 0.6.0 and later for both Photon and Electron. Switching to 0.5.3 shows the correct error even if you have both a project.properties and a .ino source file.
A simple code syntax error can cause a "compiler timed out or encountered an error" in the bottom status bar and if you click on that the top display shows "There were no compile errors."
This can be reproduced only if:
I used this source for the test:
The int junk is obviously missing a semi-colon at the end of the line.
If I remove the project.properties file I get the correct error message:
I can also put the project.properties back file and rename the file testdev.cpp and I get the correct error message. The project.properties file was empty.
The src directory doesn't make a difference; it works the same way if all of the source is in a single directory.
I was building for a Photon and 0.6.2 when I ran this test. It seems to happen for 0.6.0 and later for both Photon and Electron. Switching to 0.5.3 shows the correct error even if you have both a project.properties and a .ino source file.