astahlman / ob-async

Asynchronous src_block execution for org-babel
343 stars 32 forks source link

fix: expand org-babel-async insert async insert form #88

Open vidbina opened 2 years ago

vidbina commented 2 years ago

Bumped into the following issue:

error in process sentinel: async-handle-result: Symbol’s value as variable is void: org-babel-async-content

I reckon that the symbol is unknown in the async process since binding of a value to the symbol happens outside of the lambdas. Within the definition of ob-async-org-babel-execute-src-block, most let-bound symbols are resolved using substitution (e.g.: ,SYMBOL-NAME) to ensure that the values known to the caller are expanded into the forms in the callees (async handlers/lambdas).

Very curious to have more guidance on how to resolve the issue in a "cleaner" manner in case I'm approaching "patching this" in a suboptimal manner.