emacs-lsp / lsp-metals

lsp-mode :heart: metals
https://emacs-lsp.github.io/lsp-metals
GNU General Public License v3.0
58 stars 33 forks source link

Hovering over output in worksheet not working #71

Closed barshirtcliff closed 2 years ago

barshirtcliff commented 2 years ago

Describe the bug According to this page I should be able to hover over the comment-output generated in a worksheet to see the complete output. This works in other editors, such as IntelliJ and Code. In emacs, however, nothing happens.

To Reproduce

create a worksheet named foo.worksheet.sc anywhere. add a line: val longString = "thisisalongstring" * 10 save the file.

Expected behavior hovering over the comment should reveal the complete string. but nothing shows up.

Screenshots Here's the test output. No new output appears in the *lsp-log* buffer during hover.

Screen Shot 2022-05-09 at 10 12 02 AM
barshirtcliff commented 2 years ago

This is a more complete representation of a bug identified previously.

kurnevsky commented 2 years ago

Try to hover over the string itself, not over commented part. Emacs doesn't support help messages over added overlays.

kurnevsky commented 2 years ago

Actually it can be done using text property instead of overlay property.