particle-iot-archived / particle-dev

Particle Dev package for Atom
https://www.particle.io/dev
Apache License 2.0
183 stars 30 forks source link

Compiler timed out or encountered an error #213

Closed rickkas7 closed 7 years ago

rickkas7 commented 7 years ago

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:

void setup() {

}

void loop() {
    int junk
}

The int junk is obviously missing a semi-colon at the end of the line.

incorrect_error

If I remove the project.properties file I get the correct error message:

correct_error

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.

suda commented 7 years ago

Thanks for the detailed report! This seems to be a duplicate of #211