https://pantsbuild.org/ logo
#development
Title
# development
f

fast-nail-55400

01/31/2022, 6:02 PM
I’m calling
graph_session.console.stdin
in a
BuiltinGoal
(context: for BSP support). I am getting this error:
Copy code
Exception: Side-effects are not allowed in this context: SideEffecting types must be acquired via parameters to `@rule`s.
Is there a way to allow side effects with builtin goals? The
Console
is obtained from parameters to the
BuiltinGoal.run
method, and not as a
Param
to a rule.
I can try to work around the issue by using
sys.stdin
directly for now.
w

witty-crayon-22786

01/31/2022, 6:03 PM
yea, using
sys.stdin
directly is fine here, iirc. can make note of it though