Author Topic: B3: issue with directory view and project wildcard  (Read 1195 times)

IkerAriz

  • Senior Community Member
  • Posts: 148
  • Hero Points: 6
B3: issue with directory view and project wildcard
« on: September 13, 2019, 12:28:15 pm »
When making changes to the content of a directory tree (eg, using git) that's been added to my SE project with a "*" wildcard the SE project pane will sometimes "fall out of sync" (I use "directory view"). Anecdotally, removal of one file in the tree results in the vanishing of a different directory in the project's directory view. If I hit "refresh" in the project pane the missing items reappear. I haven't yet confirmed if the missing files problem extends to searching in project files or is limited to just the directory view.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: B3: issue with directory view and project wildcard
« Reply #1 on: September 13, 2019, 12:34:12 pm »
I will take a look to see if there is an issue with Directory View and wildcard background refresh.  Could it be possible that maybe the missing directory got re-sorted in the view?  Any additional info may be helpful in tracking it down.

Also note, that if a the wildcard tree gets refreshed and a file is removed and the folder has no more matching files, it will not be displayed.  It is still tracked, but there isn't an option to display empty folders.
« Last Edit: September 13, 2019, 01:08:39 pm by Lee »

IkerAriz

  • Senior Community Member
  • Posts: 148
  • Hero Points: 6
Re: B3: issue with directory view and project wildcard
« Reply #2 on: September 13, 2019, 01:39:23 pm »
The changes were only to files within directories and at no point were the disappearing directories ever empty. Also, I think the directories that disappeared were sometimes unrelated to the files that were manipulated (eg, make a change to content of directory "/a/b/c/" and directory "/a/f/x/" disappeared)... will try to confirm when it next happens.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: B3: issue with directory view and project wildcard
« Reply #3 on: September 13, 2019, 02:25:42 pm »
Could you confirm which platform you are running on?  I have discovered one issue with folder deletion not handled in some cases, I'll continue looking for any other issue.

IkerAriz

  • Senior Community Member
  • Posts: 148
  • Hero Points: 6
Re: B3: issue with directory view and project wildcard
« Reply #4 on: September 13, 2019, 03:18:08 pm »
OS: Linux
OS Version: Ubuntu 18.04.3 LTS
Kernel Level: 4.15.0-51-generic
Build Version: #55-Ubuntu SMP Wed May 15 14:27:21 UTC 2019
Processor Architecture: x86_64

X Server Vendor: The X.Org Foundation
Window Manager: xubuntu
Display manager: /usr/sbin/lightdm

IkerAriz

  • Senior Community Member
  • Posts: 148
  • Hero Points: 6
Re: B3: issue with directory view and project wildcard
« Reply #5 on: September 20, 2019, 07:30:33 pm »
Hi Lee,

Any news on this issue?

Iker

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: B3: issue with directory view and project wildcard
« Reply #6 on: September 20, 2019, 11:17:40 pm »
Beta 4 fixes some issues where it was incorrectly doing some folder removal. Hoping the extra error checking added will help. I am in process of implementing logging to track file additions and removal for debugging purposes in case there are outstanding issues.  Are the project files on a local file system or remote/network file system?

IkerAriz

  • Senior Community Member
  • Posts: 148
  • Hero Points: 6
Re: B3: issue with directory view and project wildcard
« Reply #7 on: September 20, 2019, 11:52:40 pm »
Local files only.

I'll follow up with B4.

Thanks,
Iker

IkerAriz

  • Senior Community Member
  • Posts: 148
  • Hero Points: 6
Re: B3: issue with directory view and project wildcard
« Reply #8 on: September 21, 2019, 07:43:36 pm »
Some more details: when files disappear from the Projects pane their tags appear to go with them. For example, if a cpp file disappears the function definitions within the file are no longer accessible via "Go to Definition".


Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: B3: issue with directory view and project wildcard
« Reply #9 on: September 21, 2019, 08:12:58 pm »
That part is working correctly then.  If the background cache picks up a change it is supposed to refresh both project windows and tag files.  If there’s is still an issue, then it misidentifying a folder as being removed when it shouldn’t.   I’ll see how soon I can get you a custom build with logging enabled to see if we can track it down.  Are there any symbolic links anywhere in the path?

IkerAriz

  • Senior Community Member
  • Posts: 148
  • Hero Points: 6
Re: B3: issue with directory view and project wildcard
« Reply #10 on: September 21, 2019, 10:53:54 pm »
Nay - no symlinks in paths to affected files and directories.

Iker

SlickEdit Support

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 292
  • Hero Points: 26
Re: B3: issue with directory view and project wildcard
« Reply #11 on: September 24, 2019, 02:43:51 pm »
PM sent.

IkerAriz

  • Senior Community Member
  • Posts: 148
  • Hero Points: 6
Re: B3: issue with directory view and project wildcard
« Reply #12 on: September 24, 2019, 04:02:17 pm »
Thanks - trying it now. Is logging enabled by default? Where do the logs get written?

Iker

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: B3: issue with directory view and project wildcard
« Reply #13 on: September 24, 2019, 04:10:59 pm »
You'll need to enable the logs, using Macro > Set Macro Variable..., and variable def_workspace_cache_enable_logging, set value to 1 (or non-zero).  The log file is written to your config directory /logs/wcache.log.  Let me know if you see any continued issues, I have made some adjustments to the code but need to be sure.   

texasaggie97

  • Community Member
  • Posts: 27
  • Hero Points: 4
Re: B3: issue with directory view and project wildcard
« Reply #14 on: September 25, 2019, 03:46:36 pm »
I am also seeing something similar with B4 on Windows.

I use git as source control so files are changing regularly as I change branches.
After changing the branch, occasionally but not always, some of the files will disappear from the view.
If I click "refresh" on the project, the files reappear.

All files are local, on an NTFS disk, if it matters.

Any other information that would be useful? Is this different enough from the issue in this thread I should start another one?