-
Notifications
You must be signed in to change notification settings - Fork 1.7k
VM: report error if input .dill file is missing the sdk and --kernel-binaries was not provided #30151
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
Comments
Note that another solution is to give the VM the kernel platform file as follows:
I agree that we need better error messages here. In this case I believe the error should be reported by the VM. When the VM sees that it only has "external" library references for the core libraries, it needs to issue an error suggesting that the user provide the kernel-binaries folder. |
There is probably something I am missing, but I am unable to
I see this error:
My usual command works:
|
BTW, I am not blocked as I can reproduce Peter's original problem by linking to I have a question though: Should we be supporting such a use case at all? That is, should one be able to execute a |
Sorry for the confusion on the Good question about versioning, I agree - it would be nice to report a friendly error message if your .dill file version doesn't match the VM's. Am I right that you already do this for snapshots? I filed #30188 to track this. In terms of the use cases we should support, I'd like to hear @kmillikin thinking on this too. My take is that we do want to support 3 ways to run kernel in the VM:
I expect (2) will be a supported way of providing kernel to the VM by users, but (3) is only going to be supported for our internal tools (kernel-service and hot-reload use this format). So I think for this specific bug, we mainly need to address (2). As I write this here I realized now that the repro above is not quite accurate: We'll fix fasta-compile to produce the right output, but meanwhile, if you need to have that |
@sigmundch: For the question about snapshot versioning, yes we do that already. And, thanks a lot for the detailed response. |
We don't have a --kernel-binaries option anymore and so this bug is obsolete, platform dill is part of the VM and will always be found. |
No output, and no error. It should have printed "Hello, World!"
If I add
--compile-sdk
it works fine:The text was updated successfully, but these errors were encountered: