Skip to content

[2735.1] StringIndexOutOfBoundsException in JunieStructureServiceImpl on PyCharm 2026.2 #94

Description

Environment

  • Plugin version: 2735.1
  • IDE: PyCharm 2026.2 (build PY-262.8665.369)
  • OS: Linux (CachyOS / Arch-based)

Description
After updating to PyCharm 2026.*, Junie plugin produces repeated errors every few seconds in the log, spamming STDERR with StringIndexOutOfBoundsException and EDT threading errors.

Error 1 - StringIndexOutOfBoundsException (repeated every ~5s)

java.lang.StringIndexOutOfBoundsException: Range [49, 16) out of bounds for length 16

Triggered by JunieStructureServiceImpl when analyzing Python files (e.g. settings.py, test_views.py). The plugin tries to extract a character range that does not exist in the source string.

Error 2 - EDT threading violation

Service error on JunieStructureService.getFileStructure: Error in getFileStructure: Access is allowed from Event Dispatch Thread (EDT) only
Service error on JunieStructureService.getFileImports: Error in getFileImports: Access is allowed from Event Dispatch Thread (EDT) only

Junie calls file structure/import operations from a non-EDT thread.

Impact
The errors repeat every few seconds and may block the code editing thread. Uninstall/reinstall of the plugin does not resolve the issue.

Steps to reproduce

  1. Open a Python project in PyCharm 2026.2 with Junie installed (v2735.1)
  2. Open any Python file that has imports or structure
  3. Observe repeated errors in the log every few seconds

Expected behavior
Junie should analyze file structure without exceptions and respect EDT threading rules.

Actual behavior
Repeated StringIndexOutOfBoundsException and EDT violations spam the log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions