That is after deleting the swift-install dir and restarting the notebook, with the latest toolchain. I can’t reliably replicate the error. Any thoughts?..
I was seeing this error the other day on the 0.3 toolchain. It would happen intermittently on a pretty straightforward struct that just adopted Layer and had a basic call implementation–nothing fancy. Once it started happening though, it would happen pretty much every time I restarted the kernel and tried again. It was too infrequent to say for sure, but I think when I ran the cells slowly, one by one, it was less likely to occur. When I changed around the order of my cells so that the aforementioned cell was above this:
%include "EnableIPythonDisplay.swift"
let plt = Python.import("matplotlib.pyplot")
IPythonDisplay.shell.enable_matplotlib("inline")
it went away. If there’s some extra info I can gather if it happens again, please let me know.