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" Dialog list *all* 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
jioltbotn Posted - Feb 05 2014 : 7:43:34 PM
I've made the changes listed in this post (http://forums.wholetomato.com/forum/topic.asp?TOPIC_ID=10929) to get Visual Assist working with Python Tools For Visual Studio with the CustomProjectExtension key

But I have one problem. The "Open File In Solution" dialog lists all files under the projects root folder and does not discriminate between a file that is in the solution or not. This is annoying since the dialog is listing all of my python files and the python bytcode files (*.pyc)

Can I fix this?
7   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Jul 13 2018 : 3:05:19 PM
case=25837 is implemented in build 2283.

Use the context menu in the Open File in Solution dialog to display the edit control for the persistent filter. Hide the edit control after adding the text that you want to always persist. The text affects filtering whether or not the control is visible.
feline Posted - Feb 06 2014 : 8:06:11 PM
I have the files, thank you, I am seeing the same effect here now, I have put a bug report in for this:

case=80081

but since we don't officially support Python I am not sure if or when this will be fixed.

We are considering adding a setting to always exclude certain file types from the Open File dialog, which would help here:

case=25837

If you are using VS2013 then using Ctrl+; to search Solution Explorer directly.
jioltbotn Posted - Feb 06 2014 : 4:32:00 PM
I have submitted the sample project as requested.
jioltbotn Posted - Feb 06 2014 : 4:23:26 PM
quote:
Originally posted by feline
I have installed Python tools, and created a new Python application, but this only gives me a single .py file, and this is the only file listed in VA's Open File dialog.



My steps are this:
  • Create a 'Python Application' project
    • It should create a 'hello world' file and with the defaults it should be named PythonApplication.py.
    • The VA Open File Dialog *works* as expected and only the PythonApplication.py file appears.
  • Close the solution & visual studio.
  • Create a new file next to the PythonApplication.py file called NotInSolution.py
  • Open The PythonApplication.sln in Visual Studio
  • Open the Open File in Solution dialog. I now see:
    • NotInSolution.py
    • PythonApplicaion.py
    • PythonApplication.sln

I've gone through all permutations with the 'if Solution is empty' and 'if Solution is not empty' options and it does not affect the results. I always get all items.
feline Posted - Feb 06 2014 : 3:29:50 PM
Do you have a sample project you can send me that shows this problem please? I have installed Python tools, and created a new Python application, but this only gives me a single .py file, and this is the only file listed in VA's Open File dialog. If you do, please submit the files via the form:

http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.

Do you have:

VA Options -> Projects -> File Handling -> if Solution is not empty

turned on or off? If this is turned On it might be a factor.
jioltbotn Posted - Feb 06 2014 : 07:26:10 AM
The *.pyc are not in the solution.

And the *.pyc was only an simple example to illustrate the problem. The dialog picks up all files in all directories underneath the 'ProjectHome' variable in the *.pyproj file.

This means I get a recursive listing of *.* regardless of if a file is in the project or not. I have *.dll, *.ico, *.png, etc. files in addition to temporary files and directories created by my script showing up in the dialog.
feline Posted - Feb 05 2014 : 11:07:18 PM
Are the *.pyc files shown in the IDE solution explorer? If these files are part of the solution, then VA will think it is supposed to list them.

Are you aware that you can filter the list, using the filter -.pyc followed by a space and then your search term will remove these from the list? I know this is not ideal, since you have to apply this filter every time you do a search, but it should help some of the time.

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