Stream: beginners

Topic: Missing import in "Building an Application" section


view this post on Zulip iylee (Apr 30 2024 at 18:29):

Hello guys, the starting code from the website didn't run for me, but I noticed in other examples that we need to import pf.Task as well. That fixed the problem. Just wanted to make sure you know
Screenshot-2024-04-30-212932.png

view this post on Zulip iylee (Apr 30 2024 at 18:40):

By the way, removing the all imports after successful program run, doesn't break anything and I can still run the program.
Screenshot-2024-04-30-213739.png

I suspect it caches the imports. But is it intended behavior that it works without explicit import?

(roc_nightly-linux_x86_64-2024-04-30-db97e3e)

view this post on Zulip Brendan Hansknecht (Apr 30 2024 at 19:33):

Haha :joy:. Platform imports are special cased. So something fishy is probably going on.

view this post on Zulip Brendan Hansknecht (Apr 30 2024 at 23:05):

Oh, also, all our import code is getting reworked currently. So this may just go away with those changes.

view this post on Zulip Agus Zubiaga (May 01 2024 at 12:48):

Yeah, this should be fixed by #6658 which will be merged soon.


Last updated: Jul 06 2025 at 12:14 UTC