Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized data type 'sometype' errors #416

Open
cglzaguilar opened this issue Apr 18, 2018 · 0 comments
Open

Unrecognized data type 'sometype' errors #416

cglzaguilar opened this issue Apr 18, 2018 · 0 comments

Comments

@cglzaguilar
Copy link
Contributor

Problem:

At some random time, on some CI, either Travis or AppVeyor. Most of the tests will start failing and the following error will appear:

LOG: '(Line 1 Error "Unrecognized data type 'sometype'.")'

See this log for a detailed example:
https://travis-ci.org/siddhukrs/VireoSDK/builds/366252739?utm_source=github_status&utm_medium=notification

See attachment at the end, to look at a partial log that shows the error.

The issue is that your Vireo module is being loaded before the required type has been defined. The order in which modules are loaded is not defined since they are based on static constructors.

The workaround: Add a dependency to the required Vireo module. By using a DEFINE_VIREO_REQUIRE macro in your module definition, for example:

DEFINE_VIREO_BEGIN(HttpClient)
DEFINE_VIREO_REQUIRE(Synchronization)

This issue is open so we can figure out a better way to manage module loading. The idea behind modules in Vireo is that they are easy to swap out and there is not a strict dependency on them.


Partial log that shows errors

	The command "make testhttpbin" exited with 0.
	180.89s$ npm run test
	> [email protected] test /home/travis/build/siddhukrs/VireoSDK
	> karma start --browsers ChromeHeadlessNoSandbox,FirefoxHeadless
	18 04 2018 15:59:54.063:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
	18 04 2018 15:59:54.066:INFO [launcher]: Launching browsers ChromeHeadlessNoSandbox, FirefoxHeadless with concurrency 1
	18 04 2018 15:59:54.072:INFO [launcher]: Starting browser ChromeHeadless
	18 04 2018 15:59:55.377:INFO [HeadlessChrome 0.0.0 (Linux 0.0.0)]: Connected on socket w-aPAhgCJceXfCGRAAAA with id 14167111
	HeadlessChrome 0.0.0 (Linux 0.0.0) LOG: '(Line 1 Error "Unrecognized data type 'Occurrence'.")'
	HeadlessChrome 0.0.0 (Linux 0.0.0) LOG: '(Line 1 Error "Unrecognized data type 'Occurrence'.")'
	HeadlessChrome 0.0.0 (Linux 0.0.0) LOG: '(Line 1 Error "Unrecognized data type 'Occurrence'.")'
	HeadlessChrome 0.0.0 (Linux 0.0.0) LOG: '(Line 1 Error "Unrecognized data type 'Occurrence'.")'
	HeadlessChrome 0.0.0 (Linux 0.0.0) LOG: '(Line 1 Error "Unrecognized data type 'Occurrence'.")'
	HeadlessChrome 0.0.0 (Linux 0.0.0) LOG: '(Line 1 Error "Unrecognized data type 'Occurrence'.")'
	HeadlessChrome 0.0.0 (Linux 0.0.0) LOG: '(Line 1 Error "Unrecognized data type 'Occurrence'.")'
	HeadlessChrome 0.0.0 (Linux 0.0.0) LOG: '(Line 1 Error "Unrecognized data type 'Occurrence'.")'
	HeadlessChrome 0.0.0 (Linux 0.0.0) LOG: '(Line 1 Error "Unrecognized data type 'Occurrence'.")'
	HeadlessChrome 0.0.0 (Linux 0.0.0) LOG: '(Line 1 Error "Unrecognized data type 'Occurrence'.")'
	.
	LOG: '(Line 1 Error "Unrecognized data type 'Occurrence'.")'
	LOG: '(Line 1 Error "Unrecognized data type 'Occurrence'.")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant