kimmyh51
13 years agoContributor
Better syntax reporting (pls comment if u want 2)
Hi - please excuse the 'txt spk' in the title, it was the only way to say everything I wanted to say within the 80 char limit
I use C# in test complete (so dont get the pop up syntax error dialogue that I think is available in some of the other scripting languages - but not sure that would make any difference anyway).
The problem I find with the code editor is that if I leave out a bracket, or put one in the wrong place or quotes - something little like that I can spend ages looking for it as 9 times out of ten the error (little red cross) is on a completely different line, and often completely different script function to where I have left out the bracket or quote.
The error message is almost always 'object expected' which basically useless in letting me know what I have done wrong, or where to start looking.
The worst one is when I have accidentally put in one too many } or not enough in a piece of code with lots of if statements etc.
I also have found that many times a script will execute and then fail with an object expected error, on a really basic syntax error - something Id expect to be picked up before it ever gets to executing the code.
Are there any plans to improve the error reporting on the code editor to provide some clues to those of us who are looking for a bracket or quote shaped 'needle' in a bracket, quote and parenthesis shaped 'haystack?' :)
Hopefully there will be other people who would like this as well who might post and bump it up the priority list...?
thanks
I use C# in test complete (so dont get the pop up syntax error dialogue that I think is available in some of the other scripting languages - but not sure that would make any difference anyway).
The problem I find with the code editor is that if I leave out a bracket, or put one in the wrong place or quotes - something little like that I can spend ages looking for it as 9 times out of ten the error (little red cross) is on a completely different line, and often completely different script function to where I have left out the bracket or quote.
The error message is almost always 'object expected' which basically useless in letting me know what I have done wrong, or where to start looking.
The worst one is when I have accidentally put in one too many } or not enough in a piece of code with lots of if statements etc.
I also have found that many times a script will execute and then fail with an object expected error, on a really basic syntax error - something Id expect to be picked up before it ever gets to executing the code.
Are there any plans to improve the error reporting on the code editor to provide some clues to those of us who are looking for a bracket or quote shaped 'needle' in a bracket, quote and parenthesis shaped 'haystack?' :)
Hopefully there will be other people who would like this as well who might post and bump it up the priority list...?
thanks