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

Unclear error message for when multiple shards are being used in a @define and it is not wrapped in { } #779

Open
ShahFragcolor opened this issue Sep 5, 2023 · 0 comments

Comments

@ShahFragcolor
Copy link
Contributor

ShahFragcolor commented Sep 5, 2023

Describe the bug

When there are multiple shards being used in an @define and the contents of the @define is not wrapped in proper curly braces, it throws an error that is unclear

"Could not infer an output type and no Default value provided."

; This will only run { >= a }
; and you get:
;   Error composing shard: Get (b): Could not infer an output type and no Default value provided.
@define(something
  { >= a }
  { >= b }
)

; This works
; @define(something {
;   { >= a }
;   { >= b }
; })

@wire(test-wire {
  3
  @something
  a | Log("a")
  b | Log("b")
})

@mesh(root)
@schedule(root test-wire)
@run(root)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant