-
Notifications
You must be signed in to change notification settings - Fork 18k
go/parser: non-contiguous comments grouped together #32944
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
Note this also affects things like
With Go 1.12.6:
With
|
Tentatively marking as a release blocker therefore. |
Thanks for reporting this. This seems to be a direct consequence of CL 161177 to fix issue #10858. However, issue #10858 was about godoc not displaying the entire documentation of structs, and I think it should be fixed inside godoc, not by changing
Unless I'm mistaken, this is too big of a change to low-level primitives like Based on my current understanding, I think we should roll back CL 161177 and try to fix #10858 in a less disruptive way. |
I see. The In any case, up to @griesemer to take a call. |
cc @andybons as an FYI from a release perspective |
I'm conscious of the fact that we're likely rapidly approaching beta2. @agnivade - I think it makes sense to create a CL to revert this change in anticipation of @griesemer's decision. That way, at least, we're ready to hit "submit" (try bots having run etc) and not hold things up any more. Would you agree? cc @mvdan |
Change https://golang.org/cl/185040 mentions this issue: |
A bit more on this subject:
|
Thank you everyone for helping resolve this issue. I considered sending a CL to add a test so this I've added issue #10858 to a list of godoc-related issues I'm tracking and will be on the lookout for a way to resolve it in the future. Please feel free to /cc me on any new developments in that area. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Consider the following:
Under
go1.12.6
this prints:On
tip
this shows:What did you expect to see?
Non-contiguous comments not to be grouped.
What did you see instead?
Non-contiguous comments grouped.
Is this an intended side effect of https://go-review.googlesource.com/c/go/+/161177?
cc @griesemer @agnivade
The text was updated successfully, but these errors were encountered: