-
Notifications
You must be signed in to change notification settings - Fork 356
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
panic when import golang.org/x/text
#1158
Comments
golang.org/x/text
any ETA for this ? or any alternative can do for now? needed for a plugin |
Sorry, I cannot provide ETAs. |
Sorry to ping, any updates on this? |
When a const is late binding and specified with a type, the GTA defineStmt was creating the symbol with the current scopes `iota` which is incorrect. The symbol should be created with the source nodes `rval`. Related to #1158
When `nodeType` recovers names and methods, it can overwrite the data if the type is an aliasT. When aliasing a type, do not recover the methods, this will be done in the GTA typeSpec pass. Related to #1158
When a const is late binding and specified with a type, the GTA defineStmt was creating the symbol with the current scopes `iota` which is incorrect. The symbol should be created with the source nodes `rval`. Related to traefik#1158
When `nodeType` recovers names and methods, it can overwrite the data if the type is an aliasT. When aliasing a type, do not recover the methods, this will be done in the GTA typeSpec pass. Related to traefik#1158
The current `nodeType` selector precedence is heavy handed in favour of package type. It seems to often create `typeSym` symbols as variable types in the scope will never be found. To fix this if the ancestor node is a field expression, the package type is searched for. After this, if the type is still `nil` the normal scope is searched using `nodeType2`. Fixes #1158
Tried with the latest release, it doesn't panic, but the output is not expected. Could you please help to check @nrwiersma Expected
Actual output
|
It is not possible for yaegi to have to output you want, as the struct generated for |
any suggestion or alternative that I can do from here? @nrwiersma |
You have 3 option:
But I cannot help you further than that. |
@nrwiersma thanks a lot |
The following program
sample.go
triggers a panic:Expected result:
Got:
panic run: language: tag is not well-formed
Links to panic line number
The text was updated successfully, but these errors were encountered: