Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Added check for data provider to fix #330 #331

Merged
merged 5 commits into from
Sep 16, 2019

Conversation

SimonDarksideJ
Copy link
Contributor

@SimonDarksideJ SimonDarksideJ commented Sep 16, 2019

XRTK - Mixed Reality Toolkit Change Request

Overview

XRTK now issues a warning if a DataProvider cannot be initialised due to the dependant UPM package that contains that provider not being loaded (DataProviderType concrete type cannot be found)

Target of the change:

Is this enhancement for:

  • Core (core framework, interfaces and definitions)

Changes:

XRTK now issues a warning if a DataProvider cannot be initialised due to the dependant UPM package that contains that provider not being loaded (DataProviderType concrete type cannot be found)
@StephenHodgson
Copy link
Contributor

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

//If the DataProvider cannot be resolved, this is likely just a configuration / package missmatch. User simply needs to be warned, not errored.
if (controllerDataProvider.DataProviderType.Type == null)
{
Debug.LogWarning($"Could not load the configured provider ({controllerDataProvider.DataProviderName})\n\nThis is most likely because the XRTK UPM package for that provider is currently not registered\nCheck the installed packages in the Unity Package Manager\n\n");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't always the case. I'd drop the middle part but leave the last part.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?? It's only a recommendation as to where to look. I'd rather keep the advice there to assist users to figure out how to diagnose warnings raised here

@StephenHodgson StephenHodgson changed the title Fix for #330 Added check for data provider to fix #330 Sep 16, 2019
@StephenHodgson StephenHodgson merged commit c596bb1 into development Sep 16, 2019
@StephenHodgson StephenHodgson deleted the fix/servicemissingduetomissingUPM branch September 16, 2019 23:43
XRTK-Build-Bot pushed a commit that referenced this pull request Sep 19, 2019
* Fix for #330

XRTK now issues a warning if a DataProvider cannot be initialised due to the dependant UPM package that contains that provider not being loaded (DataProviderType concrete type cannot be found)

* typo
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants