After a frustrating hour, I discovered that
Serial.print(" ); [note the missing closing quote]
causes the compiler to hang with no useful error message.
Isaac
After a frustrating hour, I discovered that
Serial.print(" ); [note the missing closing quote]
causes the compiler to hang with no useful error message.
Isaac
How about posting your entire sketch, or even better, the smallest sketch that you can manage that still exhibits the problem. Also tell us which version of Arduino you're using. Difficult to duplicate or diagnose the problem otherwise.
BTW, I tried the very simple sketch below in both Arduino 0022 and 1.0, and received the same message in both: missing terminating " character.
void setup(void)
{
Serial.begin(115200);
Serial.print(" );
}
void loop(void)
{
}
isaacw:
causes the compiler to hang with no useful error message.
There is something else causing your issue. I have already gotten error messages with a missing quote, including the sample I just tried:
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.print(" );
}
Guys, I think OP is just venting, having found his mistake.
I tried your tests as well, the error message even tells you which function the error is in, so its not a totally useless message.
In IDE 1.0, it even appears to highlight the line with an issue.
CrossRoads:
Guys, I think OP is just venting, having found his mistake.
Right, I wondered about that. OTOH if the compiler really did hang, I thought that might be of some interest.
CrossRoads:
Guys, I think OP is just venting, having found his mistake.
Yes, I'm sure he was venting. However, the concern is that the line expected to cause the "lock up" probably isn't the only issue. If we could see the rest of the code (and possibly compile it ourselves) a suggestion to the actual cause could be given.
CrossRoads:
I tried your tests as well, the error message even tells you which function the error is in, so its not a totally useless message.
In IDE 1.0, it even appears to highlight the line with an issue.
That's why we are asking to see his full code. The OP reported that no error message was given.
No no, he said
"no useful error message"
which is totally different. Not useful to him, but certainly usefel to us.
Touché...
Ah! Fitting, for a fencer ...