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

Remove router module compile-time checking #363

Merged
merged 2 commits into from
Apr 22, 2020

Conversation

slashdotdash
Copy link
Member

@slashdotdash slashdotdash commented Apr 14, 2020

Compile-time checking for router dependencies causes compilation errors to be hidden, making it difficult to locate the error to be fixed. As an example a compiler error with an aggregate module simply returns the error message: "module Aggregate does not exist".

This pull request removes the compile-time checking and reworks the Commanded.Commands.Router.dispatch macro to work without attempting to load the dependent modules.

Fixed #358.

Compile-time checking for router dependencies causes compilation errors to be hidden.
@jsmestad
Copy link

This works like a charm. Thank you!

@slashdotdash slashdotdash merged commit 7863f8c into master Apr 22, 2020
@slashdotdash slashdotdash deleted the feature/router-compiler-error branch April 22, 2020 12:23
slashdotdash added a commit that referenced this pull request Apr 22, 2020
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

Successfully merging this pull request may close these issues.

Misleading error message when file has a syntax error
2 participants