Skip to content

Git Status Not Refreshing Automatically in NetBeans 26 After File Changes #8691

@codenlogn

Description

@codenlogn

Apache NetBeans version

Apache NetBeans 26

What happened

In NetBeans version 26, the Git integration is no longer automatically detecting file changes. When I edit a file, it doesn’t immediately show as modified (with the usual color or status indicator) in the Projects or Files window. The status only updates after I click the Commit button or perform a manual Git action like Diff.

This issue did not exist in previous versions — Git status updates used to reflect in real-time upon saving changes. I rely on this behavior heavily while working on large PHP projects, and the lack of automatic updates makes it difficult to track modifications, increasing the risk of missing files during commits.

To clarify:

I am using NetBeans for large PHP projects in Windows 11, JDK 24.

Git is properly initialized and working.

Files are being saved correctly.

The issue is consistent across different projects.

File system monitoring seems functional otherwise.

This appears to be a regression in version 26. Please look into whether Git file status change detection has been altered or broken in this release.

Language / Project Type / NetBeans Component

PHP project

How to reproduce

  • Open NetBeans 26.
  • Open an existing PHP project that is already initialized with Git.
  • Open any tracked file in the editor (e.g., a .php, .js, or .html file).
  • Make some changes and save the file.

Observe that:
The file does not show any visual indication of being modified (no blue color or Git badge).
The Git status in the Projects, Files, or Versioning window remains unchanged.
Now, click on Git → Commit or Git → Diff from the menu.

After this manual action, the Git status is refreshed, and the file appears as modified.

This behavior can be reproduced with any Git-tracked file and persists across multiple large PHP projects. It used to work correctly in earlier versions of NetBeans.

Did this work correctly in an earlier version?

Apache NetBeans 24

Operating System

Windows 11

JDK

24

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    git[ci] enable versioning jobkind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions