gopherdata / gophernotes

The Go kernel for Jupyter notebooks and nteract.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

package errors "errors" has no symbol Is

butuzov opened this issue · comments

trying to run an error check in the notebook, failing with the error in the subject.

repl.go:7:40: package errors "errors" has no symbol Is

same with strings packages. is it the same reason as in #154 ?

Hi @butuzov,
do you mean you executed something similar to the following inside Gophernotes?

import (
  "errors"
  "io" // or any other package that defines error instances
)
var err error
errors.Is(err, io.EOF) // panics with: package errors "errors" has no symbol Is

There is a known issue: the symbol errors.Is was added in Go 1.13, but Gophernotes (actually the underlying interpreter gomacro) does not yet know about it.
The solution is simple: I need to regenerate the file gomacro/imports/errors.go - and probably many others.
I will do it as soon as possible

Yeah, exactly this. And thank you!

fixed in commit a574d64 - also released as Gophernotes v0.7.3

Came back to thank you Massimiano. Wonderful!