-
Notifications
You must be signed in to change notification settings - Fork 570
panic: nil package for unexported qualified name #620
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
This may not be of any help, but when I find myself chasing phantom errors like this in GopherJS, I've usually discovered that it's the result of a caching bug (See #559). If you clear the GopherJS cache before each test, do you still get errors? Do they become consistent?
|
Solved it! |
It's good to hear that clearing the cache fixed it. It'd still be nice to resolve this, so the problem cannot occur. I can't immediately tell if it's identical to #559, but it's at least related. The panic happens in But that may or may not be related to the panic that happened here, so I would imagine it'd make more sense to start by fixing #559 first. |
A tip: it is actually safer to run Doing |
I've fixed #559 just now. Is it possible for you to check if this issue still occurs with latest GopherJS? |
Uh oh!
There was an error while loading. Please reload this page.
I'm seeing this error when building a package that imports another package. It uses
--tags
, don't know if it is related somehow.The error: https://pastebin.com/raw/5RSvSQF9
My versions:
To (try to) reproduce, download the code from https://github.com/fiatjaf/summuladb/tree/ca927b4878876cb184118de8227382cfb16d31dc and run
gopherjs build --tags=levelupjs
on it.But it is much stranger than that: basically the error vanishes and the package compiles perfectly as soon as I edit
qualifiedName
to include alog.Print()
statement, which I did to start debugging. After ago get
the error stopped happening and the logged things were being logged to the terminal, as expected. I then removed thelog.Print()
line and rango get
again. Still no errors.An hour later the error appeared again in the meantime I had run
gopherjs build
multiple times in my package, without a problem, and didn't edit or ran anything else. Again, the error vanished after I did thelog.Print()
trick. This comeback keep happening every once in a while.See more in the discussion starting at https://gophers.slack.com/archives/C039C0R2T/p1491492286272286.
The text was updated successfully, but these errors were encountered: