So it seems my expectation wasn't unreasonable (I expected Pharo to do the same as Smalltalk/X - given you can leave an undeclared reference). Perhaps Marcus might be able to comment on this, and I'll go and see if its been written up as an existing bug and if its also present in Pharo 12 now that its in stabilisation mode.
Appreciate those that chipped in - these are features that we need to ensure aren't lost (of course I recall the days when you couldn't save anything broken - and that was a PITA). Tim On Sun, 10 Mar 2024, at 8:56 PM, Richard O'Keefe wrote: > I created a method referring to a non-existent "Snark" class. > To my astonishment, "Code Search|References to it" quietly failed to > do anything visible. > It didn't find it, and it didn't say that it couldn't find it. > However, "Code Search|Method source with it" DID find the reference. > Pharo 9 and Pharo 11 both do this, although the on-screen interface is > different. > > In Squeak, "References to it" worked fine, BUT when I created the > method I wasn't > offered the option of leaving "Snark" undeclared; the closest was > "Declare global". > > Smalltalk/X offered me the option of "Continue" with an undeclared variable, > and then "References to it" worked perfectly. > > > > On Mon, 11 Mar 2024 at 01:43, Tim Mackinnon <Tim@testit.works> wrote: >> >> Hi - I was convinced in earlier Pharo’s, if you had a code reference to a >> non existent class you could find it by searching for references to its >> symbol name eg #MyMissingClass allReferences (or find references in the UI). >> This doesn’t seem to work in Pharo 11? I loaded a package with a missing >> class, and when running something it complained about the missing class (it >> was an announcement), but I couldn't find an easy way to find it in my code >> to correct it? I ended up creating the fake class to then find references to >> it (as I then had a class), which seems way over the top? >> >> I haven't had a chance to try this in Pharo 12, but shouldn't what I have >> done work? Or is there some new way to do this? I asked on Discord users, >> but didn't get a reply other than it rang a bell. >> >> I know there has been a lot of work in the area of how things are >> represented and I wonder if something has got broken by mistake? >> >> Tim