Issue 6922 in pharo: Finder not refreshing for new packages/classes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 6922 in pharo: Finder not refreshing for new packages/classes

pharo
Status: New
Owner: ----
Labels: Type-Bug

New issue 6922 by [hidden email]: Finder not refreshing for new  
packages/classes
http://code.google.com/p/pharo/issues/detail?id=6922

I have a few packages that I commonly search using Finder.  To reduce noise  
in the results, for each of these I have opened a separate Finder, choosen  
<Make Unclosable> from the title-bar and filtered using the <Choose  
Packages>.  Some weeks later I wanted to expanded the <Choose Packages>  
selection to include a package that I had added, but it didn't show up.

Investigation found that adding a NewClass after a Finder is opened also  
does not show up when searched for.  If a new Finder is opened it does find  
NewClass.

Followin down the call chain from the <Choose Packages> button I see
FinderUI>>environmentButtonAction
FinderUI>>openPackageChooser
FinderUI>>constructPackagesSet
FinderUI>>environment
Finder>>environment
which returns its instance variable 'environment'
which is set only once in initialize
to 'Smalltalk globals allClassesAndTraits' (via  Finder>>defaultEnvironment)

I notice there is Finder>>resetEnvironment, but I can't tell where/when it  
might be called.  If the package & class lists cannnot be made more  
dynamic, can this resetEnvironment be brought out to a button - perhaps in  
the Package Choose dialog sitting to the left of the <Ok> button.



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6922 in pharo: Finder not refreshing for new packages/classes

pharo

Comment #1 on issue 6922 by [hidden email]: Finder not refreshing  
for new packages/classes
http://code.google.com/p/pharo/issues/detail?id=6922

btw, I am using Moose47, but expect this would only be a Pharo 2.0  
enhancement and not backported to Pharo 1.4.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6922 in pharo: Finder not refreshing for new packages/classes

pharo

Comment #2 on issue 6922 by [hidden email]: Finder not refreshing  
for new packages/classes
http://code.google.com/p/pharo/issues/detail?id=6922

Just to update with some specific test case..
Class Test Case
1. Open Finder
2. Add a new class XXX
3. Add a new methods XXX>xxx
4. In the Finder search for selector xxx
The result is that xxx is not found.

Package Test Case
1. Open Finder
2. Add a new package XX
3. Go to Choose Packages and filter for package XX
The result is that package XX cannot be found.



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker