gopherdata / gophernotes

The Go kernel for Jupyter notebooks and nteract.
MIT License
3.82k stars 265 forks source link

gota - reflect: Call with too few input arguments #118

Closed snassr closed 6 years ago

snassr commented 6 years ago

Does this have to do with reflect not being fully supported?

cosmos72 commented 6 years ago

Thanks for the report. I reproduced it, it's a bug.

It happens on all one-argument calls to variadic functions that expect one mandatory argument plus optional ones. Example:

import "fmt"
fmt.Printf("foo")

If you add more arguments, it works.

About the reflect package: support is as good as possible, and only limited by the fact that pure Go programs have no way to declare new named types and interface types at runtime: currently, only the compiler can do that.

cosmos72 commented 6 years ago

fixed in 9a9ff36f0a178d725533fbeb010a4f6af85de0cd, please reopen if it still fails for you (reporting the new error)