Skip to content

Diff is not shown for the first item in Git panel #9752

Open

Description

@PavelTurk

Apache NetBeans version

Apache NetBeans 31

What happened

When the Git panel is opened, the diff is not displayed for the first item until another item is opened or Refresh Statuses is clicked.

Language / Project Type / NetBeans Component

Java Maven Project with JPMS modules

How to reproduce

  1. Close the Git panel, leaving only the Projects panel open.
  2. Select a package containing modified files, then right-click and choose Git → Show Changes. The Git panel opens.
  3. Double-click the first item. Nothing happens.
  4. Double-click the second item. The diff is displayed.
  5. Double-click the first item again. The diff is displayed.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Ubuntu 20.04

JDK

openjdk version "27.0.1.0.2" 2026-10-21

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

Activity

  1. added
    kind:bug
    needs:triage
    on Oct 27, 2026
  2. mbien commented on Oct 27, 2026

    @mbien
    Member

    Double-click the first item. Nothing happens.

    is the first item a removed file?

  3. added
    git
    on Oct 27, 2026
  4. PavelTurk commented on Oct 27, 2026

    @PavelTurk
    Author

    @mbien

    is the first item a removed file?

    No.

  5. mbien commented on Oct 27, 2026

    @mbien
    Member

    so you have a package with two changed files and when you open the "show changes" view, double clicking the first file doesn't open the diff?

    it does work fine for me, unless the change was a deletion of course.

    Image
  6. PavelTurk commented on Oct 27, 2026

    @PavelTurk
    Author

    @mbien Yes, you reproduced it correctly. The problem is that it works inconsistently. Please test it in real-world projects with actual files. You’ll see that it fails to work in most cases.

  7. PavelTurk commented on Oct 27, 2026

    @PavelTurk
    Author

    @mbien Perhaps the problem is related to the file being modified externally (for example, by an AI agent), since I run into this specifically during review after Claude.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Editorgitkind:bugneeds:triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions