Author Topic: Slick not noticing when a file is created.  (Read 986 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Slick not noticing when a file is created.
« on: November 23, 2021, 12:56:15 AM »
Normally if I have a file open in slickedit and it is changed externally, Slickedit will reload it automatically.

If I open a file that doesn't exist in Slickedit, then create it externally, Slickedit doesn't notice and will not load it.

Worse: It lets me save over the now existing file without warning.

Repro:

0: CMD.exe: del Foobar.txt
1: CMD.exe: vs.exe Foobar.txt
2: In Slickedit: An empty "foobar.txt" appears.
3: CMD.exe: ECHO "Testing this bug" > Foobar.txt
4: Slickedit: still showing empty file.
5: Slickedit: Type "My new text is here" and SAVE
6: No warnings
7: CMD.exe: Type Foobar.txt -- shows the new contents of the file, and "Testing this bug" is gone.



The real scenario I've hit a few times lately: I've checkout the wrong branch in Git when I open Foobar.txt in slick, then I switch branches - to where Foobar.txt exists and Slick doesn't notice.
« Last Edit: November 23, 2021, 12:57:56 AM by jporkkahtc »

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: Slick not noticing when a file is created.
« Reply #1 on: November 23, 2021, 11:13:44 PM »
Nice catch.  I think I have a fix for this, I need to run with it for a little while to test it.