code-server: File explorer doesn't show new files created from command line

OS/Web Information

  • Web Browser: Brave
  • Local OS: macOS
  • Remote OS: macOS
  • Remote Architecture: macOS (not M1)
  • code-server --version: 4.0.0 (pre-release)

Steps to Reproduce

  1. launch code-server 4.0.0 pre-release
  2. open Integrated Terminal
  3. create new file: touch hello.txt

Expected

The File Explorer should show the newly created file.

Actual

It doesn’t show.

Logs

N/A

Screenshot

Notes

This issue can be reproduced in VS Code: No

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Ok, strange. Reproduction seems to be more complicated than I thought. I notice that it doesn’t always occur. But when it does, it always does. But then you can solve it by restarting the web app or reloading it in the browser.

I will see under which conditions the problem occurs and will report back.

same problem on 4.0.2, here is the terminal log 😃

[IPC Library: Pty Host] DEBUG ChildProcessMonitor: Has child processes changed true
[IPC Library: Pty Host] TRACE IPty#pid
[IPC Library: Pty Host] TRACE Flow control: Ack 5000 chars (unacknowledged: 283)
[10:59:26] [File Watcher (parcel)] [CHANGED] /Users/george/wd/ls
[10:59:26] [File Watcher (parcel)]  >> normalized [CHANGED] /Users/george/wd/ls
[IPC Library: Pty Host] DEBUG ChildProcessMonitor: Has child processes changed false
[IPC Library: Pty Host] TRACE IPty#pid
[IPC Library: Pty Host] TRACE Flow control: Ack 5000 chars (unacknowledged: 579)
[IPC Library: Pty Host] TRACE Flow control: Ack 5000 chars (unacknowledged: 698)
[IPC Library: Pty Host] TRACE Flow control: Ack 5000 chars (unacknowledged: 2475)
[IPC Library: Pty Host] TRACE IPty#pid
[IPC Library: Pty Host] TRACE Flow control: Ack 5000 chars (unacknowledged: 58)
[IPC Library: Pty Host] TRACE IPty#pid
[10:59:39] [File Watcher (parcel)] [CHANGED] /Users/george/wd/ls
[10:59:39] [File Watcher (parcel)]  >> normalized [CHANGED] /Users/george/wd/ls
[IPC Library: Pty Host] TRACE IPty#pid
[2022-02-18T02:59:49.714Z] debug 2 active connections
[2022-02-18T02:59:49.714Z] trace heartbeat
[10:59:54] [File Watcher (parcel)] [DELETED] /Users/george/wd/ls
[10:59:54] [File Watcher (parcel)] [DELETED] /Users/george/wd/sfsdaf
[10:59:54] [File Watcher (parcel)]  >> normalized [DELETED] /Users/george/wd/ls
[10:59:54] [File Watcher (parcel)]  >> normalized [DELETED] /Users/george/wd/sfsdaf
[IPC Library: Pty Host] TRACE Flow control: Ack 5000 chars (unacknowledged: 23)

I have the same problem with Explorer on 4.0.2 and in addition, changes to an open file are also not immediately displayed when I have made changes to it via the terminal. This complicates the work sometimes considerably.

The cause is probably the same.

Thanks for reporting! We’ll see if we can reproduce!

I feel like it must be in the file watcher somewhere, I think maybe the first thing would be to make sure it is picking up changes in the workspace.

Oh yeah I noticed this too, I have to keep refreshing the explorer.