Skip to content

"Monitoring" doesn't detect changes #3142

@ndrewl

Description

@ndrewl

Description of the Issue

"Monitoring (tail-f)" feature doesn't work when writing to a file without closing it.
It doesn't update the view until file is closed.

Steps to Reproduce the Issue

Instructions are given for python, for simplicity, but it's not specific for python

  1. Open python in interactive mode:
python -i

Then type:

f = open('test.txt', 'w')
  1. Open file 'test.txt' in Notepad++ and click "Monitoring (tail -f)", the "eye" button.
  2. Continue in python session, keeping eye on the notepad++ window:
f.write('hey')
f.flush()
  1. Nothing happens in the Notepad++ (but the message is in file, you can open it with notepad.exe, for example, and check)
  2. Again in python:
f.close()
  1. Now the message appears in the Notepad++

Expected Behavior

Notepad++ should monitor for these changes, even if the writer doesn't close file.

Actual Behavior

Output didn't change, Notepad++ doesn't "see" these updates.

PS:

tail -f actually behaves correctly in this scenario.

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