ChezScheme icon indicating copy to clipboard operation
ChezScheme copied to clipboard

Bad error message from foreign function interface

Open donaldcallen opened this issue 1 year ago • 1 comments

After making some changes to code I am working on, I received the following error when attempting to test:

dca@pangloss:/tmp$ newcash Finances.newcash
Error in foreign-procedure: no entry for ~s
("get_sizeof_unsigned_int")

I understand what caused this error -- I called get_sizeof_unsigned_int before loading the .so file that contains the code. I have fixed this and the code works now.

But it seems that there's an error in foreign-procedure -- perhaps a format call with insufficient arguments? -- that resulted in the above error being less helpful than was intended.

donaldcallen avatar Aug 03 '22 16:08 donaldcallen

If the error is raised while loading the boot files, the C code has not yet turned over error reporting to Scheme. See do_error in c/schsig.c for details.

burgerrg avatar Aug 03 '22 19:08 burgerrg