pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Browsing implementors/senders from source code editors doesn't browse expected selector

Open sonibla opened this issue 3 years ago • 2 comments

Bug description Pharo_bvVjhjRDpy In the screen recording, I want to browse implementors of #readParametersFromContext:, but Pharo instead looks for #prepareNewCommand:readParametersFromContext: (which doesn't exist) It works when explicitly selecting the selector, but it shouldn't be needed

To Reproduce

  1. Create CmdMenuGroup1, subclass of CmdMenuGroup
  2. On class side, define
sourceCodeMenuActivation

	<classAnnotation>
	^ SycSourceCodeMenuActivation
		  byItemOf: ClyQueryMenuGroup
		  for: ClySourceCodeContext
  1. Right click in a source code editor > debug

Version information:

  • OS: Windows/Linux
  • Version: Pharo-11.0.0+build.95.sha.554b538cd430662e26bd8ae330e02a5743283451 (64 Bit) (and pharo 10)

sonibla avatar Jun 21 '22 09:06 sonibla

Interestingly it works if I used they shortcuts (cmd m). And after that it even works via the menu.

Maybe the error leads to some initialisation not done correctly for the menu?

MarcusDenker avatar Jun 23 '22 09:06 MarcusDenker

Investigated and fixed. PR pending

hogoww avatar Jul 29 '22 10:07 hogoww