Opened as "Package methods with @NamespaceAccessible are not available to orgs in the same namespace". Changed to be more clear that this is now about being able to attach local sources for types from installed packages.
Steps to reproduce:
- Make a package with classes and methods marked as
- Create a new project in IC, create a new scratch org within the same namespace and install the package to this new scratch org
- Build the OST from the new scratch org with the plugin installed
- Attempt to write code referring to the
The method is available in the OST and can be used to autocomplete code.
The method shows up in red and shows a warning of “Cannot resolve symbol”
This class and method is inside a package within the same namespace.
This is in the new scratch org:
(PS Same issue with