Skip to content
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

javadocs are suppressed within an object that shadows an opaque/alias type. #6852

Closed
schlawg opened this issue Oct 16, 2024 · 0 comments · Fixed by #7000
Closed

javadocs are suppressed within an object that shadows an opaque/alias type. #6852

schlawg opened this issue Oct 16, 2024 · 0 comments · Fixed by #7000
Assignees
Labels
bug Something that is making a piece of functionality unusable Scala 3 Generic ticket relating to Scala 3
Milestone

Comments

@schlawg
Copy link

schlawg commented Oct 16, 2024

Describe the bug

type Foo = String

object Foo:
  /** forever shrouded in mystery */
  val foo = ""

object Bar:
  /** all will be revealed */
  val bar = ""

Hovering foo reveals no javadoc, whereas the bar tooltip works fine. Note that the Bar object is not named after a type alias.

Expected behavior

Hovering foo should reveal forever shrouded in mystery.

Operating system

Linux

Editor/Extension

VS Code

Version of Metals

1.3.5

@schlawg schlawg changed the title an object shadowed by an opaque type or type alias consumes all javadocs javadocs are suppressed within an object that shadows an opaque/alias type. Oct 17, 2024
@kasiaMarek kasiaMarek self-assigned this Dec 2, 2024
@kasiaMarek kasiaMarek moved this from Triage to To do in Metals Issue Board Dec 3, 2024
@kasiaMarek kasiaMarek added bug Something that is making a piece of functionality unusable Scala 3 Generic ticket relating to Scala 3 and removed investigation needed labels Dec 3, 2024
@kasiaMarek kasiaMarek moved this from To do to In progress in Metals Issue Board Dec 4, 2024
@github-project-automation github-project-automation bot moved this from In progress to Done in Metals Issue Board Dec 9, 2024
@tgodzik tgodzik added this to the Metals v1.4.2 milestone Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is making a piece of functionality unusable Scala 3 Generic ticket relating to Scala 3
Projects
Development

Successfully merging a pull request may close this issue.

3 participants