microsoft / microsoft/powerplatform-vscode
PluginBase Error
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 277
- Forks
- 60
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 14
Description
When new Plugin in initialized using pac plugin init command. The OrgSvcFactory & Notification Service is not available and object reference error is shown, this issue is in PluginBase class.
NotificationService = serviceProvider.Get<IServiceEndpointNotificationService>();
IOrganizationServiceFactory factory = serviceProvider.Get<IOrganizationServiceFactory>();
GetService method must be used here instead of Get Method.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue points to the PluginBase class used by the pac plugin init command; start there and inspect the two service lookups shown. Use the requested lookup method, then run pac plugin init to confirm the organization and notification services are available without an object reference error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100