Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Searches searching where maybe they shouldn't (Read 1953 times)
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Searches searching where maybe they shouldn't
May 22nd, 2022 at 12:02pm
Print Post  
When searching for a function (via CTRL-F and Current Project) the search goes into the .map files which are part of the build process, not part of my project.

I'm sure this didn't used to happen although it has been happening now for some time.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Searches searching where maybe they shouldn't
Reply #1 - May 22nd, 2022 at 3:57pm
Print Post  
Agree, would not expect vs to do that.

Please zip and email your .vcxproj file with link to this post thanks
  
Back to top
WWW  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Searches searching where maybe they shouldn't
Reply #2 - May 26th, 2022 at 1:04pm
Print Post  
Thanks for providing the VCXPROJ File.

Would it be possible to ZIP and email your entire solution so we can investigate this more fully?  (or at least the SLN file).

If you can also enable the options at the top of the page and send a full build log after running Build > Clean solution it will also help.

Finally, for the avoidance of doubt, can you provide an example function you were searching for, and confirm if this was using the F12 navigation, or using Ctrl+Shift+F?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Searches searching where maybe they shouldn't
Reply #3 - Jun 26th, 2022 at 8:22pm
Print Post  
Did you reolve this? 

After re-reading it sounds like you might have switched on copy build output to intermediate and then included the .map files into the solution? The Visual Studio "Find in Files" looks through the VS solution fo "included" files, does not know about the build process. 

If that is not the issue then there is a "filter" textbox on the search window that accepts a list of included or exluded file extensions that the search will make use of.
  
Back to top
WWW  
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: Searches searching where maybe they shouldn't
Reply #4 - Jun 27th, 2022 at 4:13pm
Print Post  
I did send everything but from a different email as it was too large for my regular email.


I hadn't knowingly switched on the copy build but I checked and it was on so I've turned it off.

Clean solution didn't clean up the map files so I manually deleted them and re-built.
Now the search works correctly.

Seems like it's fixed Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Searches searching where maybe they shouldn't
Reply #5 - Jun 27th, 2022 at 4:17pm
Print Post  
Great VS should still not have searched the files if they are not tagged into the solution... 

On the "Find in Files" dialog you do have "Entire Solution" selected and not "Current Directory"? The Current Direcory option will search the disk and ignore the solution. That would certainly cause the problem.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Searches searching where maybe they shouldn't
Reply #6 - Jun 28th, 2022 at 1:19pm
Print Post  
I forgot how the find works  Smiley You might have the Misc checkbox checked. See the attached example of how to exclude files from misc.

  

Please Register or Login to the Forum to see File Attachments
Back to top
WWW  
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Re: Searches searching where maybe they shouldn't
Reply #7 - Jun 29th, 2022 at 5:22am
Print Post  
I always use Quick find (CTRL-F) to do searches.
Checking the full Find and Replace Entire solution was selected and the miscellaneous box was ticked - now unticked!
I guess these are default settings.
In Quick find the option of 'Look in' is available so I do use that. 
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Searches searching where maybe they shouldn't
Reply #8 - Jul 8th, 2022 at 10:30pm
Print Post  
Yes it can be confusing. 

I tend to use the quick search only for current document and use the CTRL+F for project or solution search. Thats because I get tired of changing between current doc and solution Smiley

If you want to see the build near the project I suggest the solution (.sln) is placed in a parent folder to the project folder. It would then make sense to change the projects's "Intermediate folder" to "solution_folder\my_builds" or a.n.o. VS has a $macro property for the solution folder therefore it is easy to config without needing to hard code a physical path.

Keeping the build results aways from the project sources will also prevent the arduino ide from being confused if you attempt to build using it.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint