Skip to content

Isolate optional Kotlin run markers to preserve Java error highlighting - #185

Draft
maxandersen with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-jbang-plugin-error-highlighting
Draft

maxandersen with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-jbang-plugin-error-highlighting

Conversation

Copilot AI commented Oct 8, 2026 •

Copy link
Copy Markdown

Installing JBang can prevent normal Java modules from highlighting unresolved methods in IntelliJ 2026.2.3, alongside a reported line-marker class-loading exception.

  • Dependency isolation: Move Kotlin PSI references into JBangKotlinRunLineMarker, registered only through the optional Kotlin descriptor. Keep Java/Groovy markers independent of Kotlin.
  • Behavior preservation: Retain shared directive/shebang handling and Kotlin class/main gutter markers.
  • Regression coverage: Add unresolved-method highlighting and Kotlin-unavailable classloader tests; strengthen Kotlin declaration gutter assertions.
  • Changelog: Document the highlighting fix under Unreleased.

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • ai-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cf24d4af-58ab-45d7-92b6-917a68084fba

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Co-authored-by: maxandersen <54129+maxandersen@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix JBang plugin disabling error highlighting in Java modules Isolate optional Kotlin run markers to preserve Java error highlighting Oct 8, 2026
Copilot AI requested a review from maxandersen October 8, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[IntelliJ 2026.2.3] Plugin disables error highlighting for normal Java modules

2 participants