Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Add user friendly error when failing to find build config #914

Merged
merged 3 commits into from
Apr 25, 2019

Conversation

jamiebrynes7
Copy link
Contributor

Description

Before building workers, we check whether we can find a SpatialOS Build Configuration instance. If not we:

  • Display a popup if we are in the Editor.
  • Log an error to the terminal.
  • Terminate the build.

This is instead of the user getting a null ref exception thrown somewhere inside the build process.

Tests

Deleted the asset. Tried to build. Saw popup + error in the terminal.

Documentation

Changelog.

Primary reviewers

If your change will take a long time to review, you can name at most two primary reviewers who are ultimately responsible for reviewing this request. @ mention them.

@improbable-prow-robot improbable-prow-robot added size/S Denotes a PR that changes 15-39 lines, ignoring generated files. A: build-system Area: Build system feature module labels Apr 18, 2019
@jamiebrynes7 jamiebrynes7 added this to the Release v0.2.2 milestone Apr 18, 2019
@jamiebrynes7 jamiebrynes7 added the T: feature Type: This is a new feature label Apr 18, 2019
Copy link
Contributor

@jared-improbable jared-improbable left a comment

Choose a reason for hiding this comment

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

LGTM, just wording nits

@jamiebrynes7 jamiebrynes7 force-pushed the feature/null-build-config-error branch from e201e0e to 8a6ac62 Compare April 25, 2019 13:01
@jamiebrynes7 jamiebrynes7 merged commit e4f3b45 into develop Apr 25, 2019
@jamiebrynes7 jamiebrynes7 deleted the feature/null-build-config-error branch April 25, 2019 14:35
jessicafalk pushed a commit that referenced this pull request Nov 15, 2019
jessicafalk pushed a commit that referenced this pull request Nov 15, 2019
jessicafalk pushed a commit that referenced this pull request Nov 15, 2019
* Bugfix/increase ops tick rate (#914)

* [UNR-1350] Bugfix: GenerateSchemaAndSnapshots: Run full schema gen once, then generate snapshots (#926)

* Run full schema gen once, then generate snapshots

* update changelog

* Update changelog

* Wrap launch config path with quotes in order to properly launch (#905)

* Wrap launch config path with quotes in order to properly launch

* Update CHANGELOG.md

* [UNR-1303] Rename namespace improbable to SpatialGDK (#876)

* Renamed improbable namespace to SpatialGDK

* Removed legacy redefinition of IMPROBABLE_DLL_API for C++ SDK

* Remove dead code related to generated C++ SDK code namespaces

* Revert accidental change to schema generation code

* Updated docs for non-unreal-server-worker-types to use new namespace

* Consistency fixes (#880)

* Consistency fixes

* Fix name shadowing

* UNR-1375: Save deduplicated schema names in schema db (#919)

* Keep track of Schema Name collisions globally, including names of previously generated types
* Added Changelog entry

* [UNR-1371] Bugfix: Do not generate schema for assets in 'Directories to Never Cook' (#934)

* Avoid Loading Assets & Selecting Classes that are in packages that are in UProjectPackagingSettings::DirectoriesToNeverCook

* Added Changelog

* PR Comments

* Changelog typo

* Add explicit check for != nullptr)

* FindByPredicate -> ContainsByPredicate

* [UNR 1415] Bugfix: Readonly Schema Database crashes editor during generation (#942)

Try to load schema db first in schema gen. Check file exists & is writable, fail schema gen if not writable or asset loading fails

* Update CHANGELOG.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A: build-system Area: Build system feature module size/S Denotes a PR that changes 15-39 lines, ignoring generated files. T: feature Type: This is a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants