Recently I’m facing this issue with Katalon 10.4.2, when ever I start a fresh instance of Katalon then it shows this kinda error where it says unexpected token at some line.
But in reality
There is no error on line where it says error is present.
On another line it show error but it is no error - if i insert even a space at some other line and save again the error disappears.
Just close the Katalon and delete
/bin
/Libs
/.metadata/.plugins
and then reopen the project
I guess this will fix the issue
But yes, if you are using any external jar files then you will need to input those jar file again in the lib folder manaully, like if you use jt400 and other.
You’re experiencing a false positive syntax error in Katalon Studio 10.4.2 where:
Errors are reported on incorrect line numbers
The actual code has no syntax issues
Errors disappear after trivial edits (adding a space, saving)
This is a classic IDE parser state synchronization issue rather than an actual code problem. The fact that the error vanishes after making minor changes is a strong indicator of caching or parser state management problems in the IDE.
Root Cause
While the official Katalon Studio 10.4.2 release notes don’t specifically mention this exact issue, the pattern you’re describing is consistent with:
Groovy parser cache issues in the IDE
Syntax highlighting cache problems
File state synchronization issues between the editor and the parser
The release notes for version 10.4.3 (December 22, 2025) do mention several fixes related to execution and UI responsiveness, including fixes for “opening or switching custom keywords causes prolonged loading” and “renaming object or test case folders causes KS to hang,” which suggests parser-related improvements were made in subsequent versions.
Solutions
Solution 1: Clear IDE Cache (Recommended First Step)
Steps:
Close Katalon Studio completely
Navigate to your Katalon workspace directory
Delete the .metadata folder (this contains IDE cache and state)