Author Topic: New files in my project dont get auto added (atleast not auto tagged)  (Read 3641 times)

pagupta

  • Community Member
  • Posts: 30
  • Hero Points: 1
I have SlickEdit 2012 (v17.0.3.0 64-bit)
--------------------------

In the Project Properties --> File Tab:

I add a recursive tree as :

Recursive , C:\projects\foo\*.*

I thought if I do that, if there a a new file under that path e.g. C:\projects\foo\bar\xyz.cpp , slick edit would automatically pick it up.

However I don't see that happening (as the contents of xyz.cpp don't get tagged).

I can close slick edit, delete the .vtg file , and then launch slick edit and then it auto-tags the new file.

Is there a way I can invoke the same effect without having to manually delete the .vtg file? Maybe something I can run from slick edit to say "re-evaluate all file and update tag"
« Last Edit: August 29, 2014, 11:03:31 PM by pagupta »

Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: New files in my project dont get auto added (atleast not auto tagged)
« Reply #1 on: September 03, 2014, 12:20:40 PM »
How do you know it hasn't tagged the file?

You can go to tools => tag files, select your tag file (the workspace tag file), then inspect which files are in the tag file.  You can click "rebuild tag file" to rebuild.

kniped

  • Junior Community Member
  • Posts: 6
  • Hero Points: 0
Re: New files in my project dont get auto added (atleast not auto tagged)
« Reply #2 on: September 03, 2014, 04:44:13 PM »
Did you by chance not select the "Wildcard" option when you added your tree?   

pagupta

  • Community Member
  • Posts: 30
  • Hero Points: 1
Re: New files in my project dont get auto added (atleast not auto tagged)
« Reply #3 on: September 03, 2014, 11:29:43 PM »
The "rebuild tag file" doesn't seem to help. Yes my directory is added with the 'wildcard' option.

My project has 4000+ file though. Could some maximums be preventing slick edit to stop picking up the new files?

Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: New files in my project dont get auto added (atleast not auto tagged)
« Reply #4 on: September 04, 2014, 01:34:55 PM »
According to the help file, the wildcard option means slick scans for new files when it starts, so maybe that's why restarting slick makes it work.
There's a macro here that might be useful
http://community.slickedit.com/index.php/topic,4697.0.html

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6866
  • Hero Points: 528
Re: New files in my project dont get auto added (atleast not auto tagged)
« Reply #5 on: September 09, 2014, 12:37:45 PM »
I have SlickEdit 2012 (v17.0.3.0 64-bit)
--------------------------

In the Project Properties --> File Tab:

I add a recursive tree as :

Recursive , C:\projects\foo\*.*

I thought if I do that, if there a a new file under that path e.g. C:\projects\foo\bar\xyz.cpp , slick edit would automatically pick it up.

However I don't see that happening (as the contents of xyz.cpp don't get tagged).

I can close slick edit, delete the .vtg file , and then launch slick edit and then it auto-tags the new file.

Is there a way I can invoke the same effect without having to manually delete the .vtg file? Maybe something I can run from slick edit to say "re-evaluate all file and update tag"

To refresh the files for a wildcard, use Project>Refresh.