# Unexpected Token error on starting fresh instance of Katalon

**URL:** <https://forum.katalon.com/t/unexpected-token-error-on-starting-fresh-instance-of-katalon/188209>\
**Category:** Web Testing\
**Created:** [February 12, 2026, 12:40pm UTC](https://forum.katalon.com/t/unexpected-token-error-on-starting-fresh-instance-of-katalon/188209 "2026-02-12T12:40:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Monty\_Bagati](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/monty_bagati/32/33047_2.png) [@Monty\_Bagati](https://forum.katalon.com/u/Monty_Bagati)\
**Post date:** [February 12, 2026, 2:36pm UTC](https://forum.katalon.com/t/unexpected-token-error-on-starting-fresh-instance-of-katalon/188209/4 "2026-02-12T14:36:28Z")

</div>

## Problem Analysis

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:

1. **Groovy parser cache issues** in the IDE
2. **Syntax highlighting cache problems**
3. **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:**

1. **Close Katalon Studio completely**
2. Navigate to your Katalon workspace directory
3. Delete the `.metadata` folder (this contains IDE cache and state)
  - **Windows** : `C:\Users\[YourUsername]\[WorkspaceName]\.metadata`
  - **Mac** : `/Users/[YourUsername]/[WorkspaceName]/.metadata`
  - **Linux** : `/home/[YourUsername]/[WorkspaceName]/.metadata`

4. Restart Katalon Studio
5. Reopen your project

**Why this works:** This clears all cached parser state and forces the IDE to re-parse your files fresh.

* * *

### **Solution 2: Clean and Rebuild Project**

**Steps:**

1. In Katalon Studio, go to **Project \> Clean**
2. Select your project and click **Clean**
3. Wait for the rebuild to complete
4. Reopen the affected test case or script

* * *

### **Solution 3: Invalidate IDE Caches**

**Steps:**

1. Close Katalon Studio
2. Navigate to your Katalon installation directory
3. Delete the `configuration` folder (contains IDE configuration cache)
4. Restart Katalon Studio

* * *

### **Solution 4: Update to Latest Version**

Since you’re on 10.4.2, consider upgrading to **10.4.3** (released December 22, 2025), which includes multiple fixes for:

- Issues where “opening or switching custom keywords causes prolonged loading”
- Performance improvements in file handling and parsing
- General stability enhancements

* * *

## Key Considerations

**Why This Happens:**

- The Groovy parser in Katalon Studio sometimes caches incorrect state
- When you make a trivial change (like adding a space), it forces the parser to re-evaluate the entire file
- This re-evaluation clears the cached error state

**Best Practices to Prevent This:**

1. Regularly clean your project cache
2. Save files frequently (but this shouldn’t be necessary for syntax validation)
3. Keep Katalon Studio updated to the latest patch version
4. Avoid having multiple instances of Katalon Studio open simultaneously

* * *

## References

- [Katalon Studio Release Notes: Version 10.x](https://docs.katalon.com/katalon-studio/release-notes/katalon-studio-release-notes-version-10.x) - Official release notes showing fixes in 10.4.3
- [Katalon Community Forum - Unexpected Token Issues](https://forum.katalon.com/t/unexpected-token/28107) - Community discussions on similar syntax errors
- [Stack Overflow - Katalon Studio Cache Issues](https://stackoverflow.com/questions/50531015/katalon-studio-creating-element-with-webdriver-not-recognised-when-used-in-javas) - Discussion on clearing IDE cache

---

_[View the full topic](https://forum.katalon.com/t/unexpected-token-error-on-starting-fresh-instance-of-katalon/188209)._
