-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: panic exporting invalid constant declaration #60605
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
Thanks very much for the report, and for noticing the repro conditions. This is surely a bug in the exporter, which we will fix. Transferring to the Go issue tracker. |
This is the assertion that fails (iexport.go:967):
The following code package p
const _ float64 = 1e- crashes gopls for me (see also #60649). The |
The |
Thanks for investigating! I'll fix the x/tools exporter. |
Change https://go.dev/cl/501209 mentions this issue: |
gopls version: v0.12.2 (go1.19.6)
gopls flags:
update flags: proxy
extension version: 0.38.0
go version: 1.19.6
environment: Visual Studio Code linux
initialization error: undefined
issue timestamp: Sat, 03 Jun 2023 11:15:12 GMT
restart history:
Sat, 03 Jun 2023 11:10:13 GMT: activation (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
const EPSILON float64 = 1e-
OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.
NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE.
DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.
<OPTIONAL: ATTACH LOGS HERE>
The text was updated successfully, but these errors were encountered: