SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: rowbearto on October 19, 2021, 03:04:50 PM

Title: How to see list of files used in wildcard project?
Post by: rowbearto 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?
Title: Re: How to see list of files used in wildcard project?
Post by: rowbearto 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)">
Title: Re: How to see list of files used in wildcard project?
Post by: Clark 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
Title: Re: How to see list of files used in wildcard project?
Post by: rowbearto 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.
Title: Re: How to see list of files used in wildcard project?
Post by: rowbearto 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.
Title: Re: How to see list of files used in wildcard project?
Post by: Clark on October 19, 2021, 05:49:02 PM
Thanks. We will look into this
Title: Re: How to see list of files used in wildcard project?
Post by: Clark 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.