Author Topic: How to see list of files used in wildcard project?  (Read 227 times)

rowbearto

  • Senior Community Member
  • Posts: 1999
  • Hero Points: 123
How to see list of files used in wildcard project?
« on: October 19, 2021, 03:04:50 pm »
When I create a wildcard project is the list of files that are found/included in the project available somewhere in a text file? I'd like to be able to view this information in a text file so I can search, easily browse it, etc.

Also is there a way to find out how many source files are in the project as a result of the wildcard searching?

rowbearto

  • Senior Community Member
  • Posts: 1999
  • Hero Points: 123
Re: How to see list of files used in wildcard project?
« Reply #1 on: October 19, 2021, 03:18:12 pm »
I remember Clark told me in another post that I can't find that when loading a wildcard project that all the files in the project are cached in a file so that a new scan doesn't need to happen when loading a new project for the first time.

But I can't find that cache? Is it supposed to be in the .vpwhistu file? I can't find it there? Or is it in the .vtg file?

In my workspace I store the tag file in another directory, and I see the .vpwhistu file goes there too. Don't know if this makes a difference? Originally when I had the .vpwhistu in default directory I thought I saw the list there, but I don't see it anymore when I have a different tag directory?

My .vpw has this line in it to tell it where to store the tag file:

Code: [Select]
<Workspace Version="10.0" VendorName="SlickEdit" TagFileDir="/export/sim/%(USER)-se/%(last-path 3 %wp)">

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6127
  • Hero Points: 470
Re: How to see list of files used in wildcard project?
« Reply #2 on: October 19, 2021, 04:39:36 pm »
The vpwhist file should have a [WildcardCache] section.

Also, the Tag file will show all the files. Tools>Tag Files>Workspace and Project Tag files. Although, you can copes/paste them out. There is a listvtg tool that will list all the files in a tag file.

Code: [Select]
listvtg -files tagfile.vtg

rowbearto

  • Senior Community Member
  • Posts: 1999
  • Hero Points: 123
Re: How to see list of files used in wildcard project?
« Reply #3 on: October 19, 2021, 05:33:58 pm »
The [WildCardCache] is not there when I change the location of my tagfile in my .vpw as mentioned in an earlier post by putting into my .vpw:

Code: [Select]
<Workspace Version="10.0" VendorName="SlickEdit" TagFileDir="/export/sim/%(USER)-se/%(last-path 3 %wp)">
Additionally when changing my tag file location this way the listvtg fails:

Code: [Select]
$ ./listvtg /export/sim/rbresali-se/git/rbresali-mdt_demo/slickopt/mdt.vtg
listvtg: database open error status = -3

Seems to be some bugs in SlickEdit when TagFileDir is used in the vpw file.

rowbearto

  • Senior Community Member
  • Posts: 1999
  • Hero Points: 123
Re: How to see list of files used in wildcard project?
« Reply #4 on: October 19, 2021, 05:37:26 pm »
Forgot to say when I don't use TagFileDir in my .vpw then I do see [WildCardCache] in my .vpwhistu and listvtg does work.

Only when I set the TagFileDir do both of these fail.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6127
  • Hero Points: 470
Re: How to see list of files used in wildcard project?
« Reply #5 on: October 19, 2021, 05:49:02 pm »
Thanks. We will look into this

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6127
  • Hero Points: 470
Re: How to see list of files used in wildcard project?
« Reply #6 on: October 21, 2021, 01:20:56 pm »
I could not reproduce the listvtg issue. It looks like it's returning access denied. Maybe an instance of SlickEdit is writing to that tag file. In that case, listvtg would not be able to open the file (SlickEdit uses file locking).

There is a bug with the WildcardCache not getting written if you set a tag file directory. This will be fixed in 26.0.1. Unfortunately, there's no way to hot fix this.