Author Topic: Find in Files on Workspace only searched 12 files  (Read 155 times)

kniped1

  • Community Member
  • Posts: 12
  • Hero Points: 0
Find in Files on Workspace only searched 12 files
« on: September 13, 2021, 06:06:27 pm »
With Beta 3, when I do a find in files in the workspace, it doesn't find any results. When I turn off filtering, it shows it only searched 12 files, when I have over 2200 files in my workspace. I tried refreshing and retagging the workspace to no avail. The Files -> Workspace tab shows all 2200+ files in the project.
When I do the same search in Beta 2, it works fine.

Quote
Find all "test", Match case, "<Workspace>", "*"
Total found: 0     Matching files: 0     Total files searched: 12

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5957
  • Hero Points: 467
Re: Find in Files on Workspace only searched 12 files
« Reply #1 on: September 13, 2021, 07:03:30 pm »
Please post a picture of the Find and Replace>Find in Files dialog. That way we can see your settings.

kniped1

  • Community Member
  • Posts: 12
  • Hero Points: 0
Re: Find in Files on Workspace only searched 12 files
« Reply #2 on: September 13, 2021, 07:52:50 pm »
See attached

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5957
  • Hero Points: 467
Re: Find in Files on Workspace only searched 12 files
« Reply #3 on: September 13, 2021, 08:15:40 pm »
Can't reproduce this so far (testing on Linux). What happens if you uncheck "List current context"?

Do you have wildcards in the project?  (Project>Project Properties...>Files Tab)

How many files have an occurrence of "test" (your search string)?

I'm testing with a wildcard project but not having any luck reproducing this yet.

kniped1

  • Community Member
  • Posts: 12
  • Hero Points: 0
Re: Find in Files on Workspace only searched 12 files
« Reply #4 on: September 13, 2021, 11:02:44 pm »
Unchecking "list current context" does seem to resolve the issue. With this unchecked, I get the same number of results as Beta 2 listed below.

I am running on Linux (Fedora):
Quote
SlickEdit Pro 2021 (v26.0.0.3 64-bit Qt4)

Serial number: FE81038_BETA
License type: Beta License
License expiration: 2021-10-09 19:00:00
License file: /home/dknipe/slickedit-pro2021beta3/bin/slickedit.lic

Build Date: September 1, 2021
Emulation: CUA

OS: Linux
OS Version: S
Kernel Level: 5.0.16-100.fc28.x86_64
Build Version: #1 SMP Tue May 14 18:22:28 UTC 2019
Processor Architecture: x86_64

X Server Vendor: Fedora Project
Window Manager: Xfwm4
Display manager: /usr/sbin/gdm

Memory: 57% Load, 4045MB/7050MB Virtual
Shell Information: /home/dknipe/slickedit-pro2021beta3/bin/secsh -i
Screen Size: 1920 x 1092

Project Type: Gnuc
Language: .cpp (C/C++)
Encoding: UTF-8, no signature

Installation Directory: /home/dknipe/slickedit-pro2021beta3/
Configuration Directory: /home/dknipe/.slickedit/26.0.0/
Migrated from: /home/dknipe/.slickedit/25.0.2/

In Beta 2, I get the following total results:
Quote
Total found: 17058     Matching files: 1309     Total files searched: 2389

I have two projects in the workspace. Both of them are mostly wildcards. The smaller one has seven wildcard entries for specific file types. The other is much larger and has wildcards for certain file types in specific sub folders. It also has four non-wildcard entries.
« Last Edit: September 13, 2021, 11:08:13 pm by kniped1 »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5957
  • Hero Points: 467
Re: Find in Files on Workspace only searched 12 files
« Reply #5 on: September 14, 2021, 02:44:16 pm »
Reproduced! I was missing one setting. To reproduce this problem, I needed to turn on "Sort Find in Files search results by filename". If you turn this option off, then "List current context" option will work.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5957
  • Hero Points: 467
Re: Find in Files on Workspace only searched 12 files
« Reply #6 on: September 14, 2021, 04:35:10 pm »
Hmm...now I’m not reproducing this. One problem I’m running into is a bug in the dialog restore code where “<Workspace>” is not being restored. I can reproduce the dialog restore bug every time under the right test conditions.

kniped1

  • Community Member
  • Posts: 12
  • Hero Points: 0
Re: Find in Files on Workspace only searched 12 files
« Reply #7 on: September 14, 2021, 05:40:10 pm »
I don't have the sort option enabled. See attached.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5957
  • Hero Points: 467
Re: Find in Files on Workspace only searched 12 files
« Reply #8 on: September 14, 2021, 06:31:08 pm »
Thanks. It's seeming like I was missing the fact the the dialog restore code wasn't working. There must be something else going on here.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5957
  • Hero Points: 467
Re: Find in Files on Workspace only searched 12 files
« Reply #9 on: September 14, 2021, 06:43:57 pm »
Squirmy little bug. Now I know I have reproduced this at least twice (got 0 0 13 twice which is way off). The problem is it only happens once in a while. I'll try adding some debug. Maybe I'll get lucky.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5957
  • Hero Points: 467
Re: Find in Files on Workspace only searched 12 files
« Reply #10 on: September 14, 2021, 07:43:03 pm »
Fixed for beta 4