Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 "Open file in solution" does not notice new files

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
scottbilas Posted - Apr 29 2010 : 01:09:05 AM
If I add a new class to my project (C# class into a csproj) then VAssist does not notice it. In other words, if I go to the Open File in Solution dialog, the new file does not appear there, even after I let it sit for a while to do any background parsing. This is odd, because the Find Symbol dialog stays up to date with whatever symbols are in those new files as I edit them.

The workaround is to close the solution and reopen it. From then on, VAssist finds the files.

Note that Visual Studio's ctrl-, dialog finds the new files just fine.

This is in VS2010 with VAssist #1822, but it has been a problem with VAssist for many versions. I just never got around to reporting it until now. :)
6   L A T E S T    R E P L I E S    (Newest First)
sean Posted - May 07 2010 : 1:21:29 PM
Timeout of some sort does sound plausible. The IDE fires a notification event when files are added to the solution. Maybe the event didn't fire until scc switched to offline mode - so though a file was created, it took awhile for it to be added to the solution.
scottbilas Posted - May 07 2010 : 12:52:56 PM
All files are local. That other problem I reported happened on my workstation, whereas this one was on my laptop. It's the same solution, though. Is there any way that source control could interfere? On my laptop when this occurred, I was offline and so the SCC stuff was all running in the "temporary offline" mode. Given that it eventually noticed the new file, I wonder if there was some kind of timeout that had to occur going on..
sean Posted - May 07 2010 : 12:49:47 PM
The values for those options are the same as I have.

Maybe the problem here might be related to the other "Open file in solution" problem you reported experiencing in http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=9514?

Is this the same solution? Is it located on a network drive? (Not that it should matter, just grasping at straws.)
scottbilas Posted - May 07 2010 : 12:35:30 PM
I had added the class via Add | Class, same as you did. My options are set FALSE for "watch for externally modified files" and TRUE for "parse all files".

I've been trying to repro this and it hasn't happened. Will post back if it happens again and I get more info on it.
sean Posted - Apr 29 2010 : 5:03:08 PM
In a vs2010 multiple project test solution (889 files total), I right-clicked on a project in the solution explorer and selected Add | Class. I typed in the name of a new class. The file opened immediately. I opened OFIS and the new file was listed there. So this doesn't seem to be a generic problem.

How are you adding the new class?

On the Performance page of the VA Options dialog, what are the states of the checkboxes for:
Watch for externally modified files and reparse when necessary.
Parse all files when opening a project.

Maybe capturing a log might indicate to us what the problem is:
http://docs.wholetomato.com?W305
scottbilas Posted - Apr 29 2010 : 01:11:24 AM
Whoop! It did find them eventually. I just didn't wait quite long enough for VAssist to notice the new files.

Can this delay be reduced? I had added the files and it had been at least a few minutes that they did not appear in the Open File in Solution dialog.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000