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

Spawn macro does not compose with logging macros #514

Open
Octogonapus opened this issue May 15, 2024 · 1 comment
Open

Spawn macro does not compose with logging macros #514

Octogonapus opened this issue May 15, 2024 · 1 comment

Comments

@Octogonapus
Copy link

Dagger v0.18.9, Julia v1.10.3

julia> Dagger.@spawn begin
           @debug "x"
       end
ERROR: LoadError: syntax: invalid syntax (escape (outerref @debug))
Stacktrace:
 [1] top-level scope
   @ REPL[4]:1
in expression starting at REPL[4]:2
@jpsamaroo
Copy link
Member

Similar to #479 and #480, @spawn currently requires a function call as the top-level expression. This is for many reasons, most prominently because it makes it easily possible to track synchronization dependencies. We can and should implement a more capable parser, but it's not entirely trivial to implement, and can lead to some surprising behavior if users aren't careful.

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

2 participants