"There are errors in the script. Please fix before executing." from comment


#1

Operating System Windows 10

Katalon Studio Version 5.10.1

Katalon Studio gives a popup error “There are errors in the script. Please fix before executing.” if you have a line like this in your script:

String cat //comment

Meanwhile these work fine:
String cat="" //comment

String cat
//comment

String cat; //comment

This issue was a huge pain cause it doesn’t highlight what line is causing it. Took me quite a while to figure out.


#2

And how do you fix it?
Did you just simply remove the comments?
Did you find a way to keep them?

Pedro


#3

I moved my comments to their own separate lines. But putting a semicolon in the middle also works. It’s not too bad to work around if you can figure out what line is causing it.