microsoft / microsoft/powerplatform-vscode

PluginBase Error

Open
#404 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.